Variables from loaded view |
http://www.codeigniter.com/user_guide/li...ader::view
Code: $this->load->view('extract', $data); You can also use isset() and/or empty() within the view to determine whether specific variables were set before trying to use them. In general, though, it sounds like you're trying to put Controller or Library code into a View. It might be difficult in the short term, but it would probably be better in the long term to get as much of the code as possible out of the views. |
Messages In This Thread |
Variables from loaded view - by msheath - 04-21-2015, 04:02 PM
RE: Variables from loaded view - by pompeu - 04-21-2015, 05:03 PM
RE: Variables from loaded view - by InsiteFX - 04-22-2015, 03:50 AM
RE: Variables from loaded view - by msheath - 04-22-2015, 08:09 AM
RE: Variables from loaded view - by mwhitney - 04-23-2015, 11:51 AM
RE: Variables from loaded view - by msheath - 04-23-2015, 01:37 PM
|