how to disable default view render

6 messages Options
Embed this post
Permalink
huajun qi

how to disable default view render

Reply Threaded More More options
Print post
Permalink
Though I once read an article about it, I can not recall it now?

Anybody can tell me?

--
Location:
huajun qi

Re: how to disable default view render

Reply Threaded More More options
Print post
Permalink
And if I have a controller including some actions, such as AAction,BAction,CAction.

I want to set AAction to render B.phtml, how can I make it?

2009/10/19 huajun qi <[hidden email]>
Though I once read an article about it, I can not recall it now?

Anybody can tell me?

--
Location:



--
Location:
weierophinney

Re: how to disable default view render

Reply Threaded More More options
Print post
Permalink
In reply to this post by huajun qi
-- huajun qi <[hidden email]> wrote
(on Monday, 19 October 2009, 11:42 AM +0800):
> Though I once read an article about it, I can not recall it now?
>
> Anybody can tell me?

If you want to disable it for your entire application, you can set the
noViewRenderer parameter of the front controller to a boolean true. This
can be done in two ways:

    // Directly:
    $front->setParam('noViewRenderer', true);

or, using Zend_Application, just pass a key:

    resources.frontcontroller.params.noViewRenderer = true

--
Matthew Weier O'Phinney
Project Lead            | [hidden email]
Zend Framework          | http://framework.zend.com/
huajun qi

Re: how to disable default view render

Reply Threaded More More options
Print post
Permalink
How can i display another action's view page?

2009/10/19 Matthew Weier O'Phinney <[hidden email]>
-- huajun qi <[hidden email]> wrote
(on Monday, 19 October 2009, 11:42 AM +0800):
> Though I once read an article about it, I can not recall it now?
>
> Anybody can tell me?

If you want to disable it for your entire application, you can set the
noViewRenderer parameter of the front controller to a boolean true. This
can be done in two ways:

   // Directly:
   $front->setParam('noViewRenderer', true);

or, using Zend_Application, just pass a key:

   resources.frontcontroller.params.noViewRenderer = true

--
Matthew Weier O'Phinney
Project Lead            | [hidden email]
Zend Framework          | http://framework.zend.com/




--
Location:
Yaroslav Vorozhko

Re: how to disable default view render

Reply Threaded More More options
Print post
Permalink
huajun qi пишет:
> How can i display another action's view page?
Hi,
at the end of the action you can force to display any template through
render method:
$this->render('any.phtml');

>
> 2009/10/19 Matthew Weier O'Phinney <[hidden email]
> <mailto:[hidden email]>>
>
>     -- huajun qi <[hidden email] <mailto:[hidden email]>> wrote
>     (on Monday, 19 October 2009, 11:42 AM +0800):
>     > Though I once read an article about it, I can not recall it now?
>     >
>     > Anybody can tell me?
>
>     If you want to disable it for your entire application, you can set the
>     noViewRenderer parameter of the front controller to a boolean
>     true. This
>     can be done in two ways:
>
>     // Directly:
>     $front->setParam('noViewRenderer', true);
>
>     or, using Zend_Application, just pass a key:
>
>     resources.frontcontroller.params.noViewRenderer = true
>
>     --
>     Matthew Weier O'Phinney
>     Project Lead | [hidden email] <mailto:[hidden email]>
>     Zend Framework | http://framework.zend.com/
>
>
>
>
> --
> Location:


--
Thanks,
Yaroslav Vorozhko, Software Engeneer, Consultant
Skype: yarik0083
AIM: yarik0083
ICQ: 148966172
My blog: http://pro100pro.com


Yaroslav Vorozhko

Re: how to disable default view render

Reply Threaded More More options
Print post
Permalink
In reply to this post by huajun qi
huajun qi пишет:
> How can i display another action's view page?
Hi,
at the end of the action you can force to display any template through
render method:
$this->render('any.phtml');

>
> 2009/10/19 Matthew Weier O'Phinney <[hidden email]
> <mailto:[hidden email]>>
>
>     -- huajun qi <[hidden email] <mailto:[hidden email]>> wrote
>     (on Monday, 19 October 2009, 11:42 AM +0800):
>     > Though I once read an article about it, I can not recall it now?
>     >
>     > Anybody can tell me?
>
>     If you want to disable it for your entire application, you can set the
>     noViewRenderer parameter of the front controller to a boolean
>     true. This
>     can be done in two ways:
>
>     // Directly:
>     $front->setParam('noViewRenderer', true);
>
>     or, using Zend_Application, just pass a key:
>
>     resources.frontcontroller.params.noViewRenderer = true
>
>     --
>     Matthew Weier O'Phinney
>     Project Lead | [hidden email] <mailto:[hidden email]>
>     Zend Framework | http://framework.zend.com/
>
>
>
>
> --
> Location:


--
Thanks,
Yaroslav Vorozhko, Software Engeneer, Consultant
Skype: yarik0083
AIM: yarik0083
ICQ: 148966172
My blog: http://pro100pro.com