Hi I'm a new bie to YII 2 framework,
I'm currently learning from following tutorial http://www.yiiframework.com/wiki/490/creating-a-simple-crud-app-with-yii2-revised-12-20-2013/
Everything worked well but when I created a function within SiteController.php
i.e
public function actionLogin()
{
if (!\Yii::$app->user->isGuest) {
return $this->goHome();
}
$model = new LoginForm();
if ($model->load(Yii::$app->request->post()) && $model->login()) {
return $this->goBack();
} else {
return $this->render('login', [
'model' => $model,
]);
}
}
and when I access it from the browser as follow,
http://localhost/basic/web/site/login/
I'm getting
Object not found! in my browser but I can access the SiteController.php index function as follow http://localhost/basic/web/
Not sure what I'm missing here, could you please let me know the issue?
Thanks in Adavance
EDIT : For debug purpose I placed die statement in the \basic\web\index.php apparently it's not hitting that file also