Questions tagged [zend-autoloader]

92 questions
0
votes
1 answer

Unclear error while trying to connect to Zend with smarty and apache log4php

I'm using zend framework with log4php and smarty, I've encountered the following problem while trying to run bootstrap of Zend. This is the error I get: PHP Warning: require_once(Smarty.php): failed to open stream: No such file or directory in…
JavaSa
  • 5,813
  • 16
  • 71
  • 121
0
votes
2 answers

How to use autoload classmaps for libraries in Zend Framework 2?

With the Zend Framework Tool (ZFTool) one can make the application faster, using the classmap- (instead of the namespace-) based class loading (s. here). $ cd /path/to/my_project $ cd module/MyModule/ $ zf classmap generate . ./autoload_classmap.php…
automatix
  • 14,018
  • 26
  • 105
  • 230
0
votes
1 answer

What's the best way to load PEAR modules in Zend Framework 1?

I need the PEAR module, Services_Ebay in my ZF1 project. I'd like to put it and its dependencies in /library so the project is completely self-contained. Is there a recommended way of doing this while using either ZF's or PEAR's autoloaders?
Brad303
  • 1,161
  • 8
  • 10
0
votes
1 answer

Use of any class / namespace with ZendFramwork

EDIT: Additional questions: do I have to add the '.php' at the end of new NAMSPACE_CLASSNAME Can I access any Zend package inside my controller / model, for example: /* Controller // Methods // inside a */ method $client = new …
Julius F
  • 3,434
  • 4
  • 29
  • 44
0
votes
1 answer

Extending/Replacing forms in ZfcUser by overloading the factories?

I am working with several team members in a project that will be using ZfcUser. I know that the documented way of extending the form is by attaching a listener to the form events inside the init method of our custom module. This is fine and we can…
Adrian
  • 1,370
  • 11
  • 21
0
votes
2 answers

Where to put auth adapter class file in Zend 1.12

Because I am working with legacy tables, I wrote my own Auth_Adapter, named User_Auth_Adapter_DbTable. I have a module user and I want to have this class there. However, I have no idea where to actually put the file and how to name it so the Zend…
Lanbo
  • 15,118
  • 16
  • 70
  • 147
0
votes
2 answers

Getting started with Zend PDF and Zend Guard Loader

I'm trying to install Zend PDF in order to fill out editable PDFs on my client's shared hosting account (media temple). I have it enabled now, confirmed in phpinfo https://i.stack.imgur.com/23N92.png but after that, I can't find out what I need to…
joren
  • 1,135
  • 2
  • 11
  • 22
0
votes
2 answers

zend autoloader cannot find file

i want to add Uploader class into my zend application in library folder i add uploder.php and inside the Uploder.php i start class with class Amjad_Uploder {...} in application.ini i add the following lines includePaths.library = APPLICATION_PATH…
0
votes
1 answer

zend auto loader... custom classes. How do I get it to work?

I am looking to create my own collection of class files in the library/common folder /library/common/*class files go in here* Inside the folder I will have various class files that I want to make available such as DecoratorSimple.php example of…
Robbo_UK
  • 11,351
  • 25
  • 81
  • 117
0
votes
1 answer

How to upgrade Zend_Loader from 1.7 to 1.8?

I have been using this, and it works fine in 1.7, but not in 1.8. require_once('Zend/Loader.php'); Zend_Loader::registerAutoload(); It says it's deprecated, and that I should use Zend_Loader_Autoloader instead, but I can't seem to get it to…
lo_fye
  • 6,790
  • 4
  • 33
  • 49
0
votes
1 answer

zendframework autoloading query

I am writing my own log class in zendframework based application. I was wondering as it's my own lib class where to keep it in application. I decided to keep this class parallel to "Zend" folder inside /library folder -library - Zend - Helper […
user269867
  • 3,266
  • 9
  • 45
  • 65
0
votes
1 answer

Zend the difference between autoloadernamespaces[] and autoloadernamespaces

When setting up a custom library in Zend Framework what is the difference between autoloadernamepaces[] = "foo" and autoloadernamespaces.foo = "foo"?
user1347693
  • 15
  • 2
  • 3
  • 7
0
votes
1 answer

using SoapClient,ArrayObject, ArrayIterator causes error in zend framework

I'm working on some helpful method in my entity. private function setApi($api_address,$api_username,$api_password){ $this->api_address = $api_address; $this->api_username = $api_username; $this->api_password = $api_password; …
Antonino Bonumore
  • 787
  • 1
  • 13
  • 27
0
votes
2 answers

Autoload models, forms inside modules in zend framework

My application structure is like this: application modules default student controllers forms studentParent.php models views Boostrap.php I have a studentParent.php inside forms folder of student module. class Student_Form_studentParent…
rockstar
  • 1,322
  • 1
  • 20
  • 37
0
votes
1 answer

Zend Autoloader unable to find existing file

I'm having an unusual autoloading problem with my Zend website. Up until now autoloading has been working a treat. Now though, I added a new file the project and autoloading just can't find it. I've reduced the problem to the minimal test case and…
Pascal Dennerly
  • 212
  • 4
  • 9