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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:04:26+00:00 2026-05-20T20:04:26+00:00

I just started learning Zend (& OO PHP for that matter), I have spent

  • 0

I just started learning Zend (& OO PHP for that matter), I have spent the last 4-5 weeks learning, tutorials, books etc. I feel good about it but will bog down in the models (thats ok, I’m learning). I am now beginning my first app (for work even); It has at least 5 major sections (including the login + will need ACL), and a couple will have up to 10-12 sub sections like admin: create user, edit user, etc.

I created a single layout, and have made most of the page views with working links, and have a few of the forms complete already.

My major concern now is should I refactor and make modules of the major sections before it gets out of hand, or am I worried about nothing. One thing I think I did wrong is that I have a ‘AdminController’ that does nothing but bring in the admin ‘view’ that is nothing more than links to each ‘user’ action in the ‘UserController’. I’m thinking maybe I should have put the user actions in the AdminController. I’m thinking too, that I should make a ‘admin’ module, ‘reports’ module, ‘auth’ module, etc. Or is it normal to end up with 8 controllers and growing? I already have the inclination to make and maintain a developer’s sitemap just for my own sanity, not to mention that I want to do the best job possible 🙂

  • 1 1 Answer
  • 1 View
  • 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-20T20:04:27+00:00Added an answer on May 20, 2026 at 8:04 pm

    In principle, I like the idea of a plugin-able module for each set of functionality – News, Users, Galleries, etc. “Plugging in” that module would provide functionality for the back-end admin and the front-end display. It is a self-contained place to put all the functionality – models, action helpers, view helpers, view scripts. etc – that you need for that content area. There might be two controllers per module – News_BackendController and News_FrontendController – dedicated to their specific areas.

    But in practice, I find that ZF modules make that hard. I know that smarter guys than me – a low bar, to be sure – can make it all work, but I’ve never had luck with it.

    So I usually end up with two modules – frontend and backend. For news functionality, for example, I’d have a news controller in the backend module for managing the content; another news controller in the frontend module for displaying it.

    The sticky point for me in this setup is where to put model functionality that is common to both frontend and admin. One idea is to put it out a separate library and then create module-specific models that extend these for any module-specific functionality. Something like:

    MyLibary_Model_News for the common news stuff.

    Frontend_Model_News extends MyLibrary_Model_News for any frontend-only news functionality, if any.

    Admin_Model_News extends MyLibrary_Model_News for any backend-only news fnctionality, if any.

    Just some ideas. As always, YMMV.

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

Sidebar

Related Questions

I just started learning C++ couple of weeks ago. So now I have this
I just started learning PHP, and have been trying to build a website to
i have learned MVC Architecture from Zend Framework, and i just started learning in
I just started learning ASP.NET MVC4 today. After reading tutorials, downloading VS 2012, and
I just started learning the zend framework and what im wondering is , is
I just started learning targets, and have followed all the instructions to create my
I just started learning Python... I am writing a simple program that will take
I just started learning Zend. I managed to get the basic working (using zf
Just started learning PySide and is having problem with QTimer I have this #!/usr/bin/python
I just started learning Backbone.js, and have been working on (what else) a simple

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.