Using Phalcon 3.0.1 + PHP 7.0.10 on Linux.
My dispatcher in bootstrap;
use Phalcon\Mvc\Dispatcher;
$di->set('dispatcher', function() {
$dp = new Dispatcher();
$dp->setControllerSuffix('');
$dp->setActionSuffix('');
$dp->setDefaultNamespace('MyApp\Controllers');
return $dp;
});
First issue I've seen is that I can't no longer use
$this->request->getParam('name');
I get this following error: Error: Using $this when not in object context
Even when I try using it like this;
$request = new \Phalcon\Http\Request();
$name = $request->getParam('name');
I get this following error: Error: Call to undefined method Phalcon\Http\Request::getParam()
Even using something like this wont work;
$dispatcher = new \Phalcon\Mvc\Dispatcher();
$name = $dispatcher->getParam('name');
I get blank page!