TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 05-22-2010, 12:29 PM   #1 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default Hmvc

How would I go about to create my framework with support for HMVC?
I have found one tutorial that explained how to create an HMVC framework but it was just.. weird. http://www.codewalkers.com/c/a/Misce...tern-in-PHP-5/

Anyone who knows a better tutorial or who can write a quite how-to?
What I'm mostly curious about is how to load the seperate controllers(modules) so that they can access eachother and so on.
__________________
Tanax is offline  
Reply With Quote
Old 05-24-2010, 11:03 AM   #2 (permalink)
The Wanderer
 
Join Date: Sep 2009
Posts: 9
Thanks: 1
afraca is on a distinguished road
Default

Why not semi-reverse-engineering. I think you can learn a lot from frameworks currently implementing the HMVC pattern, especially the Kohana framework, see how they load controllers.

Disclaimer: Kohana's transition from MVC to HMVC took place about 6 months ago, so there might be a small number of inconsistencies left, but I still think they've done a great job :)
afraca is offline  
Reply With Quote
Old 05-24-2010, 03:09 PM   #3 (permalink)
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

Oh dear... the development community got together for beer and came up with yet another buzzword to mess with everybody else did they?

I'm just going to get ten years ahead of the curve and start developing my DLBOAHMVC framework right now (drunken little bastard of a heirarchal model view controller).
delayedinsanity is offline  
Reply With Quote
Old 05-24-2010, 04:22 PM   #4 (permalink)
The Wanderer
 
Join Date: Sep 2009
Posts: 9
Thanks: 1
afraca is on a distinguished road
Default

Although I sort of understand what you mean, our almighty all-knowing "trustworthy" wikipedia redirects hmvc to Presentation-abstraction-control , and under references I saw the PAC model is first mentioned in 1987 ;)
afraca is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 07:40 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design