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.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---