All pastes #336236 Raw Edit

Untitled

public text v1 · immutable
·published 2007-02-01 22:17 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');

   Zend::loadClass ('Zend_Controller_Front');
   Zend::loadClass ('Zend_Controller_RewriteRouter');

   $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 ();

?>