John Davidson

php - Compile Error: Cannot use positional argument after named argument

0 comments
Message:


/**
* @param $name
* @return Response
* @Route ("/afficheN/{name}",name="afficheN")
*/
public function afficheName($name){
return $this->render(view:'student/affiche.html.twig',
['n' => $name]);
}


My Answer:
$name: string)_ * public function hello($name)_ * {_ * return new Response("Hello, $name!");_ *}

Rate this post

4 of 5 based on 1929 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us