/** * Returns the requested resource or the resource list * * @param string $body Request body * @param string &$header Variable which contains the HTTP headers and the new ones afterwards * @param integer &$status Variable which contains the HTTP status afterwards * @return string Content for response body */ public function get($body, array &$header, &$status) { $this->getView()->assign(array('partial-data' => 'controller/jsonadm/partials/order/template-data')); return parent::get($body, $header, $status); }
/** * Initializes the controller decorator. * * @param \Aimeos\Controller\JsonAdm\Iface $controller Controller object * @param \Aimeos\MW\View\Iface $view View object * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects * @param array $templatePaths List of file system paths where the templates are stored * @param string $path Name of the controller separated by slashes, e.g "product/stock" */ public function __construct(\Aimeos\Controller\JsonAdm\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context, \Aimeos\MW\View\Iface $view, array $templatePaths, $path) { parent::__construct($context, $view, $templatePaths, $path); $this->controller = $controller; }