Welcome Guest, Not a member yet? Register   Sign In
Help with helpers
#12

[eluser]gyo[/eluser]
@gmask: yeah that is ok, or you can also place the settings in the controller, like:

Code:
$this->load->helper('my_helper');

$settings = settings();
$this->load->view('index', $settings);

This way the variables are 'prettier' inside the view, where you can just use $title, $location, $tagline.

But, if you need that piece of code EVERYWHERE, the suggestion of InsiteFX to use MY_Controller is very recomendable.


Messages In This Thread
Help with helpers - by El Forum - 08-31-2010, 01:28 AM
Help with helpers - by El Forum - 08-31-2010, 02:05 AM
Help with helpers - by El Forum - 08-31-2010, 02:50 AM
Help with helpers - by El Forum - 08-31-2010, 03:11 AM
Help with helpers - by El Forum - 08-31-2010, 03:45 AM
Help with helpers - by El Forum - 08-31-2010, 04:04 AM
Help with helpers - by El Forum - 08-31-2010, 04:17 AM
Help with helpers - by El Forum - 08-31-2010, 04:37 AM
Help with helpers - by El Forum - 08-31-2010, 10:02 AM
Help with helpers - by El Forum - 08-31-2010, 12:41 PM
Help with helpers - by El Forum - 08-31-2010, 02:33 PM
Help with helpers - by El Forum - 09-01-2010, 01:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB