public function indexAction() { $movies = Movies::find(['limit' => 100]); return $this->response->setJsonContent($movies->toArray()); }