Ok, done.
Now I have converted most of the methods in my base controllers as action
helpers, plugins or just moved them to views.
I have the final challenge:
I declare "blocks" to my sidebar with my new action helper "Block".
Example, $this->_helper->block($block, "left_sidebar", 0); // render
-- Marko Korhonen wrote
(on Wednesday, 18 February 2009, 06:52 AM -0800):
>
> Thanks for the great feedback!
>
> I already converted many of my methods to actions helpers or moved them to
> controller plugins.
>
> When I was exploring documentation and code I had a following idea:
>
> In Zend_
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Just to add:
any of this API changes would be a BC break. If you can access the URL
view helper as $this->url() or $this->urlHelper(), one could actually
have one of those method-names already used in his controller. Or am I
too strict with BC here? M
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Or, as actions are suffixed with Action, helpers could thus be suffixed
with Helper. So you could access the URL-Helper like this:
$this->urlHelper(...);
Just random thoughts.
...
: ___ _ ___ ___ ___ _ ___:
:
Thanks for the great feedback!
I already converted many of my methods to actions helpers or moved them to
controller plugins.
When I was exploring documentation and code I had a following idea:
In Zend_Controller_Action there is __call method:
public function __call($methodName, $args)
{
-- Marko Korhonen wrote
(on Monday, 16 February 2009, 05:04 AM -0800):
> I'm pretty sure that others have done the same as me:
>
> Base Controllers like My_BaseController and used as follows:
> Module_SomeController extends MyLibrary_Controller_Base
>
> Well, if so, you probably have done some m
Hi all,
I'm pretty sure that others have done the same as me:
Base Controllers like My_BaseController and used as follows:
Module_SomeController extends MyLibrary_Controller_Base
Well, if so, you probably have done some methods just to shorten things a
bit.
I'll share some of my "convienience"