You can also use a command called requestAction. I have copied a
snippet from the CakePhp Manual's Controller chapter (http://
manual.cakephp.org/chapter/controllers).
------------------
* requestAction
* string $url
* array $extra
This function calls a controller's action from any location and
returns the rendered view. The $url is a Cake URL (/controllername/
actionname/params). If the $extra array includes a 'return' key,
AutoRender is automatically set to true for the controller action.
(...)
-------------------
I don't know what you are trying to accomplish, but if you want to
render a view that is generated from the business logic side of things
then request action is the way to go. If you want to have a reusable
piece of presentation logic then elements are the way to go.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---