0

I am passing a parameter to my view, and it needs to be refreshed so the data will be populated, so how to refresh my page after when I loaded it?

$this->load->view('portal/view_parent', $data, 'refresh');
aronccs
  • 274
  • 3
  • 12
  • 30
  • 1
    U can also use redirect method – Maninderpreet Singh Apr 17 '16 at 04:00
  • http://www.codeigniter.com/user_guide/helpers/url_helper.html#redirect –  Apr 17 '16 at 04:02
  • You may need to use a java script window refresh if you do not want to use codeigniter redirect refresh http://stackoverflow.com/questions/3715047/how-to-reload-a-page-using-javascript –  Apr 17 '16 at 04:39
  • 1
    why not use jquery ajax? – keronconk Apr 17 '16 at 04:58
  • Could please explain what is issue here you are facing, as I know if call controller/method from URL it will going refresh the page. So, here could please let me when an why you refresh so that someone can give you better option. – JiteshNK Apr 18 '16 at 06:42

1 Answers1

-1

Jus try with

   redirect('controllername/methodname');

It refresh the whole page.

Or if want to refresh specific portion of a page u should use ajax call and append to div.

Maninderpreet Singh
  • 2,569
  • 2
  • 17
  • 31