New answers tagged


I've managed to solve this. Basically, what I was finding that when a cron us run, it sets the area code as Crontab, so to get around this I emulate a state under adminhtml area code. Please see my code below. public function generatePDF($itemDataRaw, $filename){ ksort($itemDataRaw); $filepath = ''; try { $this->state->...

Top 50 recent answers are included