Created
February 5, 2009 16:10
-
-
Save samsoir/58783 to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
public function index() | |
{ | |
$profiler = new Profiler(); | |
$user_address = ORM::factory('Address', 45895); | |
var_dump($user_address); | |
/* $new_user = array | |
( | |
'username' => 'applejuice', | |
'password' => 'oranges', | |
'passwordconf' => 'oranges', | |
'title' => 'Mr', | |
'name' => 'Apple Juice', | |
'email_address' => 'sam.c.de.freyssinet@polaris-digital.com', | |
'confirm_email' => 'sam.c.de.freyssinet@polaris-digital.com', | |
'mobile_number' => '07890111222', | |
'date_of_birth' => '15 Aug 1979', | |
'locale' => 'en_GB', | |
'gender' => 'male', | |
'account_type' => 'residential', | |
'address' => '24A Whateley Road, East Dulwich', | |
'city' => 'London', | |
'region' => '', | |
'postal_code' => 'SE22 9DB', | |
'country' => '222', | |
'allow_email' => FALSE, | |
'allow_sms' => FALSE, | |
); | |
var_dump($new_user); | |
$User_Lib = new User; | |
var_dump($User_Lib->create($new_user)); | |
/* | |
$currency = ORM::factory('Currency', 1); | |
var_dump($currency->reseller_rate()); | |
*/ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment