Jump to content

MVC and my site


gp177

Recommended Posts

So I am designing my first site using a MVC framework (CodeIgniter).  I love it but I'm not sure how to use it to the fullest with my site.  My server is a windows 2003 box using IIS.

 

The site has:

An intranet application (only subnet access, SSL not required but can be used).

A static public site.

A dynamic user account section with E-commerce (requiring ssl).

 

If my understanding is correct, than everything in any MVC framework is called through a single front controller object.  If that is the case then using different IIS settings (such as force ssl) on my controllers does not work.

 

Is it possible then, to contain my entire site within one instance of CodeIgniter?  Are there other frameworks that work differently that would support what I want to do?

 

One solution is to do the ip restriction with php, so that both my intranet and dynamic site could sit in one instance of CodeIgniter.  But that still leaves my static site.

 

Any advice is welcome,

Gp

Link to comment
https://forums.phpfreaks.com/topic/51487-mvc-and-my-site/
Share on other sites

According to these articles

 

http://www.alternateinterior.com/2007/03/comparing-monolithic-controllers-with-task-based-controllers.html

http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html

 

Having one controller is a big mistake. I'm still trying to wrap my head around the theory of it though, so I'm not in a position to have my own opinion (yet.)

Link to comment
https://forums.phpfreaks.com/topic/51487-mvc-and-my-site/#findComment-256489
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.