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());
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
 public function version($params = [])
 {
     Render::json(PostContent::read(['*'], FALSE, ['post_id = ?', $params['post_id']], 'updated DESC'));
 }