i try call controller function in twig file with render but it give error this is my controller code this is controller path
\src\AppBundle\Controller\front\MenusController.php
MenusController.php Code
<?php
namespace AppBundle\Controller\front;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
class MenusController extends Controller
{
public function menuAllAction()
{
return $this->render('front/menus.html.twig');
}
}
and this code is my twig file code master.html.twig
{% render(controller('AppBundle:front:Menus:menuAll')) %}
but is return error please help me