CakePHP SMSFlySource Plugin with DataSource for SMS Fly service
Step 1: Clone or download HttpSource
cd my_cake_app/app git://github.com/imsamurai/cakephp-sms-fly-datasource.git Plugin/SMSFlySource
or if you use git add as submodule:
cd my_cake_app
git submodule add "git://github.com/imsamurai/cakephp-sms-fly-datasource.git" "app/Plugin/SMSFlySource"
then update submodules:
git submodule init
git submodule update
:: database.php ::
public $smsFly = array(
'datasource' => 'SMSFlySource.Http/SMSFlySource',
'host' => 'sms-fly.com/api/api.php',
'port' => 80
);
Then make use model SMSFly
:: bootstrap.php ::
CakePlugin::load('HttpSource', array('bootstrap' => true, 'routes' => false));
CakePlugin::load('SMSFlySource');
#Documentation
Please read HttpSource Plugin README