# |
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? |
# |
Sep 12th 2009, 19:27 |
^poi |
my main concern is simply getting the index page correct; i think from the manual / docs i've read, i can get everything else done |
# |
Sep 12th 2009, 19:27 |
^poi |
i have an existing application; trying to convert to a system using cake as a framework |
# |
Sep 12th 2009, 19:27 |
^poi |
hi all |
# |
Sep 12th 2009, 19:18 |
dogmatic69 |
s/had/hard |
# |
Sep 12th 2009, 19:16 |
dogmatic69 |
AD7six: all i needed was getObject, and i could have figured the rest in the api, not some cryptic clues... its just had looking for something when you dont know what its called |
# |
Sep 12th 2009, 19:16 |
lukas__ |
is ther any other way to do this? |
# |
Sep 12th 2009, 19:15 |
lukas__ |
but his code should do the job, but ir couses to recursion :( |
# |
Sep 12th 2009, 19:15 |
lukas__ |
sorry, pasted too much :( |
# |
Sep 12th 2009, 19:15 |
lukas__ |
} |
# |
Sep 12th 2009, 19:15 |
lukas__ |
//vd (APP_DIR . DS . 'views' .DS . $this -> viewPath . DS . $this -> action . $this -> ext); |
# |
Sep 12th 2009, 19:15 |
lukas__ |
} |
# |
Sep 12th 2009, 19:15 |
lukas__ |
$this->render('/items/'.$this -> action); |
# |
Sep 12th 2009, 19:15 |
lukas__ |
echo 'OK'; |