On Nov 20, 7: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.
why create 2 files that are exactly the same? make add use the view
for edit - Yes I know that isn't your whole question.
>
> 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.
Try this:
http://trac.assembla.com/mi/browser/branches/base/controllers/abstract/app_controller.php
>
> I don't think Scaffolding works, because my controllers actually have
> functionality in each of these methods.
you could also put your efforts into writing the bake templates, and
then just bake everything. there's the bake_admin script in ^^ if that
intests you.
AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---