-2

I want to load the content after submitting the form in a popup. i have try modal and dialog box which are predefined with a div and then on ajax call the data is appended any suggestion are very much helpful

saurabh kamble
  • 1,510
  • 2
  • 25
  • 42

1 Answers1

1

Did you remember to add $CI =& get_instance(); in your library's constructor or at the top of your helper file so you can use all the CodeIgniter resources in your libraries and helpers? (see also here in the docs)

You can then call CodeIgniter resources like this:

$CI->load->helper('file_helper');
read_file($file);    

$CI->load->library('session');
$CI->session->sess_destroy();
prograhammer
  • 20,132
  • 13
  • 91
  • 118
  • i like to re frame the question when i used the facebook php sdk in application/libraries it was showing error that class not found but when i put the same files in system/libraries it working fine so wats the difference ......Thanks in advance – saurabh kamble Jul 28 '13 at 04:44