DooPHP IRC channel


HMVC support

Discussion about new desired features.

HMVC support

Postby Coyotte » Tue Sep 22, 2009 2:03 pm

If controller's call had supported like in kohana3 framework (HMVC - http://cevarief.wordpress.com/2009/09/04/tutorial-kohana-3-mengenal-hmvc/) ,
for example:

Code: Select all
class TestController extends DooController {

    function home() {

        $this->data['vas1'] = Request::factory('/{controller}/{action})->execute();
        $this->data['vas2'] = Request::factory('/{controller}/{action})->execute();

        $this->render('index', $this->data);

    }
}


It 'd be really great!
Coyotte
 
Posts: 3
Joined: Tue Sep 15, 2009 7:46 pm

Re: HMVC support

Postby leng » Tue Sep 22, 2009 3:54 pm

I am not quite there in terms of convincing myself that HMVC adds something that is really useful in typical applications.
Anyone have any other thoughts about how this might be useful in a real situation?
It always reminds me of include() when I think of HMVC.
Just Doo IT!
leng
 
Posts: 1482
Joined: Thu Jul 16, 2009 11:33 pm

Re: HMVC support

Postby roman » Tue Sep 22, 2009 5:12 pm

Couldn't a currently executing controller simply make calls to other pieces of code, instead?
roman
 
Posts: 442
Joined: Sat Aug 01, 2009 8:31 pm

Re: HMVC support

Postby leng » Tue Sep 22, 2009 5:40 pm

I was thinking the same thing, why not call to static/non-static methods in those other controllers?
Just Doo IT!
leng
 
Posts: 1482
Joined: Thu Jul 16, 2009 11:33 pm

Re: HMVC support

Postby zares » Tue Sep 22, 2009 6:18 pm

Leng,
I agree with such approach. HMVC - the artificial term born by lacks of some frameworks...
zares
 
Posts: 18
Joined: Thu Sep 17, 2009 10:00 am

Re: HMVC support

Postby leng » Tue Sep 22, 2009 6:22 pm

sorry, do you mean you think HMVC is a good idea or are you agreeing with roman?
Just Doo IT!
leng
 
Posts: 1482
Joined: Thu Jul 16, 2009 11:33 pm

Re: HMVC support

Postby zares » Tue Sep 22, 2009 6:57 pm

sorry, do you mean you think HMVC is a good idea or are you agreeing with...


I think, that the good idea - not to speak about HMVC, as about the new and unique :)
Because it only a soap bubble of especial possibilities some frameworks.
zares
 
Posts: 18
Joined: Thu Sep 17, 2009 10:00 am

Re: HMVC support

Postby leng » Sat Sep 26, 2009 9:07 pm

This feature is added in r155
Please see DooWebApp::module() in the API reference for more info.
http://doophp.com/documentation/api_svn
http://doophp.com/documentation/api_svn.zip
Just Doo IT!
leng
 
Posts: 1482
Joined: Thu Jul 16, 2009 11:33 pm

Re: HMVC support

Postby Coyotte » Sun Sep 27, 2009 11:43 am

leng wrote:This feature is added in r155
Please see DooWebApp::module() in the API reference for more info.
http://doophp.com/documentation/api_svn
http://doophp.com/documentation/api_svn.zip


Avesome!!!
This is exactly what I have needed.
Coyotte
 
Posts: 3
Joined: Tue Sep 15, 2009 7:46 pm


Return to Features Request

Who is online

Users browsing this forum: No registered users and 0 guests