Jump to content

grezman

New Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by grezman

  1. I run into the same problem. Try using the full namespace as a class name. Do not use an alias because it will not work. Use the full call. i.e. $classname = 'application\controllers\\'.$this->getController().'Controller' ; return new $classname($this->getController(), $this->getAction()); It worked for me
  2. I had the same problem. But I overcame it by adding an alias namespace of PDO at the top of my class. i.e namespace my\folder; use PDO; class foo{ function zoo(){ $a = new \PDO(......); } }
×
×
  • Create New...