Created
January 1, 2015 01:50
-
-
Save evercode1/047e5209b5d0cb7d9376 to your computer and use it in GitHub Desktop.
actionIndex profile controller chap 8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function actionIndex() | |
| { | |
| if ($already_exists = RecordHelpers::userHas('profile')) { | |
| return $this->render('view', [ | |
| 'model' => $this->findModel($already_exists), | |
| ]); | |
| } else { | |
| return $this->redirect(['create']); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment