public function index() { $curso_perfil = CursoPerfil::with('perfil', 'curso')->where('payed', '=', 0)->orderBy('perfil_id')->get(); $session = Utilities::getSession(); $links = Utilities::getMenu($session); $this->view = new EscolaresIndexView($curso_perfil, $links); $this->view->display(); //Utilities::printData( $curso_perfil ); }