/**
  * Creates a new model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  */
 public function actionUp($id = null)
 {
     if ($id == null) {
         $this->redirect(array('site/index'));
     } else {
         $model = new ArticleLikes();
         $model->article_id = $id;
         if ($model->save()) {
             $this->redirect(array('site/view', 'id' => $model->article_id, 't' => Utility::getUrlTitle($model->article->title)));
         }
     }
 }