Code: Select all
$this->document->setSomeData("data");
Code: Select all
$this->document->getSomeData();
Code: Select all
$this->document->setSomeData("data");
Code: Select all
$this->document->getSomeData();
Code: Select all
$response = new Response($registry);
Code: Select all
private $registry;
public function __construct($registry){
$this->registry = $registry;
}
Code: Select all
$document = $this->registry->get('document');
$document->setSomeData("data");
My extensions in marketplace. [ security | flexibility | speedup ]
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Thank you dude it worked for me, oC v2.0.3.1halfhope wrote: ↑Tue May 30, 2023 5:42 amHi!
You can pass $registry into response class in your system/framework.php like this:In your response class add:Code: Select all
$response = new Response($registry);
use:Code: Select all
private $registry; public function __construct($registry){ $this->registry = $registry; }
Code: Select all
$document = $this->registry->get('document'); $document->setSomeData("data");
Users browsing this forum: No registered users and 7 guests