diff --git a/application/controllers/information.php b/application/controllers/information.php index 435bf8ef..33281573 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -988,7 +988,7 @@ class Information extends CI_Controller $information = $this->Information_model->Detail($this->input->get('is_id')); $recommand_information = $this->recommand_information($information); $tipsRightList = []; - for ($i=0; $i < 36; $i++) { + for ($i=1; $i <= 36; $i++) { $key = 'List Tips Right '.$i; if (array_key_exists($key, $recommand_information)) { $tipsRightList[] = $recommand_information[$key]; @@ -1002,6 +1002,16 @@ class Information extends CI_Controller var_dump($firstList); var_dump($secondList); var_dump($thirdList); + + $tips_right_list_content = $this->load->view( + 'ah-list-tips-right', + array( + 'tips_right_first' => $firstList, + 'tips_right_second' => $secondList, + 'tips_right_third' => $thirdList), + true + ); + echo $tips_right_list_content; } public function test_feedback() diff --git a/application/views/mobile_first/ah-list-tips-right.php b/application/views/mobile_first/ah-list-tips-right.php new file mode 100644 index 00000000..45fb2901 --- /dev/null +++ b/application/views/mobile_first/ah-list-tips-right.php @@ -0,0 +1,24 @@ +