O model só dá NOT FOUND em um controller que gerencia Noticias.
ERROR: Fatal error: Class 'App\Models\Site\NoticiaModel' not found in C:\xampp\htdocs\ManagerContent\App\Controllers\Site\HomeController.php on line 13
Segue link no pastebin para entender o problema: http://pastebin.com/HkPjXL0j
Model:
<?php
namespace App\Models\Site;
class NoticiaModel extends \ActiveRecord\Model {
static $Table = 'noticia';
}
Controller:
<?php
namespace App\Controllers\Site;
use \App\Controllers\BaseController as Base;
use \App\Models\Site\NoticiaModel as Noticias;
class HomeController extends Base {
public function index() {
// List Noticias
$Noticias = Noticias::all();
dump($Noticias);
$Dados = ['titulo' => 'Home'];
$Template = $this->Twig->loadTemplate('Home.html');
$Template->display($Dados);
}
}