Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6141459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:15:13+00:00 2026-05-23T18:15:13+00:00

In a controller, I can call viewRenderer helper like this : $this->_helper->viewRenderer->setNoRender(true); How can

  • 0

In a controller, I can call viewRenderer helper like this :

$this->_helper->viewRenderer->setNoRender(true);

How can I call viewRenderer in a controller action helper?
Assume that I have a Controller action helper :

class Zend_Controller_Action_Helper_Ajaxrequest extends Zend_Controller_Action_Helper_Abstract{

   public function test(){
       //what I should do here
   }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:15:14+00:00Added an answer on May 23, 2026 at 6:15 pm

    viewRenderer in your example is actually an action helper, not a view helper.

    To call action helpers, use the helper broker:

    $helper = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
    $helper->setNoRender(true);
    

    If you actually want to call view helpers, you need a view instance. You can get one from the controller:

    $controller = $this->getActionController();
    
    //call the url view helper
    $controller->view->url(...);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my controller/action, I can call an action helper $this->_helper->getHelper('layout')->disableLayout(); I want to do
Question about controllers. Can controller call it`s own class methods inside an action? EDIT:
How can in controller redirect with post same data like this do form <form
I've got this right now: call_user_func(array($controller, $action), $params); How can I split apart the
I have a project with a base view controller class, that is inherited by
In some MVC frameworks you can call controller action from the view if you
Opah! Is there any way I can call a method in the controller through
In asp.net mvc, you can easily call/add a controller from a view, but what
How can one best test a controller action which receives a file upload using
How can I access a controller instance from the view? E.g. I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.