[eluser]metaltapimenye[/eluser]
gosh!..i just got enlightned! so thats '_' are for.. let me make it straight, so if i call $link=base_url().'_title'; .. where its gonna leads me?404 page?
the reason why i never use '_' feature all this time is.. becouse im too dumb to understand what is it for n_n.
i've take this approach becouse i need to pass a static variable name, with static key name, to every function that leads to the same view. in the other hands, im too lazy to call it in every function that browsed. (etc:dynamic menu)
Code:
function index(){
$data=array();
$data['title'] = $this->_title();
$this->load->view('viewname',$data);
}
function _title(){
return "hello";
}
function segment4(){
#i have to call it once more
$data['title'] = $this->_title();
/*..other process */
$this->load->view('viewname',$data);
}
function another_segment4(){
#another calling >_<.. the case that i want to avoid
$data['title'] = $this->_title();
/*..other diffrent process */
$this->load->view('viewname',$data);
}
i havent make any libs before..let say,eww..im a bit lack of examples :red:
i still dont know for sure.. is it the more we load libs and helper is heavier our system will be?
anyhow, thx mate..n_n