Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (13 sloc) 0.409 kb
<?php
class PluginLoadDoctrine
{
public function execute($event)
{
require_once(LIB_DIR . '/doctrine/Doctrine.compiled.php');
//spl_autoload_register(array('Doctrine', 'autoload'));
$eventContext = $event->getSubject();
Doctrine_Manager::connection($eventContext->getConfig()->db->dbh);
$brocker = $eventContext->getHelperBrocker();
$brocker->addHelper(new Mvc_Controller_Helper_Db());
}
}
Jump to Line
Something went wrong with that request. Please try again.