• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
jQuery and CI controller methods

#1
[eluser]Krystian[/eluser]
Hi,

in view I`ve create a form. I`m adding record to db using jQuery.

I`ve tried to write in controller like this

Code:
public function _retrieve()
{

}

and in js
$('#users_list').load('/ajax/welcome/_retrieve');

but it doesn`t work ( cannot find the page)
when I delete "_" works fine...

I don`t want this method to be accessed via browser


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.