hmvc

HMVC framework for Coldfusion?

I'm given a task to develop a couple of applications in ColdFusion that will share some of the data - same data but different presentation. The first solution that comes in mind is to create a ColdFusion widget that as I understand breaks some MVC rules within ColdBox I am currently using. I need more of a view within another view with ...

HMVC and dynamic widgets

Background I use the word widget as a partial view that have its own controller (so its own actions) and it is placed in almost all pages. I implement the rendering of this via HMVC, that is just great. Problem Now, the problem is that the widget itself execute actions. Think about a shopping cart widget. That widget is placed in all ...

What's the proper MVC way to do this....?

Quick question about general MVC design principle in PHP, using CodeIgniter or Kohana (I'm actually using Kohana). I'm new to MVC and don't want to get this wrong... so I'm wondering if i have tables: categories, pages, notes I create a separate controller and view for each one...? So people can go to /category/# /page/# /note/# ...

Codeigniter HMVC and CMS

I am using Codeigniter with the HMVC Modular extension and have a backend CMS area for managing website content. I am routing the base URL + "admin" (http://localhost/cms/admin) to controller methods with the prefix "admin_". e.g. function admin_index() {...} And here is my routing: $route['admin/([a-zA-Z]+)/(:any)'] = "$1/admin_$2...

What is the HMVC pattern?

Reading Kohana's documentation, I found out that the main difference in 3.0 version is that it follows the HMVC pattern instead of MVC as version 2.x does. The page about this in Kohana's docs and the one on wikipedia didn't really give me a clear idea. So question: what is the HMVC pattern and how does it differ from MVC? ...

What Can I Use the HMVC Architecture for?

the PHP framework I am using (Kohana) recently implemented the HMVC architecture. I have read that it's a layered mvc where requests are made on top of each other. It is a bit like ajax, just purely server-side. I have applied it a bit on some experiments but I can't apply it to any of my projects (because I can't find a need for it). Ha...

Kohana 3.0's HMVC structure in layman's terms?

So, I think i understand the cascading filesystem in it's basic terms, but I can't seem to wrap my head around the 'H'ierachy structure of the MVC. Could anyone tell me the advantages of using HMVC over MVC and it's basic intended functionality? Thanks for your time! ...

Codeigniter HVMC modular seperation extension URL rewrite / routing

Hey Guys, Ive been using HVMC modular extension, and its working great, but Im having trouble figuring out how to use, and if it is possible to use URL routing with HVMC. Basically, I have a module called “site”, which is my main default site controller. All of the other modules I am not using directly, I am only using them by calling ...

Hierarchic MVC in Rails 3?

I've read about HMVC (Hierarchic Model View Controller) and it's flexible structure. Have a look at this picture: http://techportal.ibuildings.com/wp-content/uploads/2010/02/MVC-HMVC.png I wonder if the Rails 3 plugins are the answer to HMVC in Rails 3? EDIT: Why cant I start a bounty on this one? No bounty button, bug? ...

Kohana 3 : Prevent a controller action which renders a sub-vew from rendering if not called from approved controller

Let's say I have the domain www.example.com It has a default controller called 'account'. This controller is based on a template, and creates a view using it's data, and the result of a couple of other controller's renderings. Let's call the other controllers, 'game', and 'stats'. These 'sub-controllers' call View::factory with their...

HMVC in Zend Framework

Is it possible to use the HMVC pattern in Zend Framework? It is implemented in Kohana 3 by default and I really love it, so now I want to use it in Zend Framework. Edit I want to make it possible to: 1) include a complete request (like controller/action) inside an other request 2) make a direct call to the controller/action as above I...

Share a Kohana install between sites.

Hey all, kind of new at Kohana and I have a quick question. I have a site where there will be three subsections, organized by subdomain (i.e. admin.site.com, community.site.com, www.site.com) but each of the subsections will be pulling from the same database so should be sharing the same models. Is there a way to organize it so that I c...