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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:48:45+00:00 2026-06-11T07:48:45+00:00

I have an auth plugin working. I am trying to add ACL to it

  • 0

I have an auth plugin working. I am trying to add ACL to it according to the excellent video series at http://www.youtube.com/watch?v=b6qsSnLfcmE&feature=relmfu.

My problem is that when I try to register the model in Bootstrap so that I can pass the instance to the plugin, I get a server 500 error. My bootstrap looks like this…

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initAutoload()
{
    $modelLoader = new Zend_Application_Module_AutoLoader(array(
        'namespace' => '',
        'basePath'  => APPLICATION_PATH));

    $acl = new Model_SystemAcl;
    $auth = Zend_Auth::getInstance();

    $fc = Zend_Controller_Front::getInstance();
    $fc->registerPlugin(new Plugin_AccessCheck($acl,$auth));

    return $modelLoader;
}

}

It is the line:

$acl = new Model_SystemAcl;

That is causing the problem. If I comment it out (and the $acl parameter that is passed) it works fine. It appears as though somehow my system is not configured properly to load models. This is the entire Bootstrap shown in the tutorial btw. Perhaps there is something in Application.ini I need?

EDIT: Yes, SystemAcl.php exists and is in [applicationdir]/models

  • 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-11T07:48:46+00:00Added an answer on June 11, 2026 at 7:48 am

    This is a full example for load models from the application namespace “Application”

    $resourceLoader = new Zend_Loader_Autoloader_Resource(
        array(
             'basePath'  => APPLICATION_PATH,
             'namespace' => 'Application',
        )
    );
    $resourceLoader->addResourceType('model', 'models/', 'Model');
    
    $autoloader = Zend_Loader_Autoloader::getInstance();
    $autoloader->pushAutoloader($resourceLoader);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Following is the Java Script code i have. //URL = http://dev.stage.com/restapi/vc/auth/sessions/login/ //parametersURL = user.login=******&user.password=******
I have simple front controller plugin which contains this code: http://pastebin.com/m155c59b0 When session expire
I have started using https://github.com/omab/django-social-auth and been successfully able to login via twitter, google
I have a web server which is protected behind http-basic-auth. I've read through the
I am trying to send mail through grails mail plugin. I configured according to
I have used the NameAndPassword Auth Plugin sample code from Apple to create my
I have been trying to write a Controller Plugin which I will be using
I have been trying out the spring-security-facebook plugin and so far its been smooth.
I am currently trying to use Miles J plugin located here http://milesj.me/code/cakephp/uploader Although I
I have a custom plugin (I didn't write it) that is not working on

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.