Answer the question
In order to leave comments, you need to log in
Why doesn't the error fire and throw out a 404 page?
Here is the actual controller
public function actionOnepage($slug=null){
if($slug==null){
$page=Pages::find()->all();
}else{
$page=Pages::findOne(['slug_pages'=>$slug]);
}
return $this->render('onepage',[
'page'=>$page
]);
}
SELECT * FROM `fl_pages` WHERE `slug_pages`='anna-kareninaрргеав'
C:\OpenServer\domains\film.lc\frontend\controllers\PageController.php (29)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question