{"action":"created","issue":{"url":"https://api.github.com/repos/Celc/CIUnit/issues/24","labels_url":"https://api.github.com/repos/Celc/CIUnit/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/Celc/CIUnit/issues/24/comments","events_url":"https://api.github.com/repos/Celc/CIUnit/issues/24/events","html_url":"https://github.com/Celc/CIUnit/issues/24","id":66856279,"number":24,"title":"Can't load model?","user":{"login":"flitert","id":3271510,"avatar_url":"https://avatars.githubusercontent.com/u/3271510?v=3","gravatar_id":"","url":"https://api.github.com/users/flitert","html_url":"https://github.com/flitert","followers_url":"https://api.github.com/users/flitert/followers","following_url":"https://api.github.com/users/flitert/following{/other_user}","gists_url":"https://api.github.com/users/flitert/gists{/gist_id}","starred_url":"https://api.github.com/users/flitert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flitert/subscriptions","organizations_url":"https://api.github.com/users/flitert/orgs","repos_url":"https://api.github.com/users/flitert/repos","events_url":"https://api.github.com/users/flitert/events{/privacy}","received_events_url":"https://api.github.com/users/flitert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-07T11:14:16Z","updated_at":"2015-04-08T16:07:14Z","closed_at":null,"body":"[CIUnit] PHP Error: Notice - Undefined property: Login::$comm_model File Path: c\r\nontrollers/Login.php (line: 291)\r\n\r\n\r\nCode:\r\n```php\r\nclass Login extends CI_Controller {\r\n  public function __construct(){\r\n    parent::__construct();\r\n    $this->load->model('comm_model');\r\n    $this->load->library('form_validation');\r\n  }\r\npublic function valadate_selfuser(){\r\n$count = $this->is_available($check_arr,'custom');\r\n}\r\npublic function is_available($arr,$table){\r\n    $count = $this->comm_model->count_by_where($arr,$table);\r\n    return $count;\r\n  }\r\n}\r\n```\r\n\r\nTest Code:\r\n\r\n```php\r\npublic function test_valadate_selfuser_1()\r\n    {\r\n    \t$_POST['username'] = 'test@gmail.com';\r\n    \t$_POST['usertype'] = 0;\r\n        $result = $this->CI->valadate_selfuser(1);\r\n        $expected_result = array('status'=>'0','text'=>'');\r\n    \t$this->expectOutputString(json_encode($expected_result));\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/Celc/CIUnit/issues/comments/90961171","html_url":"https://github.com/Celc/CIUnit/issues/24#issuecomment-90961171","issue_url":"https://api.github.com/repos/Celc/CIUnit/issues/24","id":90961171,"user":{"login":"Celc","id":48965,"avatar_url":"https://avatars.githubusercontent.com/u/48965?v=3","gravatar_id":"","url":"https://api.github.com/users/Celc","html_url":"https://github.com/Celc","followers_url":"https://api.github.com/users/Celc/followers","following_url":"https://api.github.com/users/Celc/following{/other_user}","gists_url":"https://api.github.com/users/Celc/gists{/gist_id}","starred_url":"https://api.github.com/users/Celc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Celc/subscriptions","organizations_url":"https://api.github.com/users/Celc/orgs","repos_url":"https://api.github.com/users/Celc/repos","events_url":"https://api.github.com/users/Celc/events{/privacy}","received_events_url":"https://api.github.com/users/Celc/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T16:07:14Z","updated_at":"2015-04-08T16:07:14Z","body":"@flitert Only what's in the readme file. spyc should be installed when you use comoser: https://github.com/Celc/CIUnit/blob/master/composer.json"}}