Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Controller_Auth extends \Controller {
- public function action_register()
- {
- $user = new \Warden\Model_User(array(
- 'username' => 'dberry',
- 'password' => 'Stinky1*',
- 'email' => 'daniel@berrymediagroup.com',
- ));
- $user->profile = new \Model_Profile(array(
- 'first_name' => 'Daniel',
- 'last_name' => 'Berry',
- 'title' => 'Mr.',
- 'city' => 'Manchester',
- 'state' => 'TN',
- 'zipcode' => '37355',
- 'country' => 'US'
- ));
- try
- {
- $user->save();
- }
- catch(Exception $e)
- {
- die($e);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement