Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Olá Estou com um problema com este Erro.. no meu index.php
Descrição do Erro:
****
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (index)' in C:\AppServ\www\site\libary\Zend\Controller\Dispatcher\Standard.php:241 Stack trace: #0 C:\AppServ\www\site\libary\Zend\Controller\Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 C:\AppServ\www\site\public\index.php(30): Zend_Controller_Front->dispatch() #2 {main} thrown in C:\AppServ\www\site\libary\Zend\Controller\Dispatcher\Standard.php on line 241
Arquivo index.php
<?php
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors',1);
date_default_timezone_set('America/Sao_Paulo');
//diretório setup e class de loading
set_include_path('.' . PATH_SEPARATOR . '../libary/'
. PATH_SEPARATOR . '../application/models'
. PATH_SEPARATOR . get_include_path());
include("Zend/Loader.php");
Zend_Loader::registerAutoload();
//load configuration
$config = new Zend_Config_Ini('../application/config.ini','general');
$registry = Zend_Registry::getInstance();
$registry->set('config',$config);
//setup database
$db = Zend_Db::factory($config->db);
Zend_Db_Table::setDefaultAdapter($db);
//setup Controller
$frontController = Zend_Controller_Front::getInstance();
$frontController->setControllerDirectory('../appication/controllers');
$frontController->throwExceptions(true);
$frontController->setBaseUrl('/site/public');
Zend_Layout::startMvc(array('layoutPath'=>'../application/layouts'));
//RUN
$frontController->dispatch();
Screen da Estrutura do Projeto
/applications/core/interface/imageproxy/imageproxy.php?img=http://img204.imageshack.us/img204/9468/sszfxg0.jpg&key=40e5a9b56caa24b22b3dcfb977f537d041b8038c6a1095694f5ed46d944b66cf" alt="Imagem Postada" />
Carregando comentários...