I have tested symfony3 with both eclipse and netbeans IDE and I still don't manage to get autocompletion...
Here is my controller:
<?php
// src/OC/PlatformBundle/Controller/AdvertController.php
namespace OC\PlatformBundle\Controller;
// N'oubliez pas ce use :
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
class AdvertController extends Controller
{
public function indexAction()
{
$content = $this->get('templating')->render('OCPlatformBundle:Advert:index.html.twig');
return new Response($content);
}
}
In Eclipse I can have autocomplete for $this (then I have get as a choice), but I never get the render method with autocompletion..
I looked at this Preserving auto-completion abilities with Symfony2 Dependency Injection but I couldn't get it working.
Can anyone help me with my example please?