Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [pdt-dev] Code assist for Superclasses in another namespace

Hi Robert,

According to php.net, one should prefix the class name with the identifier of the namespace.

See http://www.php.net/manual/en/language.namespaces.importing.php

 

Anyway, I see that content assist is not provided. Can you please open an issue if one has not been submitted yet?

 

Thanks,
Roy

From: pdt-dev-bounces@xxxxxxxxxxx [mailto:pdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Robert Gruendler
Sent: Friday, March 05, 2010 9:07 PM
To: PDT Developers
Subject: [pdt-dev] Code assist for Superclasses in another namespace

 

Hi everyone,

 

i'm testing code assistance for the default framework classes, and i don't get

any methods/fields from superclasses when the superclass is in another

namespace.

 

Here's the example code:

 

namespace Application\HelloBundle\Controller;

 

use Symfony\Framework\WebBundle\Controller;

 

class HelloController extends Controller

{

  public function indexAction($name)

  {

    $this->

  }

}

 

When the completion at $this-> starts, i only get the indexAction() method suggested,

but none of the methods of the parent Symfony\Framework\WebBundle\Controller.

 

However, when not pulling in the namespace with "use", but extending the class directly

using the namespace notation, the completion works:

 

namespace Application\HelloBundle\Controller;

 

class HelloController extends Symfony\Framework\WebBundle\Controller

{

  public function indexAction($name)

  {

       $this-> <--- now i get all superclass methods/fields

  }

}

 

Not sure if this should work already, so i thought i'll rather ask on the list.

 

 

regards

 

-robert

 

 


Back to the top