In my opinion it's more correctly to keep one view template that
contains both view templates and switches between them (so you'll got
one one view file for controller/action - that is how CakePHP wants
you to do this).
Louie Miranda:
> Is it possible to display two view templates (*.ctp) on one function?
>
> example..
>
> function view($id == null)
> {
>
> if ($id == 1) {
> // display page 1
> } else { // id2
> // display page 2
> }
>
> }
>
> How could i do this?
>
> --
> Louie Miranda ([EMAIL PROTECTED])
> http://www.axishift.com
>
> Security Is A Series Of Well-Defined Steps
> chmod -R 0 / ; and smile :)
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---