# |
Sep 12th 2009, 21:05 |
mattalexx |
lol |
# |
Sep 12th 2009, 21:05 |
markstory |
you're smart enough to decide if its right for what you need. |
# |
Sep 12th 2009, 21:05 |
markstory |
I didn't read it. |
# |
Sep 12th 2009, 21:05 |
mattalexx |
markstory, What do you think? Rabbit hole? |
# |
Sep 12th 2009, 21:04 |
markstory |
ok |
# |
Sep 12th 2009, 21:04 |
mattalexx |
markstory, I think I might do something like this: http://groups.google.com/group/cake-php/msg/38ce68ef9ae520ab |
# |
Sep 12th 2009, 21:00 |
mattalexx |
markstory, these things are going to be set from the database. So it seems like I need to set them in the controller,. |
# |
Sep 12th 2009, 21:00 |
markstory |
but if you want it more your way then go for it :) |
# |
Sep 12th 2009, 20:59 |
mattalexx |
k |
# |
Sep 12th 2009, 20:58 |
markstory |
not like you need to create or output html meta tags in json views. |
# |
Sep 12th 2009, 20:57 |
markstory |
but I usually do things like meta tags in the html views, as that is the only place they are really relevant. |
# |
Sep 12th 2009, 20:57 |
mattalexx |
... or rather, I want to do things more my way ;-) |
# |
Sep 12th 2009, 20:57 |
markstory |
well you don't really set helper variables in the controller really. You can pass things through viewVars with set() or put them in the params. |
# |
Sep 12th 2009, 20:57 |
markstory |
ok |
# |
Sep 12th 2009, 20:56 |
mattalexx |
markstory, I want more control than that. |
# |
Sep 12th 2009, 20:54 |
markstory |
what about the htmlHelper? |
# |
Sep 12th 2009, 20:53 |
mattalexx |
... seems like it would be overkill to write a plugin. |
# |
Sep 12th 2009, 20:53 |
mattalexx |
... or should it be something else other than a helper? |
# |
Sep 12th 2009, 20:50 |
mattalexx |
I am creating a simple helper to handle browser title, page header, meta description/keyword, ... What is the best way to access the helper in the controller to set these vars? |
# |
Sep 12th 2009, 19:39 |
dogmatic69 |
$content_for_layout is the data that is rendered in your view files... eg: /app/views/users/add.ctp |
# |
Sep 12th 2009, 19:38 |
dogmatic69 |
its just like templates you would find in joomla etc... |
# |
Sep 12th 2009, 19:38 |
^poi |
ok |
# |
Sep 12th 2009, 19:37 |
dogmatic69 |
^poi: copy it from /cake/libs/views/layouts/default.ctp |
# |
Sep 12th 2009, 19:37 |
lukas__ |
notice <?php echo $content_for_layout; ?> and similar code |
# |
Sep 12th 2009, 19:36 |
^poi |
great thanks |
# |
Sep 12th 2009, 19:36 |
lukas__ |
read it |
# |
Sep 12th 2009, 19:36 |
lukas__ |
cake/libs/view/layouts/default.ctp |
# |
Sep 12th 2009, 19:35 |
lukas__ |
there is a default one |
# |
Sep 12th 2009, 19:35 |
^poi |
*are |
# |
Sep 12th 2009, 19:35 |
^poi |
is there any examples in the downloaded cake code? |
# |
Sep 12th 2009, 19:35 |
^poi |
that's what i'm gathering |
# |
Sep 12th 2009, 19:35 |
lukas__ |
also there is only one layout file instead of many haeader, footer etc files :) |
# |
Sep 12th 2009, 19:35 |
^poi |
right; it's blank? |
# |
Sep 12th 2009, 19:34 |
lukas__ |
create it manually |
# |
Sep 12th 2009, 19:34 |
lukas__ |
its not created by default |
# |
Sep 12th 2009, 19:31 |
^poi |
only 'js rss xml' folders in layouts |
# |
Sep 12th 2009, 19:31 |
^poi |
can't find that file |
# |
Sep 12th 2009, 19:30 |
dogmatic69 |
look at /app/views/layouts/default.ctp |
# |
Sep 12th 2009, 19:29 |
^poi |
^_^ any hints? |
# |
Sep 12th 2009, 19:28 |
^poi |
Right now I have a header and a footer for every page -- how does this work with cake? |
# |
Sep 12th 2009, 19:28 |
^poi |
1) How do I include all of the CSS / markup, in a page? |