protected function show(ICommand $command) { $this->loader->load($command->category); $this->content->make($command->category); $this->response->make($command->category); //$this->dispatcher->dispatch($command->category->releaseEvents()); }
public static function update($model, $id, $update_lit = '') { $success = parent::update(self::allow($model, ['title', 'summary', 'date']), $id, $update_lit); if (isset($model['content'])) { $success = PostContent::create(['post_id' => $id, 'content' => $model['content']]); } return $success; }
public function version($params = []) { Render::json(PostContent::read(['*'], FALSE, ['post_id = ?', $params['post_id']], 'updated DESC')); }