fuel-package fuel-packages-myorm
mp-php/fuel-packages-myorm
- Saturday, May 4, 2013
- by mamor
- Repository
- 2 Watchers
- 0 Stars
- 1 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
# MyOrm package auto save IP address when insert and update.
Install
Setup to fuel/packages/myorm
- Use composer https://packagist.org/packages/mp-php/fuel-packages-myorm
- git submodule add
- Download zip
Edit app/config/config.php
'packages' => array(
'orm',
'myorm',
),
Edit $_observers
protected static $_observers = array(
'MyOrm\Observer_CreatedIp'=>array('events'=>array('before_insert')),
'MyOrm\Observer_UpdatedIp'=>array('events'=>array('before_save')),
);