Skip to content

Instantly share code, notes, and snippets.

@meniam
Created July 22, 2013 18:44
Show Gist options
  • Save meniam/6056416 to your computer and use it in GitHub Desktop.
Save meniam/6056416 to your computer and use it in GitHub Desktop.
Zend Autoloader
// if composer autoloader is missing, explicitly add the ZF library path
require_once __DIR__ . '/../vendor/' . 'zendframework/library/Zend/Loader/StandardAutoloader.php';
$loader = new Zend\Loader\StandardAutoloader(
array(
Zend\Loader\StandardAutoloader::LOAD_NS => array(
'Zend' => __DIR__ . '/../vendor/zendframework/library/Zend',
'Model' => __DIR__ . '/../Model',
'ModelTest' => __DIR__ . '/ModelTest',
),
));
$loader->register();
@moriony
Copy link

moriony commented Jul 22, 2013

Зачем? Ты потерял composer? О_о

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment