Hello, I am wondering if there is a better approach to this built into
CakePHP 1.2

Basically I have a few views, admin_create, admin_update,
admin_destroy, all using the same code for the form.
I have created another view file called _admin_form.ctp

Right now, for example, I write:
$this->renderElement('../user/_admin_form');

inside of my admin_create.ctp, is there anyway to
render('_admin_form'); without needing to jump out of the current
directory? (_admin_form is in the users directory along with the other
views).

Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to