"$data['action'] = $this->url->link('extension/module/vistor', 'token=' . $this->session->data['user_token'], true)" this is the linking code i have used. it shows permission denied on my screen Pls check the attachment.
Thanks
Attachments
Screenshot_2019-05-29 Permission Denied .png (19.93 KiB) Viewed 545 times
$data['action'] = $this->url->link('extension/module/vistor', 'token=' . $this->session->data['user_token'], true)
in 3.x you have to pass user_token = not token
$data['action'] = $this->url->link('extension/module/vistor', 'user_token=' . $this->session->data['tuser_oken'], true); //BUT I BELIEVE IT HAS TO BE VISITOR not vistor that may be the issue that it leads to permission denied as this method/function/file simply do not exist
hasnain@spawoz.com wrote: ↑Wed May 29, 2019 2:41 pmHi am trying to connect a form action in my twig to my controller function . am really new to opencart .
"$data['action'] = $this->url->link('extension/module/vistor', 'token=' . $this->session->data['user_token'], true)" this is the linking code i have used. it shows permission denied on my screen Pls check the attachment.
Thanks
Opencart Expert | voldemaras@gmail.com
Skype - programanija | Gtalk - voldemaras@gmail.com
Extensions for Opencart @ https://www.opencartextensions.eu / or Opencart Marketplace
Need Custom Module? debug third party module or simply have any question related to Opencart? feel free to contact directly for a live chat session:) - INSTANT LIVE CHAT
Code: Select all
user_token=' . $this->session->data['tuser_oken'], true
Code: Select all
user_token=' . $this->session->data['user_token'], true
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
straightlight wrote: ↑Wed May 29, 2019 7:02 pmfor:Code: Select all
user_token=' . $this->session->data['tuser_oken'], true
Code: Select all
user_token=' . $this->session->data['user_token'], true
Opencart Expert | voldemaras@gmail.com
Skype - programanija | Gtalk - voldemaras@gmail.com
Extensions for Opencart @ https://www.opencartextensions.eu / or Opencart Marketplace
Need Custom Module? debug third party module or simply have any question related to Opencart? feel free to contact directly for a live chat session:) - INSTANT LIVE CHAT
Users browsing this forum: No registered users and 369 guests