Explicitly call the controller's render() function with the name of the view file.
If no call to render() is made, the default view for this action will be used, unless turn off autoRender too. On Jan 18, 8:01 am, "Louie Miranda" <[EMAIL PROTECTED]> wrote: > 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 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 -~----------~----~----~----~------~----~------~--~---