I'm newbie. In Korea, Phalcon is not popular very much. It's hard to get Phalcon information. But I like phalcon. I searched web very much for solve error.
sorry for my english. help, please.
IndexController.php
<?php namespace App\Controllers;
class IndexController extends ControllerBase{
public function indexAction(){
// output errors to browser
ini_set('display_errors', 1);
error_reporting(E_ALL);
$a = new \App\Models\Cars();
browser
Fatal error: Uncaught Error: Class 'App\Models\Cars' not found in /var/www/html/evasmall/app/app/controllers/IndexController.php:13 Stack trace: #0 [internal function]: App\Controllers\IndexController->indexAction() #1 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(App\Controllers\IndexController), 'indexAction', Array) #2 [internal function]: Phalcon\Dispatcher->dispatch() #3 /var/www/html/evasmall/app/public/index.php(38): Phalcon\Mvc\Application->handle() #4 {main} thrown in /var/www/html/evasmall/app/app/controllers/IndexController.php on line 13