I have using cakephp for my website. And i use sql server 2012 with it. I have confused that when i use:
$this->set('types',$this->Manager->query('select * from product_types'));
to get the array of all my product types the return array is:
Array
(
[0] => Array
(
[0] => Array
(
[id] => 1
[name] => hoa my pham
)
)
[1] => Array
(
[0] => Array
(
[id] => 2
[name] => hoa my
)
)
)
Why has the [0] instead of [product_types]????