Re: Using example.com/* as a catch-all, unless other paths are defined
I think it's a simple matter of routing configuration:
In: app/Config/routes.php
<?php
// Your admin/gallery/etc page
Router::connect(
'/admin/*',
array('controller' => 'admin', 'action' => 'display')
);
// Some other non-image pages
// The image fallback. Place at the bottom to allow special routes for your other pages
Router::connect(
'/*',
array('controller' => 'image', 'action' => 'show')
);
More info about routing: http://book.cakephp.org/2.0/en/development/routing.html
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home