2009年4月22日星期三

Re: [fw-mvc] Re: Re[fw-mvc] nder a view of another module

Hey,

Looking at it you could do that with the viewRenderer helper, But there should be a method to set the controller and module by names, Or at least overload properties. I took a look at the Zend_Controller_Action_Helper_ViewRenderer if there was a method to set a module directory property and a controller directory property you probably could do that. Currently as stated it lacks some features.

Vince.

On Wed, Apr 22, 2009 at 11:29 AM, Remy Damour <remy.damour@gmail.com> wrote:
so far I've not found it, though I must admit it looked natural for me to expect this as well.
May be you should create an improvement/suggestion ticket for this? http://framework.zend.com/issues/secure/Dashboard.jspa
If you do, let us know, I'll vote for it.

On Wed, Apr 22, 2009 at 10:19 AM, Matthias W. <Matthias.Wangler@e-projecta.com> wrote:

OK,
but there I have to define the path by an included path, so I sould define
this path like this:
$path = '../../module/views/scripts/controller/action';
(Path starting in controller path)

Is there no functionality from ZF to do this like:
$this->renderScript(array($module, $controller, $view));

Remy Damour-2 wrote:
>
> $this->renderScript('<path-to-your-other-module-view-script>');
> Just my 2 cents
> Remy
>

--
View this message in context: http://www.nabble.com/Render-a-view-of-another-module-tp23171489p23171831.html
Sent from the Zend MVC mailing list archive at Nabble.com.






--
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.
Zend Framework Certified Engineer.




没有评论: