Created
June 15, 2011 20:50
-
-
Save maxparm/1028078 to your computer and use it in GitHub Desktop.
Index action
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
| <h2>User List</h2> | |
| <p><?=$this->html->link('Sign Up', 'User::signup')?></p> | |
| <?php if($users->count()) { ?> | |
| <ul> | |
| <?php foreach($users as $user) { ?> | |
| <li><?=$user->name?></li> | |
| <?php } ?> | |
| </ul> | |
| <?php } ?> |
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 index() { | |
| $users = Users::all(); | |
| return compact('users'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment