public function routing($dao)
 {
     if ($this->ECCModule == 'kernel\\classes\\admin\\ECCAdmin') {
         if (!isset($this->parsedURI[1])) {
             $object = new ECCAdmin($dao);
             $object->dashboard();
         } elseif ($this->parsedURI[1] == 'settings') {
             if (!isset($this->parsedURI[2])) {
                 $method = 'index';
             } else {
                 $method = $this->parsedURI[2];
             }
             $ECCAdmin = new ECCAdminSettings();
             if (method_exists($ECCAdmin, $method)) {
                 $ECCAdmin->{$method}();
             } else {
                 header('Location: /admin/settings/');
             }
         } elseif ($this->parsedURI[1] == 'edit') {
             /*
              * ECCObject edition
              */
         } elseif ($this->parsedURI[1] == 'delete') {
             /*
              * Delete an ECCObject
              */
         } elseif ($this->parsedURI[1] == 'new') {
             /*
              * Create new ECCObject
              */
         } else {
             $frontRequestURI = $this->requestURIWithOffset(2);
             $frontECCModule = $this->getECCModule(2);
             $ECCObjectID = ECCAlias::getECCObjectId($dao, $frontRequestURI);
             $object = new ECCAdmin($dao, new ECCObject($dao, new $frontECCModule($dao), $ECCObjectID));
             $object->viewECCObject();
         }
     } elseif ($this->ECCModule == 'kernel\\classes\\setup\\ECCSetup') {
     } elseif ($this->ECCModule == 'kernel\\classes\\user\\ECCUser') {
         $method = $this->parsedURI[1];
         $ECCUser = new $this->ECCModule($dao);
         $ECCUser->{$method}();
     } else {
         $ECCObjectID = ECCAlias::getECCObjectId($dao, $this->requestURI);
         if (!$ECCObjectID) {
             ECCSystem::error(404);
         }
         $object = new ECCObject($dao, new $this->ECCModule($dao), $ECCObjectID);
         $object->exec();
     }
 }
 public function clearcache()
 {
     ECCSystem::deleteDir('var/cache/twig');
     ECCSystem::redirectToURI('/admin/settings/');
 }