Welcome Guest, Not a member yet? Register   Sign In
Application structure question
#7

[eluser]beemr[/eluser]
[quote author="Colin Williams" date="1216809540"]2 cheers for accessibility! Sheesh...[/quote]

I second the sentiment. Also, how accessible is it for you? 6 repetitive controllers or a half dozen Ajax requests?

I don't think you'd have to go too far astray from base CI to get what you need. Libraries can act as a portable MVC, if you will. Just instantiate the CI super object
Code:
$this->CI =& get_instance();
from within your library. From there, you can load models, helpers, other libraries, and views with
Code:
$this->CI->load->view('logged_in')
. Have your library's methods return views, and you will keep the impact on your controllers down to one or two lines.

Code:
$this->load->view('header');
$this->load->my_library;
$this->my_library->user_status();
$this->load->view('footer');


Messages In This Thread
Application structure question - by El Forum - 07-20-2008, 09:54 PM
Application structure question - by El Forum - 07-20-2008, 10:33 PM
Application structure question - by El Forum - 07-20-2008, 10:58 PM
Application structure question - by El Forum - 07-21-2008, 10:01 PM
Application structure question - by El Forum - 07-22-2008, 10:35 PM
Application structure question - by El Forum - 07-22-2008, 11:39 PM
Application structure question - by El Forum - 07-23-2008, 02:09 AM
Application structure question - by El Forum - 07-23-2008, 02:36 AM
Application structure question - by El Forum - 07-23-2008, 02:48 AM
Application structure question - by El Forum - 07-23-2008, 03:26 AM
Application structure question - by El Forum - 07-23-2008, 03:42 AM
Application structure question - by El Forum - 07-23-2008, 10:45 AM
Application structure question - by El Forum - 07-23-2008, 11:00 AM
Application structure question - by El Forum - 07-23-2008, 11:49 AM
Application structure question - by El Forum - 07-23-2008, 12:08 PM
Application structure question - by El Forum - 07-23-2008, 12:57 PM
Application structure question - by El Forum - 07-23-2008, 01:55 PM
Application structure question - by El Forum - 07-23-2008, 02:59 PM
Application structure question - by El Forum - 07-27-2008, 09:51 PM
Application structure question - by El Forum - 10-01-2008, 02:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB