Questions tagged [zend-autoloader]
92 questions
1
vote
2 answers
zend 1.11.12 + modular structure + Class 'Users_Form_Login' not found
I'm making my first zend application, but I have problems with the autoload of modules.
At this time I load a form that I saved in the "forms" of the form "users", but I get a "Fatal Error".
This is my…

inge
- 15
- 3
1
vote
2 answers
php class not found while in (zend-based) include_path
I have a class which is in a subdirectory of my library-folder in a zend-project. So lets say my app is in /Library/WebServer/Foo/, then php's include path is:

Herbert
- 5,279
- 5
- 44
- 69
1
vote
2 answers
define PHP class on the fly in a zend application
Within a Zend app, is there a way to define a class which does not conform to autoloading naming conventions and still have it recognized when I try to use it later on? I imagine you define the class and register it, somehow, with the autoloader,…

Big Bird
- 257
- 2
- 9
0
votes
1 answer
zend autoloading abstract classes
What is the best way to autoload abstract classes
I have a class Formprocessor_Userregistrate extends Formprocessor
Both files are in the same directory, but it cannot find Formprocessor
I already used…

Richard
- 4,516
- 11
- 60
- 87
0
votes
1 answer
Zend Framework on shared hosting with PHP as CGI
I have been reading a lot before coming to this situation of asking for help.
I have been speaking with the hosting company too about getting some help, but their technical support were as knowledgeable as I.
As many of the people around here…

Mamba
- 61
- 1
- 5
0
votes
2 answers
How to replace Zend_Loader_Autoloader efficiently?
Due to performance issues (benchmarked) I'm trying to use another autoloader than the default Zend_Loader_Autoloader.
I tried to different method, using :
$autoloader->removeAutoloader(array('Zend_Loader_Autoloader', 'autoload'))
…

Trent
- 5,785
- 6
- 32
- 43
0
votes
1 answer
Doctrine 2 Autloading
How do set up autoloading with Doctrine 2 and Zend to load entities in the following directory structure:
Application
-Modules
--Core
---Models
----Entities
----Repositories
--CMS
---Models
----Entities
----Repositories
I want to be able to load…

orourkedd
- 6,201
- 5
- 43
- 66
0
votes
2 answers
Zend_Loader_Autoload_Module does not load module classes
My mistake - I didn't read the error messages properly - I was still var_dumping Zend_Loader_Autoload in the bootstrap which was causing a "headers already sent" exception. Remember to try without debugging output!
I have a modular application…

Ross
- 46,186
- 39
- 120
- 173
0
votes
1 answer
zend autoloader error messages
I am using this autoloader to load multiple external libraries in my zend app. The classes are loaded correctly and works fine. But i seem to have an issue while loading classes using multiple such autoloaders. The problem is that after finding the…

anp
- 537
- 3
- 16
0
votes
2 answers
Zend Autoloader - Load files from directory
I was wondering if there's any way to use Zend Autoloader to load all files from specific directory and subdirectories?
I'm trying to include other libraries beside Zend such as JSTree.

Jezdimir Lončar
- 433
- 4
- 14
0
votes
3 answers
Forms not found by autoloader in Zend module?
I'm getting pretty fed up with Zend's autoloader.
I'm trying to load EditPassword from within PasswordController in the module structure as shown below.
application.ini
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path =…
user668660
0
votes
3 answers
addResourceType - how can I add Models_Mapper as a resource?
I'm writing a PHP application using
PHP 5.3 and Zend Framework 1.11.7.
I created model resource using the following command:
protected function _initLoader()
{
$loader = new Zend_Application_Module_Autoloader(array(
'namespace' =>…

ufk
- 30,912
- 70
- 235
- 386
0
votes
2 answers
how can I configure default namespace and Model location for the AutoLoader in application.ini?
Using PHP 5.3 and Zend Framework 1.11.7 I've been trying to configure the AutoLoader to auto load my Model classes (for Zend_Db) that resides in the default directory application/models.
I found the following solution:
I can add the following…

ufk
- 30,912
- 70
- 235
- 386
0
votes
2 answers
Autoloading in zend framework
how to autoload a class in custom directory on module path. My application's structure is like below
application
|_ modules
|_admin
|_api
| |_Core.php
|_elements
|_Dialog.php
i have two custom directory, 'api' and…

Hensembryan
- 1,067
- 3
- 14
- 31
0
votes
0 answers
auto-loader in Zend Framework 3.0.3-dev
Being novice to Zend framework and after reading almost all the possible answers already posted, It did not work. I want to set up an instance of Zend Framework auto-loader and Zend_Http_Client class.
code is as:
require_once…

Josephine
- 21
- 5