Wotek Posted April 2, 2015 Share Posted April 2, 2015 (edited) 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 April 2, 2015 by Wotek (see edit history) Link to comment Share on other sites More sharing options...
Wotek Posted April 7, 2015 Author Share Posted April 7, 2015 Hello ? Link to comment Share on other sites More sharing options...
rytiz2873 Posted April 7, 2015 Share Posted April 7, 2015 you can try Context::getContext()->shop->id Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now