How can I create something like: $this->layout()->sidebar, I'm trying for about 4 hours...but it doesn't work for me!Can you give me an example?
3
-
Your purpose is not clear. What is your final target?Itay Moav -Malimovka– Itay Moav -Malimovka2009-07-15 19:03:59 +00:00Commented Jul 15, 2009 at 19:03
-
i want to create a layout helper, sa when i write $this->layout()->sidebar, toretrive some html..like $this->layout()->content, how can i to that?what i need to do?i hope you got it now :)Uffo– Uffo2009-07-15 19:25:19 +00:00Commented Jul 15, 2009 at 19:25
-
Create a view helper and use it normally in your layout code/view code.Itay Moav -Malimovka– Itay Moav -Malimovka2009-07-15 21:20:54 +00:00Commented Jul 15, 2009 at 21:20
Add a comment
|
3 Answers
I'm still not certain what you are trying to do - but maybe this code that I'm using would help.
// setup the info column into the placeholder
$this->placeholder('rightcol')
->set($this->render('index/view_infoCol.phtml'));
// later in the layout template
echo $this->placeholder('rightcol');