is there any way that the a view-helper may access the view, in which it
was executed?
e.g. $view-escape
this would be extremely helpful to outsource common view-code into
helpers...
thanks,
kai
Kai Meder [EMAIL PROTECTED] napisał(a):
is there any way that the a view-helper may access the view, in which it
was executed?
I was discussing this problem with Matthew some time ago and he agreed to
do it eventually.
http://framework.zend.com/issues/browse/ZF-936
I have no idea when this
Michał Minicki wrote:
Kai Meder [EMAIL PROTECTED] napisał(a):
is there any way that the a view-helper may access the view, in which it
was executed?
I was discussing this problem with Matthew some time ago and he agreed to
do it eventually.
http://framework.zend.com/issues/browse/ZF-936
I
Any problem to use
$this-myHelperNeedView($this)?
it's not convenient, the view should provide this reference
out-of-the-box...
but for the time being, this seems to be a reasonable solution.
thanks,
kai
+1 to this
the first parameter of every helpers I wrote is always a reference to the
caller view which is very annoying
something like $this-view in a helper would be very much appreciated
Olivier
Le lundi 12 mars 2007, Kai Meder a écrit :
Any problem to use
Art Hundiak wrote:
Be nice if we could just extend the view class and tweak it but someone
went 'private' happy when they wrote the code.
Actually private variables are there for a reason. And it's pretty clever.
They're protecting internal properties from being accessed directly form the
Yep. Think they really should have a separate template renderer class.
But what they do have seems to work well enough as long as tweaking is not
required.
Art Hundiak wrote:
Be nice if we could just extend the view class and tweak it but someone
went 'private' happy when they wrote the