mruz / base-app

The base application in PhalconPHP
63 stars 19 forks source link

HMVC request #7

Closed mzf closed 10 years ago

mzf commented 10 years ago

How i can get content from another controller in volt template? I find function request in bootstrap, but how i can use it, i dont undestand. Help me please.

mruz commented 10 years ago

You can run the request in the controller as in HMVC:

$output = $this->app->request(array(
    'controller' => 'say',
    'action' => 'hello'
));
mzf commented 10 years ago

request() always return NULL

mruz commented 10 years ago

Please try to return something in "say/hello" action.

mruz commented 10 years ago

Fixed in https://github.com/mruz/base-app/pull/8