|
|
|
|
|
by lastkarrde
5544 days ago
|
|
Does anyone know why Fuel uses a mixture of Zend_Style class naming and namespaces? For example controllers are prefixed by Controller_ and are in the root namespace while tasks are put in the namespace Fuel\Task with no class prefix. 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.