align-toparrow-leftarrow-rightbackbellblockcalendarcamerachatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-crosscrosseditfacebookglobegoogleimagesinstagramlocation-pinmagnifying-glassmailmoremuplabelShape 3 + Rectangle 1outlookpersonplusImported LayersImported LayersImported Layersshieldstartwitteryahoo

Dallas PHP Message Board › want to learn REAL - Object Oriented PHP NOT A FRAMEWORK

want to learn REAL - Object Oriented PHP NOT A FRAMEWORK

Ben C.
user 7431881
Dallas, TX
Post #: 25
Want to learn and/or share REAL OOPHP development! Lets set up a time and place. NO FRAMEWORKS here! we will make our own CLEAN code library!

Sample Code:

<?php


require_once LIB_PATH.DS.'class.constants.php';
require_once LIB_PATH.DS.'class.database.php';


class Utilities extends Constants
{

public static function object()
{
$obj = new Objects();
$obj->DB_TB1_FIELD2 = trim($_POST[DB_TB1_FIELD2]);
$obj->DB_TB1_FIELD3 = trim($_POST[DB_TB1_FIELD3]);
$obj->DB_TB1_FIELD4 = trim($_POST[DB_TB1_FIELD4]);
$obj->DB_TB1_FIELD5 = trim($_POST[DB_TB1_FIELD5]);
$obj->create();
}//End of function object

public static function find_all()
{
return self::find_by_sql("SELECT * FROM " . self::$table1_name);
}//End of find_all function

Let me know; we will set something up!!
jerry l.
webmasterintexas
Plano, TX
Post #: 6
I am teaching this to myself and it is frustrating at times. There is just so much, it is hard to know where to study. I have used php/mysql for years building websites, but I am just getting into the meat and potatoes of OOP. I really am excited though.
jerry
Jake S.
Jake_Smith
Lewisville, TX
Post #: 9
If you want to learn PHP OOP, I would recommend this blog post/series: http://thinkvitamin.c...­

A couple of good books are these:
http://www.amazon.com...­

http://www.amazon.com...­

http://www.amazon.com...­

Hope that helps you get going.
Ben C.
user 7431881
Dallas, TX
Post #: 28
Jerry,

I have created a clean OOPHP framework that a lot of what you would need in any project. If you are interested in seeing and/or using it let me know.

I like the book Objects, Patterns and Practice. Check it out.


Thanks,
Ben
Powered by mvnForum

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy