Code
if($tmpcvid)
{
pnModSetVar('cv','iscompleted',true);
// Success
LogUtil :: registerStatus(_CVISCREATED);
} else
{
pnModDelVar('cv','iscompleted');
pnModSetVar('cv','iscompleted',false);
}
{
pnModSetVar('cv','iscompleted',true);
// Success
LogUtil :: registerStatus(_CVISCREATED);
} else
{
pnModDelVar('cv','iscompleted');
pnModSetVar('cv','iscompleted',false);
}
so if CV is completed I show "Edit" link in template(I check $is completed variable in template). and if $iscompleted is false I show "submit" link.
but there is a problem. if i log in and hav CV and than log out still "Edit" link is shown. I need to refresh
page to refresh link/menu content.
yes i have 'nocache' tags around menu im template file, but this has no effect.
i see writing Smarty plugin functions can help, but what i'm doing worng in current code?
