Questions tagged [zend-autoloader]

92 questions
0
votes
0 answers

Can't get Zend to work with PHP on Windows 7

I'm not able to get Zend to work properly on Windows 7 using IIS 7.5. I have PHP set up and MySQL set up. This is working. I work on various websites in various languages (ColdFusion, simply HTML, JSP, etc). These websites are all located in…
0
votes
1 answer

How to add escpos-php in magento?

I am working with magento 1.9. I want to use the escpos-php driver to print our invoices to the usb thermal printer. I have kept the escpos-php libraries in the root directory of my magento installation. In a custom module of magento, I have…
0
votes
2 answers

Will a directory with a period break autoload resolution based on a namespace in Zend Framework?

I have a folder in my library folder which is named after my website. The folder path is like: ~\www\library\myWebsite.com If I'm using Zend autoloader to load the namespace of everything in the library path, will I have any trouble autoloading a…
Jesse Greathouse
  • 382
  • 1
  • 4
  • 18
0
votes
1 answer

ZF2 Uncaught Error:Class 'ArrayUtils' not found in E:\Temp\htdocs\zf-tutorial\public\index.php:43

I am new at Zend2 and i am following the Album tuturial on Zend. I get the following error: Fatal error: Uncaught Error: Class 'ArrayUtils' not found in E:\Temp\htdocs\zf-tutorial\public\index.php:43 Stack trace: #0 {main} thrown in…
0
votes
2 answers

Zend Framework 1.11 really slow.. Why?

I Use Zend Framework 1.11 and this is really slow for me. I Have a button and then, when I click on it, that perform an ajax request. The response is Small. I Return a Hello World The response time is 125ms. To much for this small ajax…
Jean-Francois
  • 1,899
  • 4
  • 35
  • 73
0
votes
3 answers

Getting around a "problem" with the naming conventions used by the Zend Framework autoloader

Lets say that I have a table containing users. Each row in that table is thus a user. The important part here is the plural vs singular form. Now, let's look at the we set up models for these in Zend Framework: class Model_Users extends…
inquam
  • 12,664
  • 15
  • 61
  • 101
0
votes
2 answers

How to avoid usage of "require_once" in ZF1 project with _old style_ library?

I am working in a ZF1 project and I have created an empty controller: application/controllers/AgreementController.php class AgreementController { public function index() { // code goes here } } I am trying to use Guriddo…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
0
votes
0 answers

Does the ClassMapAutoloader need to be defined in every Module in ZF2?

Since the dynamic class loading with Zend\Loader\StandardAutoloader is very expensive, I generate a classmap and set it in the Application\Module public function getAutoloaderConfig() { return [ 'Zend\Loader\ClassMapAutoloader' => [ …
automatix
  • 14,018
  • 26
  • 105
  • 230
0
votes
2 answers

Working on localhost but server returns "Failed to open stream: No such file or directory"

On my local machine the script works fine, but when I put it on the server I get: application/hooks/zend.php [9]: require_once(Loader/Autoloader.php) [function.require-once]: failed to open stream: No such file or directory Stack…
bradenkeith
  • 2,397
  • 1
  • 17
  • 26
0
votes
1 answer

Zend Framework Autoloading not working when deploying

My Zend based website works perfectly on my localhost (using Mac). But When I deploy it on a linux web hosting company, I get the following errors: On the index page which try to list my ads by calling a resource where the select is: Fatal error:…
0
votes
1 answer

How to configure the Zend autoloader to load a custom path for resources before the default path

Separate but related to How to dynamically override forms and/or views using Zend?. I want Zend to try to load custom forms/views before loading a set of default forms for a web application to let clients create custom forms for their…
pfyon
  • 332
  • 1
  • 6
  • 10
0
votes
0 answers

Zend Framework 2 autoloading hybridauth Library

I want to autoload Hybridauth external library in my module name "Account", I have included all libraries in the location /var/www/ZendSkeletonApplication/module/Account/lib/hybridauth/Hybrid Also in my module.php , I have the following…
Dimag Kharab
  • 4,439
  • 1
  • 24
  • 45
0
votes
1 answer

zend won't recognize registered namespace

I'm using the Zend Standard Autoloader. It's registering one namespace, but it won't register the other. This is my code: $zflib =…
HaleyBuggs
  • 915
  • 3
  • 13
  • 29
0
votes
1 answer

Slim framework - How to autoload Slim/Slim.php instead of using require?

How can I autoload Slim/Slim.php instead of using require? // standard method //require 'ext/Slim/Slim.php'; // autoload method: define ('WEBSITE_DOCROOT', str_replace('\\', '/', dirname(__FILE__)).'/'); // Instance of…
Run
  • 54,938
  • 169
  • 450
  • 748
0
votes
1 answer

StandardAutoload doesn't work, while ClassAutoload does

I receive php fatal error "Class not found" while working on a test project (trying to learn ZF2). return array( 'Zend\Loader\ClassMapAutoloader' => array( __DIR__ . '/classmap.php', ), …
Richard87
  • 1,592
  • 3
  • 16
  • 29