Пример #1
0
 /**
  * Load captcha class
  *
  * @return void
  */
 private function iniViewCaptcha()
 {
     $captchaSessionName = implode('-', url::getSegments());
     $captcha = captcha::load();
     \lib\session::set($captchaSessionName, $captcha->code);
     $captcha->create();
 }
Пример #2
0
 /**
  * Remap layer paths
  * Enable chaining method
  *
  * @return bootstrap instance
  */
 private function setRemap()
 {
     foreach ($this->remapControllers as $original => $remapped) {
         if (strpos(url::getFull(), $original) !== false) {
             self::$routeController = explode('/', $remapped);
             break;
         }
     }
     return $this;
 }