Whats the best practice of sharing common variable among functions of a class |
[eluser]Sumon[/eluser]
[EDITED: DAMM!!! IGNORE this post. it's 100% perfect & Sorry for my STUPID post] here is my controller Code: class Clients extends Controller { By example the url is http://www.shopno-dinga.com/client/overview/folder/420 when i use session to share folder_id[$folder_id = $this->session->userdata('folder_id')] among functions it works. but seems to me $this->folder_id is the best approach. But is it possible($folder_id = $this->folder_id ![]() what's the best practice ? |
Messages In This Thread |
Whats the best practice of sharing common variable among functions of a class - by El Forum - 03-01-2010, 10:48 AM
|