Subject: Invalid or non-existent directory: models
Fatal error: Uncaught exception 'ActiveRecord\ConfigException' with message 'Invalid or non-existent directory: models' in C:\xampp\htdocs\Vayave\vendor\php-activerecord\lib\Config.php:212 Stack trace: #0 C:\xampp\htdocs\Vayave\vendor\php-activerecord\ActiveRecord.php(30): ActiveRecord\Config->get_model_directory() #1 [internal function]: activerecord_autoload('POST') #2 C:\xampp\htdocs\Vayave\admin\index.php(13): spl_autoload_call('POST') #3 {main} thrown in C:\xampp\htdocs\Vayave\vendor\php-activerecord\lib\Config.php on line 212
Why this error message thrown when i try to access localhost/vayave/admin/index and try to add a new article.
[code]if(!empty($title) || !empty($body)){ POST::create(array( "title" => "dsd", "body" => "dsdsd" )); $status = "Post Inserted"; } else { $status = "Please enter the fields"; }[/code]
The error strokes at when i try to call the static create method.
June 27 2010
April 16, 2013
Subject: Invalid or non-existent directory: models
Fatal error: Uncaught exception 'ActiveRecord\ConfigException' with message 'Invalid or non-existent directory: models' in C:\xampp\htdocs\Vayave\vendor\php-activerecord\lib\Config.php:212 Stack trace: #0 C:\xampp\htdocs\Vayave\vendor\php-activerecord\ActiveRecord.php(30): ActiveRecord\Config->get_model_directory() #1 [internal function]: activerecord_autoload('POST') #2 C:\xampp\htdocs\Vayave\admin\index.php(13): spl_autoload_call('POST') #3 {main} thrown in C:\xampp\htdocs\Vayave\vendor\php-activerecord\lib\Config.php on line 212
Why this error message thrown when i try to access localhost/vayave/admin/index and try to add a new article.
[code]if(!empty($title) || !empty($body)){
POST::create(array(
"title" => "dsd",
"body" => "dsdsd"
));
$status = "Post Inserted";
} else {
$status = "Please enter the fields";
}[/code]
The error strokes at when i try to call the static create method.