Re: Console bake - modify templates
For separating admin views from public, (like admin_index, index)
remove this line:
$template = str_replace($prefix . '_', '', $template);
in ViewTask::getTemplate()
cake/console/libs/tasks/view.php
On Nov 19, 1:54 am, euromark <dereurom...@googlemail.com> wrote:
> answers and examples:http://www.dereuromark.de/2010/06/22/cake-bake-custom-templates/
>
> feel free to point out any missing pieces :)
>
> for separating admin views from normal ones a ticket has been
> submitted
> as of now i don't know how to do that.
>
> On 19 Nov., 01:04, Sarpidon <epap...@gmail.com> wrote:
>
> > Hi! I am trying to modify the templates files to generate custom
> > applications (with my css, actions etc)
> > However I am not sure how to find specific data passed to the template
> > files... for example take console/templates/default/views/index.ctp
>
> > in there I want to be able to read the type of field (eg is it
> > datetime? is it tinyint and so on). Where can I find this information?
> > Where can I find what the $fields array holds or the $details array
> > holds and so on... I hope I am making sense :)
>
> > The same goes for other files like controller_actions (for example how
> > do I separate admin views (admin_index) from normal ones...
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home