Answer the question
In order to leave comments, you need to log in
How to defeat Codeigniter error?
Wrote a new part for the project, specially made on the version of Codeigniter 2.0.2 used on the site.
As a result, I have 500 Internal Server Error , without any additional. info.
Moreover, this method of the model works:
public function getStartTotals()
{
$total_counts = array();
$total_counts['casinos'] = $this->db->count_all('casinos');
$total_counts['machines'] = $this->db->count_all('machines');
return $total_counts;
}
public function getMachines($searched_string)
{
$this->db->select('machines.id id , machines.title name');
$this->db->from('machines');
$this->db->like('machines.title',$searched_string);
$query = $this->db->get();
$result = array();
foreach ($query->result() as $key) {
$result[] = $key;
}
return $result;
}
Answer the question
In order to leave comments, you need to log in
Comment out the lines, run the method, and see exactly when the problem occurs.
You can also write hard in index.php error_reporting(E_ALL)
andini_set('display_errors', 'On')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question