I mean automatically send the user to a specific controller / action
when they load the front / root page.  I tried the following in the
pages display function but it did not work:
Router::connect('/', array('controller' => 'posts', 'action' =>
'index'));

OK, I used $this->redirect, that did the trick.

On Feb 11, 4:57 pm, thatsgreat2345 <[email protected]> wrote:
> I'm not sure what you are asking?
> Do you mean like 
> $this->redirect(array('controller'=>'somecontroller','action'=>'someaction'))
>
> or after the page has already loaded? If that then you'll need to look
> into sending people places with javascript
> Generally window.location = 'www.example.com'
>

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to