Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

readding bootstrap lowercase

  • Loading branch information...
commit 27a65f4c96de7b6848f65a79db278eeac9dda4cf 1 parent ec6f1dd
Michael Kimsal authored
Showing with 39 additions and 0 deletions.
  1. +39 −0 application/bootstrap.php
View
39 application/bootstrap.php
@@ -0,0 +1,39 @@
+<?php
+
+class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
+{
+ public function _initDoctrine() {
+
+ $this->getApplication()->getAutoloader()->pushAutoloader(array('Doctrine', 'autoload'));
+ spl_autoload_register(array('Doctrine','modelsAutoload'));
+ $manager = Doctrine_Manager::getInstance();
+
+ $config = $this->getOption('doctrine');
+ Doctrine_Core::setModelsDirectory($config['models_path']);
+ $connection = Doctrine_Manager::connection($config['dsn'], 'doctrine');
+
+ $profiler = new Doctrine_Connection_Profiler();
+
+ $connection->setListener($profiler);
+
+ }
+
+/**
+ * if you want true zend-framework 'rest'-style URLs
+ * with all that entails, uncomment this method
+ */
+
+/*
+ public function _initRouting()
+ {
+
+ $this->bootstrap('frontController');
+ $front = Zend_Controller_Front::getInstance();
+ $router = $front->getRouter();
+ $restRoute = new Zend_Rest_Route($front);
+ $front->getRouter()->addRoute('rest', $restRoute);
+ }
+*/
+
+}
+
Please sign in to comment.
Something went wrong with that request. Please try again.