Hi
guys,
First of all, I'm
very excited to start with CakePHP. I'm in the process of building a large web
application, and have been evaluating different PHP frameworks. I ended up with
Cake PHP and Symfony. Eventhough Symfony it's a very attracting framework,
there's something about Cake that drove me to it. I feel that with the way it's
developed I'll have a better control for big applications than with Symfony. And
the fact that it's NOT ONLY PHP5 also helps.
Anyway, I'm looking
to have a better organization of my controllers. Let's say that I want to have
different controllers for each administrative task, for
example:
* Language
administration (I'm using PEAR Translation2 package, and have already integrated
it with my base controller)
* User
administration
Now, I can go the
easy route and have two controllers, be them:
languages_controller.php
users_controller.php
But say, since I
will have tons of controllers for different end-user functionality, I want to
have them located under an admin/ path. So I have these
choices:
* Create an
admin_controller and from there on handle languages() as an action, users() as
an action.
* Create an admin/
directory under controllers and then change dispatcher to look for a path as an
alternative to looking for admin_controller if no admin_controller is
found.
Catch the idea? So I
was wondering if there's a standard way to do this. So
recapping:
* I want to have
several controllers for my administrative tasks, and don't have them all located
under the controllers/ directory directly.
* I don't want to
put *all* my administrative task under a unique controller.
Thanks for your help
guys!
-MI
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.407 / Virus Database: 268.12.12/462 - Release Date: 10/3/2006
