Esempio n. 1
1
 public function addToMovieAction(Movies $movie, \Phalcon\Http\Request $request)
 {
     //@todo 需要增加验证的环节
     $movie->createAndAddToListFromRequest($request);
     return $this->redirectByRoute(['for' => 'movies.addToList', 'movie' => $movie->id]);
 }