AviNahum Posted November 19, 2008 Share Posted November 19, 2008 Hello!{sorry for very poor English, i from israel} i need some example of OOP script... <?php define( 'ROOT_PATH', "./" ); $decide = array( "index" => "Music", "gal" => "Gallery", "down" => "Download", "reg" => "Register", ); /***************************************************/ // $act = $_GET['act']; // Check to make sure the array key exits.. if (! isset($decide[ $act ]) ) { $act = 'idx'; } else { require ROOT_PATH."sources/".$decide[ $act ].".php"; } ?> someone give me that scrip but i can't understod what his tried to do... if someone can show me some script that show some content in the center of the page and the top comes from included file. and some links to other pages. like "Invision Power Board" system... thank! Link to comment https://forums.phpfreaks.com/topic/133398-need-oop-script-for-example/ Share on other sites More sharing options...
waynew Posted November 24, 2008 Share Posted November 24, 2008 Will I throw in a custom CMS and shopping cart while I'm at it? class Person{ function say($string){ echo $string; } } require("person.php"); $person = new Person(); $person->say("I wish I was a real boy"); Link to comment https://forums.phpfreaks.com/topic/133398-need-oop-script-for-example/#findComment-697300 Share on other sites More sharing options...
corbin Posted November 24, 2008 Share Posted November 24, 2008 Hello!{sorry for very poor English, i from israel} i need some example of OOP script... <?php define( 'ROOT_PATH', "./" ); $decide = array( "index" => "Music", "gal" => "Gallery", "down" => "Download", "reg" => "Register", ); /***************************************************/ // $act = $_GET['act']; // Check to make sure the array key exits.. if (! isset($decide[ $act ]) ) { $act = 'idx'; } else { require ROOT_PATH."sources/".$decide[ $act ].".php"; } ?> someone give me that scrip but i can't understod what his tried to do... if someone can show me some script that show some content in the center of the page and the top comes from included file. and some links to other pages. like "Invision Power Board" system... thank! Nothing in your example is OOP. Link to comment https://forums.phpfreaks.com/topic/133398-need-oop-script-for-example/#findComment-697312 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.