function send_text() { $this->Sms->api_id = '000000'; $this->Sms->api_user = 'youruser'; $this->Sms->api_pass = 'apipassword'; $this->Sms->api_from = 'fromcid'; $message = sprintf("Hello World"); $this->Sms->postSms($number, $message); }