class Controller_Foo{}
namespace Fuel\Task;
class Foo{}
It seems confusing. class Controller_Foo{}
namespace Fuel\Task;
class Foo{}
It seems confusing.There are 4 main namespaces.
Fuel\Core Fuel\App Fuel\Tasks Fuel\Migrations
Then packages have their own namespace too.
These help code that could potentially have the same name exists and allows for easy extending of core classes.
Class Foo extends Fuel\Core\Foo.
Thanks to a cascading file system very similar to Kohamas this is all very simPlenand very quick.
The Zend_Style_Class equates to classes/Zend/style/class.php and could exist in core or app, or packages, etc.
http://groups.google.com/group/php-standards/web/psr-0-final...
Voted on back in 2009 by members of Solar, Cake, Doctrine, Zend, Symfony, Typo3, PHP Core, Yahoo! and others.
And I stand by those. The first allows for more flexibility when it comes to code organization and the second makes mistakes in classloading a lot less common. You can disagree with these but we have documented them clearly. Also it's quite easy to add another autoloader, ours won't even do a filesystem check when trying to load from an unknown namespace so it should add hardly any overhead to attach a Zend (or anything) compatible loader.
Previous to PHP5.3 (when namespaces were introduced) most frameworks followed the Zend_Style_Of_Naming (That class would be located in Zend/Style/Of/Naming.php).
All new frameworks that support PHP5.3+ (with the exception of Fuel, it seems) have done away with Zend_Style_Naming and follow direct namespace <-> file mapping.
http://groups.google.com/group/php-standards/web/psr-0-final...
Was 'ratified' by some of the bigger framework developers out there a while ago.