Jump to content


Photo

Loader.Php Não Reconhece A Classe


  • Faça o login para participar
2 replies to this topic

#1 HELLFROST

HELLFROST

    Novato no fórum

  • Usuários
  • 3 posts
  • Sexo:Masculino
  • Localidade:BH

Posted 19/06/2011, 17:45

Ola amigos, sou novo aqui, espero que tenha feito o Post correto e de para entender, que o Loader.php nao esta encontrando a Classe Produtos e assim chamando a pagina Produtos.php. Ja olhei la no PHP.INI e ja esta liberado os PDO: extension=php_pdo_mysql.dll e extension=php_pdo.dll


ERRO:

Warning: include_once(Produtos.php) [function.include-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\ZF\library\Zend\Loader.php on line 146

Warning: include_once() [function.include]: Failed opening 'Produtos.php' for inclusion (include_path='.:C:\xampp\htdocs\ZF\library;C:\xampp\htdocs\ZF\library') in C:\xampp\htdocs\ZF\library\Zend\Loader.php on line 146

Fatal error: Uncaught exception 'Zend_Exception' with message 'File "Produtos.php" does not exist or class "Produtos" was not found in the file' in C:\xampp\htdocs\ZF\library\Zend\Loader.php:99 Stack trace: #0 C:\xampp\htdocs\ZF\booba\application\controllers\IndexController.php(17): Zend_Loader::loadClass('Produtos') #1 C:\xampp\htdocs\ZF\library\Zend\Controller\Action.php(133): IndexController->init() #2 C:\xampp\htdocs\ZF\library\Zend\Controller\Dispatcher\Standard.php(268): Zend_Controller_Action->__construct(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http), Array) #3 C:\xampp\htdocs\ZF\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #4 C:\xampp\htdocs\ZF\booba\index.php(97): Zend_Controller_Front->dispatch() #5 {main} thrown in C:\xampp\htdocs\ZF\library\Zend\Loader.php on line 99


IndexController:

class IndexController extends Zend_Controller_Action
{
public function init()
{
Zend_Loader::loadClass('Produtos');
}

public function indexAction()
{
$view = Zend_Registry::get('view');
$table = new Produtos();
$produtos = $table->fetchAll('promocao');
$view->assign('produtos',$produtos);

$view->assign('header','pageheader.phtml');
$view->assign('body','index/bodyindex.phtml');
$view->assign('footer','pagefooter.phtml');
$view->render($this,'default.phtml');
}

}
?>

Edição feita por: HELLFROST, 19/06/2011, 17:48.

www.anaitesrecords.com
_____________________________
Programador & WebDesign

#2 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 11724 posts

Posted 04/10/2017, 19:41

Precio De Cialis En La Farmacia viagra online prescription Viagra Internet Forum Viagra Ricetta Cialis 10 Prospecto
Liquid Zithromax Typical Cost Of Amoxicillin Amoxicillin Is Used For viagra Canada Oil Kamagra Chewable

#3 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 11724 posts

Posted 30/10/2017, 13:55

Amoxicillin Directions cialis Assunzione Levitra




0 user(s) are reading this topic

0 membro(s), 0 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq