Re: [fw-general] What is this: ?= $this-layout()-sidebar ?

2009-04-14 Thread J DeBord
I've been plugging away and I may have finally got it. Take this for example: I have a model that returns an array. I have a view helper that initializes the model and then calls for the model to return the array: class App_View_Helper_Sidebar extends Zend_View_Helper_Abstract I have a partial

Re: [fw-general] What is this: ?= $this-layout()-sidebar ?

2009-04-14 Thread J DeBord
Another example. Is it ok to access the request object in the view helper like this? Or is there a better way? I just need some conformation I am on the right track: ?php class App_View_Helper_Navigation extends Zend_View_Helper_Abstract { public function navigation() { $ctrl =

Re: [fw-general] What is this: ?= $this-layout()-sidebar ?

2009-04-14 Thread Brenton Alker
J DeBord wrote: I've been plugging away and I may have finally got it. Take this for example: I have a model that returns an array. I have a view helper that initializes the model and then calls for the model to return the array: class App_View_Helper_Sidebar extends

Re: [fw-general] What is this: ?= $this-layout()-sidebar ?

2009-04-13 Thread Vadim Gabriel
Hey, Or you could simply overload it. $layout-sidebar = something here; Vince. On Mon, Apr 13, 2009 at 1:31 PM, lightflowmark 1...@lightflowinterrupted.comwrote: They are placeholders for content to be later inserted into. Typically, I think, you would have actions called e.g.

Re: [fw-general] What is this: ?= $this-layout()-sidebar ?

2009-04-13 Thread J DeBord
Thanks for the replies. I created a SidebarController with a sidebarAction() function. In sidebar.phtml I have coded the template for my sidebar. Next, I registered this with the actionstack like this: $this-_helper-actionStack('nav', 'nav','default'); $this-_helper-actionStack('sidebar',

Re: [fw-general] What is this: ?= $this-layout()-sidebar ?

2009-04-13 Thread swilhelm
You may wish to read this very interesting http://blog.astrumfutura.com/archives/373-The-M-in-MVC-Why-Models-are-Misunderstood-and-Unappreciated.html article by Padraic Brady on Models and their role in the MVC pattern. I think the section entitled, Models are Classes, Controllers are

[fw-general] What is this: ?= $this-layout()-sidebar ?

2009-04-12 Thread J DeBord
http://framework.zend.com/manual/en/zend.layout.quickstart.html#zend.layout.quickstart.example In the above link, what are ?= $this-layout()-nav ? and ?= $this-layout()-sidebar ? Are they view helpers? Would someone point me to a resource describing how to build one? For example, a template of a