Ejemplo n.º 1
0
 protected function findModel($id)
 {
     if (($model = Role::getRoleByName($id)) !== null) {
         return new ActiveRecordAdapter($model);
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }