I'm trying to implement a blog on yii2. How to organize the search for an article on a site in the database after going by url Suppose we have the url http://domen.me/post/udachnyytest

database search is done by url udachnyytest?

  • Normal SELECT query - robertobadjio
  • This is understandable, and the search for the article itself always happens on the url of the article or on the id? - Victor Vasilyev
  • Well, that's how you do it, you can send it to the url and id, and how you have the alias - robertobadjio
  • Is it possible to search by id and in url to transfer to domen.ru/udachnyytest - Viktor Vasilyev
  • one
    your models have fallen off. and I advise you to go into production mode - dasauser

0