CodeIgniter Forums

Full Version: I am newbie for CI, two questions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
first, I have almost finish all my php web scripts under CI
but I rarely use Mode part of CI, I don't know why.

second, maybe the CI producer hope we only use
Code:
<?php echo $some_variable;?>
in a viewer file
but I found for those language/config/MY_config variables,
if I use controller to transfer them to the viewers, it is so un-effecient, so I often use like this in the viewers files:
Code:
$this->config->item('variable');
  $this->lang_value('variable');
  //lang_value is a MY_language_helper function.

somebody can tell me whether I am using the right way?

thanks!