[eluser]dmitrybelyakov[/eluser]
What smarty features do you intend to use? After some exploration i (yet) see no way to acces session directly from smarty templates.
So you still need to pass session data to smarty template somehow.
You can do it in several ways:
1. In your controllers like this:
Code:
$data['session']=$this->session->userdata;
$this->smarty_parser->parse("smarty.php", $data);
Or if you don't whant to do it each time in your controllers, you can move this to your smarty wrapper class.
2. In your smarty wrapper (smarty_parser.php) like this:
Code:
function parse($template, $data, $return = FALSE)
{
if ($template == '') return FALSE;
$CI =& get_instance();
/* here it goes */
$data['session']=$CI->session->userdata;
...
}
Then you can access all your session data in templates by using
Code:
{$session.session_id}
Hope that helps :-)