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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:19:38+00:00 2026-06-13T00:19:38+00:00

Why have zf2 Application folder inside Modules/ and Modules/Application/src? I mean… why not the

  • 0

Why have zf2 Application folder inside Modules/ and Modules/Application/src? I mean… why not the structure Modules/Application/src/controller, etc..?

  • 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-13T00:19:39+00:00Added an answer on June 13, 2026 at 12:19 am

    You can find details of the new zf2 structure http://akrabat.com/zend-framework-2/modules-in-zf2/

    As we’re using PHP 5.3, we expect that the classes within the src folder will be namespaced. By default, a module’s main name is assumed
    to be its main namespace, Simple in this case. In order to make
    autoloading simpler and to follow the PSR-0 convention, we create the
    Simple namespace folder within src. This means that the namespace for
    the class SimpleController is Simple\Controller within the file
    src/Simple/Controller/SimpleController.php.

    This is obviously one of the more simple modules and it is likely that
    the src/Simple folder would have other folders such as Model, Form and
    such like. Also, the view folder would probably have more sub-folders
    for other controllers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a bare bones zf2 application and i have 2 modules (Users and
I have some questions about the structure of ZF modules and models. (I'm talking
I have the following code in my zf2 controller: <?php namespace Accounting\Controller; use Zend\Mvc\Controller\ActionController,
I have started my ZF2 application from Skeleton-Application. I want instance of Date class
I have a default module in Zend Framework 2: namespace Application\Controller; use Zend\Mvc\Controller\AbstractActionController; use
I'm using the skeleton application for ZF2.0.0Beta3. So, normally I would just use Zend_Debug::dump($someVar);
I have the following function in ZF1 login controller and works fine but cannot
Have one Doubt In MVC Architecture we can able to pass data from Controller
have on question about the Zend Framework 2. In my Application i have a
How to make my ZF2 module load other layout file for specific controller ?

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.