Esempio n. 1
0
 public function render()
 {
     $response = new stdClass();
     $response->markup = parent::render();
     $response->status = $this->model->error ? 0 : 1;
     $response->msg = false;
     $response->data = $this->model;
     return json_encode($response);
 }
Esempio n. 2
0
 public function __construct(JModel $model)
 {
     $paths = new SplPriorityQueue();
     $paths->insert(__DIR__ . '/tmpl', 'normal');
     parent::__construct($model, $paths);
 }