[eluser]Mirge[/eluser]
I just tested the UNMODIFIED code... here it is again for convenience:
Code:
<?php
class Site_model extends CI_Model
{
function getAll()
{
//$this->CI = get_instance();
//$this->CI->load->database();
$q = $this->db->get('test');
if($q->num_rows() > 0)
{
foreach($q->result() as $row)
{
$data[] = $row;
}
return $data;
}
}
}
Tested on my remote server, instead of XAMPP 1.7.4......... and it worked. Soooo... something is wrong with my XAMPP install I guess?? I had followed the "Create a blog in 20 minutes" tutorial partially.. it accessed DB on my XAMPP server just fine there using the exact same database.php file, etc... so strange. Makes me wonder what's up with my XAMPP install now.
Ah well... maybe a reboot will fix it LOL, j/k.
Thanks for your help! I appreciate it. I will test more thoroughly on my end before posting questions in future.