public function __construct()
 {
     //FoxFWKernel::addVendor('foxFW/FoxFWPage.php');
     FoxFWKernel::addModel('Page');
     $this->page = new Page();
     if (!is_dir(_WEB . '/page')) {
         mkdir(_WEB . '/page', 0755, true);
     }
 }
 public function index($params)
 {
     //FoxFWKernel::addVendor('foxFW/Page.php');
     FoxFWKernel::addModel('Page');
     //liste new article
     $page = new Page();
     $liste = $page->liste(array('max' => 20, 'type' => 'Article'));
     //return $GLOBALS['Twig']->render( _BUNDLE.'foxfw/view/index.html.twig', array('liste'=>$liste));
     return $GLOBALS['Twig']->render(FoxFWKernel::getView('index'), array('liste' => $liste));
 }
 public function __construct()
 {
     FoxFWKernel::addModel('Evenement');
 }