Hi,
I am working on an website in Cakephp 1.1. I need to make the URLs
such as http://www.mysite.com/USERNAME
I have changed the Route in routes.php in config<-App folder to
$Route->connect('/*', array('controller' => 'controllerName', 'action'
=> 'actionName'));
This solved my above problem. However, now i got another problem with
my other static pages such as my contact page is as
http://www.mysite.com/contacts
Now this page is also redirecting to the above controller. I have
solved this problem as well with manually mentioning this in
routes.php again
$Route->connect('/contacts', array('controller' => 'contacts',
'action' => 'index'));
This solved my problem. But now i have to enter an Route for every
static page as i have done with contacts page.
I have lots of lots of static pages. I need to enter an route for all
of them. I don't want to enter so many routes in routes.php.
Is there any alternative for this ?
Please help !!
Thank !!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---