Jump to content

Problem with context-shop-id doesnt-work


Wotek

Recommended Posts

Hi, 
 

 
I have a simple controller and variables idshop all the time show 1. I Change shop and still time shows 1. 
 

class AdminAuctionstartController extends AdminController {
    public function __construct()
    {
           
         $this->table = 'auction';
         $this->bootstrap = true;
         $this->lang = true;
         $this->context = Context::getContext()
 $this->context->smarty->assign(array(
 'idshop' => $this->context->shop->id, // Shop ID   )    );                        
parent::__construct();     }   }
Edited by Wotek (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...