All pastes #336263 Raw Edit

pabst

public text v1 · immutable
·published 2007-02-01 22:24 UTC
rendered paste body
<?php

   error_reporting (E_ALL | E_STRICT);

   date_default_timezone_set ('Europe/Madrid');


   set_include_path ('.' . PATH_SEPARATOR .  './application/models/' .
   PATH_SEPARATOR .  get_include_path ());

   //echo get_include_path ();

   require_once ('Zend.php');

function __autoload {
   Zend::loadClass ('$class');
}
   

   $route = new Zend_Controller_RewriteRouter();

   //$baseUrl = substr ($_SERVER['PHP_SELF'], 0, strpos ($_SERVER['PHP_SELF'], 'index.php'));
   $baseUrl = '/~cookie/tutorial';

   $frontController = Zend_Controller_Front::getInstance();
   $frontController -> setBaseUrl ($baseUrl);
   $frontController -> setControllerDirectory ('/application/controllers');
   $frontController -> throwExceptions (TRUE);

   $frontController -> dispatch ();

?>