Hi,
Thanks everyone and specially the creator of the template. I am quite a newbie to Codeigniter and while using the template I am having this particular issue. I have searched the net a bit and this forum too and was unable to find a solution, so if any one can pinpoint me to it or provide me then I would be really greatfull:
$data->sizes = $this->m_price->get_sizes();
$this->template->write_view('part4', 'parts/part4', $data);
var_dump($data);
Now to showcase what the $data actually holds here is the result of the var_dump of the $data variable:
object(stdClass)#29 (1) { ["sizes"]=> array(26) { [0]=> object(stdClass)#34 (1) { ["actual_size"]=> string(1) "6" } [1]=> object(stdClass)#33 (1) { ["actual_size"]=> string(1) "8" } [2]=> object(stdClass)#35 (1) { ["actual_size"]=> string(2) "10" } [3]=> object(stdClass)#36 (1) { ["actual_size"]=> string(2) "12" } [4]=> object(stdClass)#37 (1) { ["actual_size"]=> string(2) "14" } [5]=> object(stdClass)#38 (1) { ["actual_size"]=> string(2) "16" } [6]=> object(stdClass)#39 (1) { ["actual_size"]=> string(2) "18" } [7]=> object(stdClass)#40 (1) { ["actual_size"]=> string(2) "20" } [8]=> object(stdClass)#41 (1) { ["actual_size"]=> string(2) "22" } [9]=> object(stdClass)#42 (1) { ["actual_size"]=> string(2) "24" } [10]=> object(stdClass)#43 (1) { ["actual_size"]=> string(2) "26" } [11]=> object(stdClass)#44 (1) { ["actual_size"]=> string(2) "28" } [12]=> object(stdClass)#45 (1) { ["actual_size"]=> string(2) "30" } [13]=> object(stdClass)#46 (1) { ["actual_size"]=> string(2) "32" } [14]=> object(stdClass)#47 (1) { ["actual_size"]=> string(2) "34" } [15]=> object(stdClass)#48 (1) { ["actual_size"]=> string(2) "36" } [16]=> object(stdClass)#49 (1) { ["actual_size"]=> string(2) "38" } [17]=> object(stdClass)#50 (1) { ["actual_size"]=> string(2) "40" } [18]=> object(stdClass)#51 (1) { ["actual_size"]=> string(2) "42" } [19]=> object(stdClass)#52 (1) { ["actual_size"]=> string(2) "44" } [20]=> object(stdClass)#53 (1) { ["actual_size"]=> string(2) "46" } [21]=> object(stdClass)#54 (1) { ["actual_size"]=> string(2) "48" } [22]=> object(stdClass)#55 (1) { ["actual_size"]=> string(2) "50" } [23]=> object(stdClass)#56 (1) { ["actual_size"]=> string(2) "52" } [24]=> object(stdClass)#57 (1) { ["actual_size"]=> string(2) "54" } [25]=> object(stdClass)#58 (1) { ["actual_size"]=> string(2) "56" } } }
Now when I try to var_dump the same $data in the said view the result I get is NULL during bug_tracking.
I have tried it with simple data too, but the variable is not being passed on with the write_view and gives NULL in each case.
I am using codeigniter 2.0 and template 1.4 with codeigniter being on basic configuration. Let me know if I need to give some added information and what is it that I am doing wrong or missing.
Thanks in advance!! Any help would be greatly appreciated.