Closed mzf closed 10 years ago
I'm trying to not use Arr class in core app, so please change your code to something like this:
$dispatcher->setControllerName($controller = isset($location['controller']) ? $location['controller'] : 'index');
$dispatcher->setActionName($action = isset($location['action']) ? $location['action'] : 'index');
$dispatcher->setParams($params = isset($location['params']) ? (array) $location['params'] : array());
Please also configure netbeans as in Configuring NetBeans for PSR-1 and PSR-2 coding guidelines. and run Source > Format (Alt+Shift+F), then I will accept your PR.
Thanks.
Thanks a lot!
now u can return view from controller for HMVC requests