/** * Load captcha class * * @return void */ private function iniViewCaptcha() { $captchaSessionName = implode('-', url::getSegments()); $captcha = captcha::load(); \lib\session::set($captchaSessionName, $captcha->code); $captcha->create(); }
/** * 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; }