i have a problem after adding the database adapter
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Fatal error: Class 'Model_Books' not found in C:\xampp\htdocs\zfTutorial\application\controllers\BooksController.php on line 38 finally found the problem: APPLICATION_PATH is a constant, not a string. I was putting it in quotes ('basePath' => "APPLICATION_PATH" ). It is supposed to be without quotes:
this is the content os my bootstrap class. protected function __initAutoLoad(){ $modelLoader = new Zend_Application_Module_Autoloader(array( 'namespace'=>'', 'basePath'=> APPLICATION_PATH)); return $modelLoader; }
I like your accent. :D
IvanMarinIvkovich 3 weeks ago 3
great job :)
justcallmemacful 9 months ago
solved .... wrote param instead of params
SAWJANSEE 1 year ago
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
SAWJANSEE 1 year ago
i have a problem after adding the database adapter
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
SAWJANSEE 1 year ago
@SAWJANSEE in your application.ini, add semicolens (;) to the first lines like this: ;phpSettings.display_startup_errors = 0
;phpSettings.display_errors = 0
altint 1 year ago
simples
lgarvey 1 year ago
LOL, had the same error:
Fatal error: Class 'Model_Books' not found in C:\xampp\htdocs\zfTutorial\application\controllers\BooksController.php on line 38 finally found the problem: APPLICATION_PATH is a constant, not a string. I was putting it in quotes ('basePath' => "APPLICATION_PATH" ). It is supposed to be without quotes:
'basePath' => APPLICATION_PATH
delgado12 1 year ago
tho i still the the same error msg.
Fatal error: Class 'Model_Books' not found in C:\xampp\htdocs\zfTutorial\application\controllers\BooksController.php on line 38
does any one notices any error? ive done the tutorial 3 times and this always happens.
keep on the good work
knoker666 1 year ago
this is the content of my models/Books.php.
<?php
class Model_Books extends Zend_Db_Table_Abstract{ protected $_name = 'books';
}
and this is my listAction on Books controller. public function listAction() { $booksTBl = new Model_Books(); }
knoker666 1 year ago
Hi there great tutorial....
im getting a diferent result after 7:43.
this is the content os my bootstrap class. protected function __initAutoLoad(){ $modelLoader = new Zend_Application_Module_Autoloader(array( 'namespace'=>'', 'basePath'=> APPLICATION_PATH)); return $modelLoader; }
knoker666 1 year ago
What happened to the HD? :*(
vsritual 2 years ago
Comment removed
mrmagic22 2 years ago
Comment removed
mrmagic22 2 years ago
Great tutorial!
fitmotu 2 years ago 5
Great iniciative...
=]
Waiting for others...
zarathon 2 years ago 3