Hi,
I am struggling for some time with this weird problem which I could not solve. In the Yii advanced template, I have the default sitecontroller with all the actions it came with. I could add a couple of actions and those are working fine.
Now problem is that today I added a couple of actions and I am getting #404 error
A simple function like the one below (actionHatsoff) is getting error
public function behaviors()
{
return [
'access' => [
'class' => AccessControl::className(),
'only' => ['logout', 'signup'],
'rules' => [
[ 'actions' => ['signup'], 'allow' => true, 'roles' => ['?'],],
[ 'actions' => ['logout'], 'allow' => true, 'roles' => ['@'],],
],
],
'verbs' => ['class' => VerbFilter::className(), 'actions' => ['logout' => ['post'], ], ],
];
}
public function actionHatsoff() {
return $this->render('addmanucom');
}
It was a database connectivity issue. It was not showing errors in debug mode and was redirecting.
{CLOSED}