Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- index.php 2011-02-06 23:08:26.000000000 -0200
- +++ index.new.php 2011-02-09 00:09:33.433891000 -0200
- @@ -14,7 +14,7 @@
- ## DEFININDO CAMINHO PARA INCLUDE ##
- - set_include_path('/var/www/dexdev/sites/dexdev/library'.PATH_SEPARATOR.get_include_path());
- +// set_include_path('/var/www/dexdev/sites/dexdev/library'.PATH_SEPARATOR.get_include_path());
- // Adiciona o autoloader do Zend Framework
- @@ -26,12 +26,12 @@
- ## INSTANCIANDO O CONTROLER ##
- Zend_Loader::loadClass( 'Zend_Controller_Front' );
- - Zend_Registry::set( 'view', $view );
- ## VIEW
- $view = new Zend_View();
- - $view->setScriptPath('');
- + Zend_Registry::set( 'view', $view );
- + $view->setScriptPath('');
- ##includes##
- $view->header = '/var/www/dexdev/sistemas/compracoletiva/includes/header.html';
- @@ -46,11 +46,11 @@
- $Controlador = Zend_Controller_Front::getInstance();
- $Controlador->throwExceptions(true);
- $Controlador->addModuleDirectory('application');
- - $Controlador->setBaseUrl('/');
- +// $Controlador->setBaseUrl('/');
- $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer($view);
- - $viewRenderer->setViewBasePathSpec(dirname(__FILE__))
- - ->setViewScriptPathSpec('application/:module/views/scripts/:controller/:action.html')
- + $viewRenderer
- + ->setViewScriptPathSpec(':controller/:action.html')
- ->setViewScriptPathNoControllerSpec(':action.html')
- ->setViewSuffix('html');
- Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
- @@ -72,8 +72,7 @@
- }
- catch (Exception $e)
- {
- - echo dirname(__FILE__);
- - echo "<br>";
- + header('Content-type: text/plain');
- echo $e;
- //$_redirector = new Zend_Controller_Action_Helper_Redirector();
- //$url = '/erro';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement