if ($behavior->canGetProperty($name)) { return $behavior->$name; } } if (method_exists($this, 'set' . $name)) { throw new InvalidCallException('Getting write-only property: ' . get_class($this) . '::' . $name); } throw new UnknownPropertyException('Getting unknown property: ' . get_class($this) . '::' . $name); } /** * Sets the value of a component property. * This method will check in the following order and act accordingly: * * - a property defined by a setter: set the property value * - an event in the format of "on xyz": attach the handler to the event "xyz" * - a behavior in the format of "as xyz": attach the behavior named as "xyz"
} } $this->htmlCompressOptions = $this->settings->htmlCompressOptions; if (!\Yii::$app->admin->requestIsAdmin) { parent::bootstrap($app); } } } }
if (!isset($component)) { $component = Yii::createObject($class); } if ($component instanceof BootstrapInterface) { Yii::trace('Bootstrap with ' . get_class($component) . '::bootstrap()', __METHOD__); $component->bootstrap($this); } else { Yii::trace('Bootstrap with ' . get_class($component), __METHOD__); } } }
protected function bootstrap() { $request = $this->getRequest(); Yii::setAlias('@webroot', dirname($request->getScriptFile())); Yii::setAlias('@web', $request->getBaseUrl()); parent::bootstrap(); } /** * Handles the specified request. * @param Request $request the request to be handled * @return Response the resulting response
/** * @inheritdoc */ public function init() { $this->state = self::STATE_INIT; $this->bootstrap(); } /** * Initializes extensions and executes bootstrap components. * This method is called by [[init()]] after the application has been fully configured. * If you override this method, make sure you also call the parent implementation.
*/ public function __construct($config = []) { if (!empty($config)) { Yii::configure($this, $config); } $this->init(); } /** * Initializes the object. * This method is invoked at the end of the constructor after the object is initialized with the * given configuration.
$this->state = self::STATE_BEGIN; $this->preInit($config); $this->registerErrorHandler($config); Component::__construct($config); } /** * Pre-initializes the application. * This method is called at the beginning of the application constructor. * It initializes several important application properties.
$config = \yii\helpers\ArrayHelper::merge( (array) require(__DIR__ . '/tmp-config-extensions.php'), (array) require(__DIR__ . '/app-config.php') ); \Yii::endProfile('Load config app'); $application = new yii\web\Application($config); $application->run();
if (!file_exists($skeeksFile)) { //Если нет app-web.php то попробуем начать установку автоматически. die("The project is not complete, not installed vendors."); } include $skeeksFile;
} ob_start(); $jj_level = ob_get_level(); ob_start(); require( dirname( __FILE__ ) . '/index.php' ); while (ob_get_level() > $jj_level) ob_end_flush(); $result = ob_get_contents(); ob_end_clean();
$_GET = [ 's' => '09560f7dbf6c16d96f58346f94eec906', 'app' => 'gallery', ];