context; ?>
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
	{
		return array(
			'captcha' => array(
				'class' => 'yii\web\CaptchaAction',
			),
		);
	}

	public function actionIndex()
	{
//		throw new \yii\base\HttpException(500);
		$x = null;
		$x->y = 1;

		echo $this->render('index');
	}

	public function actionLogin()
	{
		$model = new LoginForm();
		if ($this->populate($_POST, $model) && $model->login()) {
			Yii::$app->response->redirect(array('site/index'));
		} else {
			echo $this->render('login', array(
				'model' => $model,
Attention

Exceptionyii\base\HttpException – 404

Requested user cannot be found!

$_GET = [
	'show-post' => 100,
	'refresh-page' => 'yes',
	'ascending-sort' => 1,
];

$_POST = [
	'blog-post-form' => [
		'title' => 'hello',
		'author_id' => '12',
	],
];

$_SERVER = [
	'DOCUMENT_ROOT' => '/home/resurtm/work/data',
	'REMOTE_ADDR' => '::1',
	'REMOTE_PORT' => '52694',
	'SERVER_SOFTWARE' => 'PHP 5.4.3 Development Server',
	'SERVER_PROTOCOL' => 'HTTP/1.1',
	'SERVER_NAME' => 'localhost',
	'SERVER_PORT' => '8000',
	'REQUEST_URI' => '/index.php?post-form[title]=hello&post-form[author_id]=12',
	'REQUEST_METHOD' => 'GET',
	'SCRIPT_NAME' => '/index.php',
	'SCRIPT_FILENAME' => '/home/resurtm/work/data/index.php',
	'PHP_SELF' => '/index.php',
	'QUERY_STRING' => 'post-form[title]=hello&post-form[author_id]=12',
	'HTTP_HOST' => 'localhost:8000',
	'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0',
	'HTTP_ACCEPT_LANGUAGE' => 'ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3',
	'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
	'HTTP_CONNECTION' => 'keep-alive',
	'REQUEST_TIME_FLOAT' => 1369146454.0856,
	'REQUEST_TIME' => 1369146454,
];
*/ ?>