01-11-2010, 10:44 PM
[eluser]napz[/eluser]
I'm using Prototype for my AJAX, and I'm wondering that is it possible to use the MODEL class to send an echo of a request from View.
if possible how?
----------------------------------------------
I use to forward a request directly to the controllers in my view:
function sendRequest() {
new Ajax.Request("<?php echo base_url(); ?>system/application/controllers/ajax.php"
----------------------------------------------
and the result is an error:
Fatal error: Class 'Controller' not found in C:\xampp\htdocs\MYFIRSTCI\system\application\controllers\ajax.php on line 3
----------------------------------------------
the class Controller is not found. maybe because im directly calling the controller ajax from my view.
what is the possible solution guys?
I'm using Prototype for my AJAX, and I'm wondering that is it possible to use the MODEL class to send an echo of a request from View.
if possible how?
----------------------------------------------
I use to forward a request directly to the controllers in my view:
function sendRequest() {
new Ajax.Request("<?php echo base_url(); ?>system/application/controllers/ajax.php"
----------------------------------------------
and the result is an error:
Fatal error: Class 'Controller' not found in C:\xampp\htdocs\MYFIRSTCI\system\application\controllers\ajax.php on line 3
----------------------------------------------
the class Controller is not found. maybe because im directly calling the controller ajax from my view.
what is the possible solution guys?