{"action":"created","issue":{"url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/issues/163","repository_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model","labels_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/issues/163/comments","events_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/issues/163/events","html_url":"https://github.com/avenirer/CodeIgniter-MY_Model/issues/163","id":173127083,"number":163,"title":"Like OR Like How to ?","user":{"login":"codeigniterd","id":21235643,"avatar_url":"https://avatars.githubusercontent.com/u/21235643?v=3","gravatar_id":"","url":"https://api.github.com/users/codeigniterd","html_url":"https://github.com/codeigniterd","followers_url":"https://api.github.com/users/codeigniterd/followers","following_url":"https://api.github.com/users/codeigniterd/following{/other_user}","gists_url":"https://api.github.com/users/codeigniterd/gists{/gist_id}","starred_url":"https://api.github.com/users/codeigniterd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeigniterd/subscriptions","organizations_url":"https://api.github.com/users/codeigniterd/orgs","repos_url":"https://api.github.com/users/codeigniterd/repos","events_url":"https://api.github.com/users/codeigniterd/events{/privacy}","received_events_url":"https://api.github.com/users/codeigniterd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-25T06:54:36Z","updated_at":"2016-08-25T07:31:21Z","closed_at":null,"body":"$where.= \" AND ( movie LIKE '\".$search.\"%' OR year LIKE '\".$search.\"%' OR genre LIKE '\".$search.\"%' ) \";\r\nI have a query like this ?\r\n\r\nHow do it write this using the model ?\r\n"},"comment":{"url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/issues/comments/242303785","html_url":"https://github.com/avenirer/CodeIgniter-MY_Model/issues/163#issuecomment-242303785","issue_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/issues/163","id":242303785,"user":{"login":"zilzurna","id":4940848,"avatar_url":"https://avatars.githubusercontent.com/u/4940848?v=3","gravatar_id":"","url":"https://api.github.com/users/zilzurna","html_url":"https://github.com/zilzurna","followers_url":"https://api.github.com/users/zilzurna/followers","following_url":"https://api.github.com/users/zilzurna/following{/other_user}","gists_url":"https://api.github.com/users/zilzurna/gists{/gist_id}","starred_url":"https://api.github.com/users/zilzurna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zilzurna/subscriptions","organizations_url":"https://api.github.com/users/zilzurna/orgs","repos_url":"https://api.github.com/users/zilzurna/repos","events_url":"https://api.github.com/users/zilzurna/events{/privacy}","received_events_url":"https://api.github.com/users/zilzurna/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T07:31:21Z","updated_at":"2016-08-25T07:31:21Z","body":"It will be like this;\r\n\r\n```php\r\n$this->db->group_start()\r\n\t->like('user_fname', $search, 'both')\r\n\t->or_like('user_mname', $search, 'both')\r\n\t->or_like('user_lname', $search, 'both')\r\n\t->or_like('user_dob', $search, 'both')\r\n\t->or_like('user_email', $search, 'both')\r\n\t->or_like('user_phone1', $search, 'both')\r\n->group_end();\r\n$userDetails = $this->user_model->as_array()\r\n\t->order_by($orderKey, $orderValue)\r\n\t->limit($limit)\r\n->get_all();\r\n```"}}
{"actor":{"display_login":"zilzurna"}}