Created
January 1, 2015 01:58
-
-
Save evercode1/3692b2c85bcaec5198f1 to your computer and use it in GitHub Desktop.
actionView 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 actionView() | |
| { | |
| 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