I am lost for where I am actually suppose to put my php logic for front end web pages. I want to create a site that members login to that is not apart of the EE control panel and they get to see restricted content. I want to leverage the existing templating system in EE along with my custom views so that changing the design of the site is easy. Normally in Codeigniter you just create a controller to store all your php logic and create a model class and a view file that is loaded by the controller. I have no idea how to do this in EE. Its really frustrating.
I can drop php code in a template page which stores it in the db but that seems like a terrible place to put a bunch of code which is then tied to my view. Creating a plugin or module seems like it is directly related to the EE control panel or for writing a block of code that you want to parse something in a template. They just don’t seem to make sense for what it is I am trying to accomplish. Hopefully this post isn’t to confusing.