nie wiem czy to pytanie zamieszczam w dobrym dziale, ale szukałem już chyba wszędzie odpowiedzi, i nic nie znalazłem.
Zaczynam naukę framework'a więc proszę o wyrozumiałość w błędach żółtodzioba. Sprawa wygląda tak że wyświetla mnie się błąd po załączeniu skryptu
błąd:
Strict Standards: Creating default object from empty value in C:\wamp\www\ZEND\application\controllers\IndexController.php on line 4
kod jaki mam to
plik IndexController.php
<?php class IndexController extends Zend_Controller_Action { function indexAction() { $this->view->title = "My Albums"; } function addAction() { $this->view->title = "Add New Album"; } function editAction() { $this->view->title = "Edit Album"; } function deleteAction() { $this->view->title = "Delete Album"; } }
plik index.php
<?php date_default_timezone_set('Europe/London'); . PATH_SEPARATOR . './application/models/' include "Zend/Loader.php"; Zend_Loader::loadClass('Zend_Controller_Front'); Zend_Loader::loadClass('Zend_Controller_Action'); // to załączyłem bo wywalało błąd Fatal error: Class 'Zend_Controller_Action' not found, // da się to jakoś ominąć czy wszystkie klasy trzeba załączać osobno? $frontController = Zend_Controller_Front::getInstance(); $frontController->throwExceptions(true); $frontController->setParam('noViewRenderer', true); $frontController->setParam('useDefaultControllerAlways', true); $frontController->setControllerDirectory('./application/controllers'); $frontController->dispatch();
co zrobić z tym błędem?bardzo proszę o pomoc