- Timestamp:
- Oct 27, 2014 5:23:37 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified pro-violet-viettel/sourcecode/application/modules/frontend/models/user_model.php ΒΆ
r310 r314 3 3 class User_model extends CI_Model 4 4 { 5 6 //private $_tblname = 'tbluser';7 5 8 6 function __construct(){ 9 7 parent::__construct(); 8 $this->vservices->setApiUrl($this->config->item('api_url')); 9 $this->vservices->setConnection($this->curl); 10 //$this->vservices->setUserId(33); 10 11 } 11 12 function test()13 {14 echo "OK";15 }16 12 17 13 function checkLogin ($src, $token, $username, $password) 18 14 { 19 echo $username; 20 $xmlData = $this->vservices->actionExecute('login', array('src' => $src, 'token' => $token, 'username' => $username, 'password' => $password), 'user'); 21 return $xmlData; 15 $data = $this->vservices->actionExecute('login', array('src' => $src, 'token' => $token, 'username' => $username, 'password' => $password), 'user'); 16 return $data; 22 17 } 23 18 24 19 20 21 25 22 }
Note: See TracChangeset
for help on using the changeset viewer.