Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.