I don't want to create an add or edit template for any of my
controllers.  Since my add and edit templates will just be pointers to
a shared admin form (one of which I will create for each controller),
they will all be identical.  I want to just create 1 add.ctp and 1
edit.ctp template for my entire application.  Each of my view folders
will contain a single form to be used for adding and editing.  But I
don't want these directories to contain either an edit or an add
template file.

Before coming up with something custom, I just wanted to make sure
there wasn't already a cakephp way to share a single template file
among all controllers in an application.

-Aran

On Nov 20, 12:18 pm, validkeys <[EMAIL PROTECTED]>
wrote:
> I actually just responded to a similar question like this:
>
> http://groups.google.com/group/cake-php/browse_thread/thread/62399ca5...
>
> Is this what you were looking for?
>
> On Nov 20, 1:42 pm, aranworld <[EMAIL PROTECTED]> wrote:
>
> > For the most part, all my edit and add methods can use the same form
> > template.
>
> > Right now, I create a single form template and in my add.ctp and
> > edit.ctp templates, I just include this template.
>
> > However, this also means that almost all of teh add.ctp and edit.ctp
> > templates in my project are exactly the same.
>
> > Does anyone have a tip on how to cut down on this repetition?
>
> > I have the same problem with my delete.ctp template, which is the same
> > confirmation page for all controllers.
>
> > I don't think Scaffolding works, because my controllers actually have
> > functionality in each of these methods.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to