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 6932481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:42:42+00:00 2026-05-27T11:42:42+00:00

class AboutController extends Zend_Controller_Action { public function init() { /* Initialize action controller here

  • 0
class AboutController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
      $this->getResponse()
            ->appendBody(' hello from aboutAction');

        $this->_forward( 'nothing','index', null, array( 'email' => 'me@example' ) );  
    }

    public function contactAction()
    {
      $this->view->pageTitle="boolbool";
    }


}

This index action calls nothing controller’s index function:

class NothingController extends Zend_Controller_Action

{


 public function init()

{

  /* Initialize action controller here */

  }



 public function indexAction()

  {

     $email=$this->_getParam('email','not found');
     $this->getResponse->appendBody('The email is: '.$email ); 
 }




}

But the nothings index action never gets triggered..I get page not found in the about page instead..why?

I cant even access my nothing controller, even when it exist in a file along with about (I can trigger the about action , though)

  • 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-27T11:42:43+00:00Added an answer on May 27, 2026 at 11:42 am

    I think your for $this->_forward() params are the wrong way round:

    from Zend Framework’s Zend_Controller_Action class:

    /**
         * Forward to another controller/action.
         *
         * It is important to supply the unformatted names, i.e. "article"
         * rather than "ArticleController".  The dispatcher will do the
         * appropriate formatting when the request is received.
         *
         * If only an action name is provided, forwards to that action in this
         * controller.
         *
         * If an action and controller are specified, forwards to that action and
         * controller in this module.
         *
         * Specifying an action, controller, and module is the most specific way to
         * forward.
         *
         * A fourth argument, $params, will be used to set the request parameters.
         * If either the controller or module are unnecessary for forwarding,
         * simply pass null values for them before specifying the parameters.
         *
         * @param string $action
         * @param string $controller
         * @param string $module
         * @param array $params
         * @return void
         */
        final protected function _forward($action, $controller = null, $module = null, array $params = null)
        {
    

    So for you it should be:

    this->_forward('index', 'nothing', null, array( 'email' => 'me@example' ))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That is my controller: (file name: AboutController.php) class AboutController extends Zend_Controller_Action { public function
class base{ public $c = 'c'; public $sub = ''; function __construct(){ $this->sub =
class Ef_AppSecurity extends Zend_Controller_Plugin_Abstract { public function preDispatch(Zend_Controller_Request_Abstract $request) { if (!Zend_Auth::getInstance()->getIdentity()) { $redirect
class foo { public: void set(const int a) {b=a;} private: int b; }; Here
class MySql : IDatabase { IDatabaseConnection con; public MySql() { this.con = new MySqlConnection();
class person { var $name; var $email; //Getters function get_name() { return $this->name; }
class MyClass { var $lambda; function __construct() { $this->lambda = function() {echo 'hello world';};
class Person { string name; public Person(string name) { this.name = name; } public
class AbstractQuery { virtual bool isCanBeExecuted()=0; public: AbstractQuery() {} virtual bool Execute()=0; }; class
class C { T a; public: C(T a): a(a) {;} }; Is it legal?

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.