> I guess I'm not completely clear on all the table relationships, but if
> you did a route like this:
>
> $Route->connect ('/*', array('controller' => 'site', 'action' =>
> 'index'));
>
> that would give all the parameters to SiteController::index( ), as
> follows:
>
> class SiteController extends AppController {
>
> function index($category, $page, $action = null) {
> // Throw in $action, just in case we need it
> if ($action == null) {
> // Do the category lookup here, and use requestAction to
> dispatch the
> // request to the correct controller
> }
> }
> }
>
> Keep in mind, this only accounts for the frontend, so that gives you no
> way to route administrative actions. Hope that helps.
ahh, brill, thanks Nate. And no worries about front end / back end,
I'm working things as a 2 app system (well, that or have the admin
sytem as a plugin).
cheers,
jon
--
jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---