Gabriel,
You can put the content of the page in views/pages.  They will use the
default layout.  Your path would be whatever you define in routes.php.

For example,
   Router::connect('/contact', array('controller' => 'pages', 'action'
=> 'display', 'contact'));

In views/pages you would have a PHP file named contact.ctp.

To redirect to that page use:
   $this->redirect('/contact');

Michael

On Sep 23, 9:53 am, "Gabriel Kolbe" <[EMAIL PROTECTED]> wrote:
> Hi doc
>
> Thanks for the reply, but how do I redirect in a view which does not
> have a model or controller?
>
> On Tue, Sep 23, 2008 at 1:26 PM, dr. Hannibal Lecter
>
> <[EMAIL PROTECTED]> wrote:
>
> > Of course, why not :)
>
> >http://api.cakephp.org/class_controller.html#903188d3de83bd65c78bb676...
>
> > On Sep 23, 2:00 pm, gabriel <[EMAIL PROTECTED]> wrote:
> >> Wouldn't it be great if cake adds a straight PHP equivalent on it's
> >> manual pages, for instance I want to redirect a page in straight PHP
> >> it would be '  header("Location: index.php"); '  does any one know how
> >> to do this in CAKE ?
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to