Questions tagged [zend-autoloader]
92 questions
21
votes
2 answers
how to add a 3rd party library to magento?
The library doesn't need to integrate with magento, it's mostly a wrapper that communicates with an API.
I would like to be able to use this library and make these API calls from within a controller or model.
Where can I put the library? How do I…

john
- 33,520
- 12
- 45
- 62
13
votes
3 answers
Using PHP namespaces in a Zend Framework (v1) application
Is it possible in the current stable version of the Zend Framework (1.11), to work with application classes using PHP namespaces?
Application\Form\Abc instead of Application_Form_Abc
Application\Model\Xyz instead of…

BenMorel
- 34,448
- 50
- 182
- 322
12
votes
3 answers
Zend Framework 2 autoloading
I am just starting to look at Zend Framework 2 (and am new to ZF in general), and in the user guide, they are using autoloading when adding a new module. However, I find the explanation to be quite challenging for a rookie. They are adding a…

ba0708
- 10,180
- 13
- 67
- 99
8
votes
4 answers
Zend Framework: Autoloading a Class Library
I've got a class library in defined here .../projectname/library/Me/Myclass.php defined as follows:
I've got the following bootstrap:

user250120
- 901
- 1
- 6
- 8
7
votes
3 answers
ZF2 - autoloader classmap Fatal Error 'Map file provided does not exist'
I just started Learning Zend Framework but I am having problem with my modules.
Please see the below error. I don't know what else to show you yet for further infomation.
Please let me know what I need to show you to solve the problem.
Fatal error:…

arjay0601
- 475
- 2
- 8
- 16
6
votes
2 answers
Extend a controller from controller in another module?
I have this module called 'olo' which handles all our online ordering stuff.
Now I have made a new module called 'olosec' because I wish make a different version with a slight changed flow, and some other changes in some of the controllers.
Is it…

Phliplip
- 3,582
- 2
- 25
- 42
6
votes
1 answer
How can Smarty 3 be Used with Zend Framework 2?
I used PHP5 a long time ago and am presently trying to refresh my knowledge and augment it with knowledge of Zend Framework 2 and Smarty 3 for a possible project.
I'm currently trying to figure out how to use Smarty 3 as a replacement/supplement to…

Brian Kessler
- 2,187
- 6
- 28
- 58
5
votes
2 answers
Zend Framework 1.9: How to use Autoloading without MVC
how do i auto load zend framework classes when i am not using the MVC framework?

iceangel89
- 6,113
- 8
- 40
- 55
4
votes
2 answers
Extending a controller from an existing controller class in Zend Framework
Good morning, I have classic application, and I'll like to extend ArticleController from UserController, but when I try
class ArticleController extends UserController
{
// ...
}
or
class ArticleController extends…

Sebastian Busek
- 952
- 1
- 14
- 28
4
votes
2 answers
Zend Framework - Extend Module Controller
I have the following directory structure:
modules/
api/
controllers/
ApiController.php
InventoryController.php
OtherController.php
The init() method is common amongst multiple Controllers so I want to refactor that into a…

Matt McCormick
- 13,041
- 22
- 75
- 83
4
votes
2 answers
How can PHPUnit code coverage ignore my autoloader?
I have a bootstrap in my phpunit config that runs the Zend\Loader\StandardAutoloader.php. I can get PHPUnit code coverage to ignore it when I add
/absolute/path/to/zf
…

Jeebs24
- 177
- 2
- 11
3
votes
3 answers
How to autoload a singleton class (private constructor) in zend controller?
I have a singleton class in my models directory and I have to use its function in Controller class. Doing it by require_once('file path'); and calling function as ClassName::FunctionName() works fine, but I need to use Zend Autoloader instead of…

Sidra Sultana
- 529
- 1
- 5
- 20
3
votes
2 answers
why does an error result from zend autoloader testing if a non-existant class exists?
Say I've registered the extra namespace "Tracker_" in the config file for some classes I've written, using
autoloadernamespaces[]="Tracker_"
Things with this namespace and autoloader work as expected except when I am testing for error handling.…

Reese
- 1,746
- 1
- 17
- 40
3
votes
2 answers
Module autoloader in Zend framework
I developing a project using Zend framework and I came across the following problem. I'm using Zend framework MVC folder structure generated using their zf.sh script.
My library folder has the Zend library folder and it's classes can be called…

Songo
- 5,618
- 8
- 58
- 96
3
votes
1 answer
zend_loader_autoloader does not seem to load abstract class
I am getting a grip on Zend_Autoload but a non-zend class I have is not loading when extended.
The autoloader is initialized like so:
// Initialise Autoloader
$autoloader = Zend_Loader_Autoloader::getInstance();
…

Stephane Gosselin
- 9,030
- 5
- 42
- 65