Questions tagged [zend-autoloader]

92 questions
3
votes
2 answers

zend framework models location and autoloading

I've started to document myself regarding Zend Framework as I will soon start using it in production. Everything was working fine, until I started to use and work with models :). The default location for models, based on Zend recommendations, is…
misterjinx
  • 2,606
  • 3
  • 27
  • 29
3
votes
1 answer

Autoloading Symfony classes in Zend_Framework

How to autoload Symfony classes in the app based on Zend Framework? Can I push some kind of Symfony autoloader to the Zend's Autoloader? I need to use some of the components like output escaper or dependency injection classes.
takeshin
  • 49,108
  • 32
  • 120
  • 164
3
votes
1 answer

Using solarium in Magento CE

Hi i want to use solarium third party library in magento CE 1.8 . knowing that the solarium library do not conform the naming conventions of magento and zend I want to know how can i integrate solarium or add it features into the autoloader? is that…
Mohamed23gharbi
  • 1,710
  • 23
  • 28
3
votes
3 answers

new Zend_Loader_Autoloader not finding files

I just upgraded from ZF 1.7 to ZF 1.9, and almost everything works fine... except for Autoloader. Old: require_once('Zend/Loader.php'); Zend_Loader::registerAutoload(); New: require_once 'Zend/Loader/Autoloader.php'; $loader =…
lo_fye
  • 6,790
  • 4
  • 33
  • 49
2
votes
1 answer

Can Doctrine generated models have a prefix?

Is there an option in Doctrine that would specify a prefix for any classes generated by doctrine? I'm having trouble with the new Zend autoloader and autoloading models, the doctrine autoloader doesn't help either. Ideally I'd have the doctrine…
Andrei Serdeliuc ॐ
  • 5,828
  • 5
  • 39
  • 66
2
votes
2 answers

Zend Autoloading models issue

Zend framework. I want to autoload my models classes inside models folder, from within bootstrap class. These models doesnt actually use any namespace (so I have Ex. User.php file's class named User and so on..). If I understood correctly I should…
luca
  • 36,606
  • 27
  • 86
  • 125
2
votes
4 answers

Why these 2 lines in Zend Bootstrap autoloading function

I've seen examples that has this block of code and other examples that didn't have the 2 lines commented MAYBE NOT. What exactly is the purpose of these 2 lines? $moduleLoader = new Zend_Application_Module_Autoloader(array( 'namespace' => '', …
jblue
  • 4,390
  • 4
  • 46
  • 79
2
votes
2 answers

Choosing different versions of Zend Framework to load using Zend_Loader and it's issues

Okay, so, I wanna be able to choose different versions of Zend Framework (and other frameworks) using Zend_Loader. Well, the code isn't tricky at all, but the problem is, there are so many require_once lines in the framework itself that would…
Cg Alive
  • 639
  • 1
  • 6
  • 11
2
votes
3 answers

Zend autoloader not working on live site

I've just copied my dev site to the live server, updated configs with new DB connection details etc, but get the following error message: Fatal error: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with message `'Plugin by name…
wheresrhys
  • 22,558
  • 19
  • 94
  • 162
2
votes
1 answer

Zend Framework 1.12 - can not load module's model

I have Zend Framework 1.12 application with several modules. So far everything worked well. But I wanted to add mappers to my application and Zend Framework can not find mapper class. Structure of the project: -application -modules -api …
Tamara
  • 2,910
  • 6
  • 44
  • 73
2
votes
1 answer

Zend 1.12 - autoloading models without Model_ Namespace

I'm using a standard out of the box Zend 1 directory structure and have a model: applications /models /Menu Core.php Now I'd like to autoload Core but without having to name the class as Model_Menu_Core but just Menu_Core…
djkprojects
  • 425
  • 1
  • 5
  • 8
2
votes
3 answers

How to include a library to a Zend Framework 2 application using namespace based autoloading?

I created a subfolder MyNamespace in /vendor/ (is it the correct place for own libraries?) and want to use classes like MyNamespace\Mvc\Router\MyCustomRouter in my application. How can I include this library to my namespace based autoloading?
automatix
  • 14,018
  • 26
  • 105
  • 230
2
votes
2 answers

application that works in Zend 1.11.2 doesn't work in 1.12.1

I try to migrate application from version 1.11.2 to 1.12.1. I simply replaced Zend folder which contains 1.11.2 with Zend folder which contains 1.12.1. Application that worked in 1.11.2 doesn't work in 1.12.1, it can't load classes: Fatal error:…
Oleg
  • 2,733
  • 7
  • 39
  • 62
2
votes
2 answers

Implementing Zend Framework 2 Autoloader

Is it possible to replace ZF1 Autoloader with ZF2 Autoloader, as it seems that it could significantly increase performance ? I didn't find any tutorials out there neither much material on this - I've just heard ZF2's Autoloader would be much faster.
bogatyrjov
  • 5,317
  • 9
  • 37
  • 61
2
votes
3 answers

how to use phpexcel in zend framework

I need to import data from excel,And the I decided to use PHPExcel,But when I require it in my web , a few warnings occured : Warning: include_once(PHPExcel\Shared\ZipStreamWrapper.php) [
v-joy
  • 25
  • 1
  • 5