note 93643 added to language.oop5

From: Date: Sun, 20 Sep 2009 23:33:45 +0000
Subject: note 93643 added to language.oop5
Groups: php.notes 
Request: Send a blank email to php-notes+get-160873@lists.php.net to get a copy of this message
One thing I've gotten to dislike about OO programming in PHP are the countless files scattered all over that simply instantiate my class, so I wrote a class to convert URLs into method calls. This, combined with an .htaccess file, allows you to have one file that instantiates your class, you just have to implement methods that match up to your URLs. Whenever you create a new page, all you need to do is write a new method and update your class file on the server. You can get the class and download an example here: http://www.davecomeau.net/blog/17/PHP+Class%3A+ObjectOrientedURLs ---- Server IP: 209.41.74.194 Probable Submitter: 67.172.146.198 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.php Edit -- https://master.php.net/note/edit/93643 Del: integrated -- https://master.php.net/note/delete/93643/integrated Del: useless -- https://master.php.net/note/delete/93643/useless Del: bad code -- https://master.php.net/note/delete/93643/bad+code Del: spam -- https://master.php.net/note/delete/93643/spam Del: non-english -- https://master.php.net/note/delete/93643/non-english Del: in docs -- https://master.php.net/note/delete/93643/in+docs Del: other reasons-- https://master.php.net/note/delete/93643 Reject -- https://master.php.net/note/reject/93643 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#160873) next »