CodeIgniter Forums
I am newbie for CI, two questions - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: I am newbie for CI, two questions (/thread-38702.html)



I am newbie for CI, two questions - El Forum - 02-16-2011

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