Questions tagged [zend-autoloader]

92 questions
2
votes
3 answers

ZF-Autoloader not working in UnitTests on Ubuntu

i got a problem regarding Unit-testing a Zend-Framework application under Ubuntu 12.04. The project-structure is a default zend application whereas the models are defined as the following ./application ./models ./DbTable …
Sam
  • 16,435
  • 6
  • 55
  • 89
2
votes
1 answer

Uncaught exception 'Zend_Application_Bootstrap_Exception' with message 'Resource matching "autoloader" not found

I am new to Zend framework. I am updating a project which was developed by another person. I am getting an error like, Generating config... PHP Fatal error: Uncaught exception 'Zend_Application_Bootstrap_Exception' with message 'Resource matching…
NewPHP
  • 608
  • 2
  • 15
  • 28
1
vote
1 answer

Zend AutoLoad Custom Directory?

I thought autoloading was build into Zend so that if you tried to instantiate a class it would use the class name to try and find where the class's file was located. I want to be able to load a DTO directory in my application's root directory using…
Walt
  • 1,521
  • 2
  • 13
  • 29
1
vote
2 answers

Is setting include path and autoloading two different things?

I'm noticing that adding the include path of a folder I need is not enough to access the classes. I have a folder application/tests/ which contains application/tests/Test.php class Test.php is named Test without any prefixes class Test { } If I…
jblue
  • 4,390
  • 4
  • 46
  • 79
1
vote
1 answer

How to get the ZF classmap_generator.php via Composer without to install the whole Zend Framework?

Due to some issues with the dependencies (zend-test was prohibiting installation of PHPUnit 6), I removed the zendframework/zendframework dependency from the composer.json and installed only the Zend packages I really need. But now, the file…
automatix
  • 14,018
  • 26
  • 105
  • 230
1
vote
3 answers

Zend framework question about rest and modules

Guys I have the following structure in my project. application/ Bootstrap.php configs/ application.ini modules/ default/ controllers/ models/ views/ Bootstrap.php main/ …
nixgadget
  • 6,983
  • 16
  • 70
  • 103
1
vote
0 answers

Zend application cannot find controller class in module

I am trying to become familiar with the zend framework. I have followed the tutorials and created a new module. for some reason it cannot find my controller. I have registered the module in the application.config.php. is there a way to debug the…
1
vote
2 answers

Proper error handling in a custom Zend_Autoloader?

I'm building a custom autoloader based on Zend Framework's autoloading (related question here). The basic approach, taken from that question, is class My_Autoloader implements Zend_Loader_Autoloader_Interface { public function autoload($class)…
Pekka
  • 442,112
  • 142
  • 972
  • 1,088
1
vote
0 answers

Zend (v1) Autoloader does not work

I am a bit lost right now. I try to establish my own library but the autoloader seems not to be working somehow. This exaple here was the closest I found but all the solutions did not work for me. This is my folder structure. -application …
1
vote
2 answers

Zend Framework 2 can´t receive HTTP Post - "get was unable to fetch or create an instance for fromPost"

I´m new in ZF2 and I have a problem with reveiving the post/get Parameters in my Controller. Following Exception appears: Zend\ServiceManager\Exception\ServiceNotFoundException Zend\Mvc\Controller\PluginManager::get was unable to fetch or create an…
1
vote
1 answer

Making stand-alone ZF module invokable in non-ZF application via Service Layer

I have created a Zend Framework Module which manages a set of DB and filesystem operations. I have managed to get a 100% Test Coverage (with mocked databases) and I would like to test the integration of this module into a testing environment. I have…
1
vote
2 answers

Auto load classes by class name like Zend Framework

How can I auto load my framework controllers and models by their class name like the Zend Framework does? Zend Framework auto loads classes like so: new Application_Controller_Index(); meaning that controller class is located at…
1
vote
1 answer

Nested Modules on Zend Framework 2

Can we have multiple modules inside another module? May be a similar structure like this: /module /Application /module /SubApplication1 /SubApplication2 I am looking for an simple example or a article someone…
Starx
  • 77,474
  • 47
  • 185
  • 261
1
vote
1 answer

Zend autoload not work in bootstrap

i developing a site with zend framework. i use autoload for load a class. it work on controller, on model but not work in bootstrap file. why? bootstrap.php protected function _initAutoload () { // Add autoloader empty namespace …
pagliaccio
  • 65
  • 1
  • 5
1
vote
1 answer

Can Zend_Loader_Autoloader be called with an object-oriented syntax?

Is there an alternate way of calling Zend's Framework Autoloader. I have this webpage where I load the Zend_Loader_Autoloader and then call the static method ::getInstance(). After having a lot of trouble wondering why my scripts do not work, I set…
gerardo flores
  • 402
  • 1
  • 6
  • 28