You can extend user session variable (=preference) of application by creating class that extend 'CIISONLINE_UserSession' class. Prefix your class name with '0' (zero) and must has suffix with '.class.php' Place your new class under /System/Session/User.
You must register this session variable to the system as shown in the first statement of the example below.
Here is '0BackgroundImage.class.php' user session file for your example:
You will access the value of user session variable like below:
No comments:
Post a Comment