[eluser]Kamape[/eluser]
[quote author="mhulse" date="1261816576"]Hmm, I probably should go back to the drawing board on this one.
I was thinking I could instantiate some user-defined variables upon controller initialization.
I am trying to avoid generating a multi-dimensional array twice, from one controller, for two different views (one view that generates CSS, and another that generates HTML -- both based on what the user passes to a single controller.)
site.com/folder/controller/html_output/param1/param2/
site.com/folder/controller/css_output/param1/param2/
I would use the above uris for ajax calls.
I suppose I could put the css and html into the same view, and use jquery to grab one or the other chunk of code.
Anyway, sorry to bug ya'll.
M[/quote]
There's also always the HOOK for "post_controller_constructor" where you can load up the view with the array by using $CI->load->vars(). I'm using the post_controller_constructor to specifiy some controller dependent lang_files to load. This so that I can use the lang() helper inside controller methods instead of loading the lang-file in every method.