Answer the question
In order to leave comments, you need to log in
How to organize work with search results (Yii2)?
In general, there is a search form by authors.
Works correctly, even looking for something, for example. here:
The question is how to work with search results in Yii (Url::to(), Url::toRoute(), etc..)
As you can see from the screenshot, in the drop-down menu of the option there is an information item that leads to the full profile of the author and renders the corresponding view.
How to redirect via actionView() to the desired author profile?
Tried to write like this
<li><a href="<?php echo Url::to(['default/view', 'id'=>$authors['id']]); ?>">Информация</a></li>
public function actionView()
{
return $this->render('__authorsFullProfile');
}
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