addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcredit-cardcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1languagelaunch-new-window--smalllight-bulblinklocation-pinlockm-swarmSearchmailmessagesminusmobilemoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

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:


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]);
}//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.
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.
Jake S.
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:­­­

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

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.

Powered by mvnForum

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