10-18-2008, 04:45 AM
[eluser]Đỗ Thanh Tùng[/eluser]
Hi all, I'm a newbie. I have a problem when using variable in CodeIgniter.
I have a class like this :
when I run the function b like this : localhost/index.php/abc/a then localhost/index.php/abc/b
It return empty. How can I reuse the variable without send it's param again ?
Thanks for help.
Hi all, I'm a newbie. I have a problem when using variable in CodeIgniter.
I have a class like this :
Code:
Class abc Extends Controller {
function abc () {
parent::controller();
}
function a () {
$this->something = 'something';
}
function b () {
echo $this->something;
}
}
It return empty. How can I reuse the variable without send it's param again ?
Thanks for help.