Welcome Guest, Not a member yet? Register   Sign In
I am newbie for CI, two questions
#1

[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!




Theme © iAndrew 2016 - Forum software by © MyBB