php - open cart how to get current customer info? -


i have created following controller:

class controllercommontestsms extends controller {     function index()     {        //  action     } } 

but if add following line, throws error function undefined:

$this->customer->islogged(); 

class controllercommontestsms extends controller {     function index()     {        if (!$this->customer->islogged()) {          //code execu          }     } } 

this working fine.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -