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

  • Home
  • SEARCH
  • 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 8419363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:35:18+00:00 2026-06-10T02:35:18+00:00

With a stable version of Zend Framework 2 on the horizon, we have been

  • 0

With a stable version of Zend Framework 2 on the horizon, we have been slowly implementing some ZF2 components, changing conventions, implementing namespaces, etc. It would be nice to have all of our controllers namespaced prior to the move, just to simply things, but I haven’t found a good way to accomplish that goal.

Does anyone have any suggestions on controller namespacing in ZF1? I don’t mind editing the ZF1 library files at this point.

namespace Product;

use Zend_Controller_Action as AbstractActionController;

class IndexController extends AbstractActionController
{}
  • 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-06-10T02:35:20+00:00Added an answer on June 10, 2026 at 2:35 am

    Took a while, but I found that this can be done with a custom dispatcher:

    <?php
    
    namespace Webjawns\Controller\Dispatcher;
    
    use Zend_Controller_Dispatcher_Standard as Dispatcher;
    
    class Standard extends Dispatcher
    {
        /**
         * Format action class name
         *
         * @param string $moduleName Name of the current module
         * @param string $className Name of the action class
         * @return string Formatted class name
         */
        public function formatClassName($moduleName, $className)
        {
            return $this->formatModuleName($moduleName) . '\Controller\\' . $className;
        }
    
        /**
         * Convert a class name to a filename
         *
         * @param string $class
         * @return string
         */
        public function classToFilename($class)
        {
            return str_replace('\\', DIRECTORY_SEPARATOR, $class) . '.php';
        }
    }
    

    Then somewhere in the entry point to the application:

    Zend_Controller_Front::getInstance()->setDispatcher(
        new \Webjawns\Controller\Dispatcher\Standard());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible in the current stable version of the Zend Framework (1.11), to
phing 2.4.1 (current stable version) doesn't have an SSH Task to do remote scripting.
I installed Celery (latest stable version.) I have a directory called /home/myuser/fable/jobs . Inside
Currently, I have the stable version of a gem (specifically, nanoc3 ) installed with
We have 3 central mercurial repositories, one is the stable version that is the
I have downloaded the latest stable version of Derby: http://db.apache.org/derby/releases/release-10.8.2.2.cgi Installed it to the
I'm using JsTree stable version from Github and I'm trying the add the logic
If you visit http://www.framingham.edu/ in the latest stable version of Chrome, you'll notice that
I have a stable opensource library and was wondering how (and if) I can
I have just installed that latest stable release of TortoiseSVN on Windows Server 2003

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.