[Solved] Loading views in conrtroller using CodeIgniter [closed]


you can place fallowing code wherever you want to load the view

                 $this->load->view('viewname');

you can also pass the data to view as fallows

                 $data['key'] = 'this is data";\
                  $this->load->view('viewname',$data);

and also you did not mention $ symbol before ‘p’

solved Loading views in conrtroller using CodeIgniter [closed]