mruz / base-app

The base application in PhalconPHP
63 stars 19 forks source link

request code change #8

Closed mzf closed 10 years ago

mzf commented 10 years ago

now u can return view from controller for HMVC requests

mruz commented 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.

mruz commented 10 years ago

Thanks.

mzf commented 10 years ago

Thanks a lot!