PHP Magento

Php code posted
created at 22 Mar 15:49, updated at 04 Apr 21:55

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
 # create Tito
 $user = User::create(array('name' => 'Tito', 'state' => 'VA'));
 
 # read Tito
 $user = User::find_by_name('Tito');
 
 # update Tito
 $user->name = 'Tito Jr';
 $user->save();
 
 # delete Tito
 $user->delete();
236 Bytes in 9 ms with coderay