protected function findModel($id) { if (($model = role::findOne($id)) !== null) { return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } }
public function failedRegistrationForm() { $onLoad = 'onload=regunsuccess();'; $dashboard = 0; $tbl_role = role::all(); $tbl_title = title::all(); return view('pages.signup', compact('tbl_role', 'tbl_title', 'dashboard', 'onLoad')); }