Answer the question
In order to leave comments, you need to log in
What is the magic in symfony?
Hello. Just started studying symphonies. There is little information on the framework. Therefore lamersky question.
What is the magic in the demo app? Is it so automatic and framed the slug, and found a post on it?
public function postShowAction(Post $post)
{
return $this->render('blog/post_show.html.twig', array('post' => $post));
}
Answer the question
In order to leave comments, you need to log in
@ParamConverter .
If you just select a record by id and send it to the view - yes, it's lost.
Somehow, the meaning of the controller is lost, as an intermediary between the model and the view.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question