[fw-general] Zend_View, reference inside helpers

2007-03-12 Thread Kai Meder
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

Re: [fw-general] Zend_View, reference inside helpers

2007-03-12 Thread Michał Minicki
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

Re: [fw-general] Zend_View, reference inside helpers

2007-03-12 Thread Kai Meder
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

Re: [fw-general] Zend_View, reference inside helpers

2007-03-12 Thread Kai Meder
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

Re: [fw-general] Zend_View, reference inside helpers

2007-03-12 Thread Olivier Sirven
+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

Re: [fw-general] Zend_View, reference inside helpers

2007-03-12 Thread Martel Valgoerad
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

Re: [fw-general] Zend_View, reference inside helpers

2007-03-12 Thread Art Hundiak
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