Re: [RFC] New .phpp File Type for Pure-Code PHP Scripts
| From: | Arvids Godjuks | Date: | Fri, 13 Apr 2012 08:00:21 +0000 |
| Subject: | Re: [RFC] New .phpp File Type for Pure-Code PHP Scripts | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-59857@lists.php.net to get a copy of this message | ||
Kris.
I can give you a real world example where that straight MVC with the. pphp
if not breaks, then definetly becomes an ugly mess.
I use Yii framework as my tool, it has some very nice tools for templating
like widgets. Widgets provide a container to put functionalit required by
multiple pages and it contains a controller like code and a template. It
can and most times will use models and other library stuff to do its work.
And all that code is loaded via an autoloader (only templates are loaded
localy in a controller method).
As i see it, i will spend a lot of time figuring out if i need to make a
.php or a .pphp file. After a few days i will just say to my self "f***
this sh**" and just stick with the .php. My coleague will just stick with
.php - he values his time and to him this will be just noise that he
ignores because it gives no real benifit, IDE's and editors will ajust in
time and reformatting a whole project is just a waste of time. Not to
mention frameworks will not follow for a long time because of the BC and
big WTF factor.