hernantz
04-27-2011, 07:35 PM
HI, im pretty new to this mvc pattern.
So when trying to catch up with a framework i found that I don't like anyone.
Just looked to codeingniter, kohana, cakephp and symfony.
What i did not like were:
The code generators, the static access to classes, singletons, many global variables, and not pure OOP desing.
So, why not just use a simple skeleton with
an mvc pattern
a caching class
sanitizer class
templating class
router class
database abstraction layer class
an user authentication class
maybe a loader class (that includes some classes by default and other classes when required)
plus other app specific classes.
And inside the controller you declare your classes you need and just work with them. If you need to sanitize a form, just declare the FormSanitazer() class and work with it, not $this->lib->blah blah, where you don't know where things are coming from or how they work.
Is there something like this? if not does is worth it to write this custom structure of is better to get to use a framework like codeigniter.
What is your suggestion / opinion.
Thanks in advance.
So when trying to catch up with a framework i found that I don't like anyone.
Just looked to codeingniter, kohana, cakephp and symfony.
What i did not like were:
The code generators, the static access to classes, singletons, many global variables, and not pure OOP desing.
So, why not just use a simple skeleton with
an mvc pattern
a caching class
sanitizer class
templating class
router class
database abstraction layer class
an user authentication class
maybe a loader class (that includes some classes by default and other classes when required)
plus other app specific classes.
And inside the controller you declare your classes you need and just work with them. If you need to sanitize a form, just declare the FormSanitazer() class and work with it, not $this->lib->blah blah, where you don't know where things are coming from or how they work.
Is there something like this? if not does is worth it to write this custom structure of is better to get to use a framework like codeigniter.
What is your suggestion / opinion.
Thanks in advance.