Welcome Guest, Not a member yet? Register   Sign In
CI NOOB QUESTION : AJAX
#1

[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?


Messages In This Thread
CI NOOB QUESTION : AJAX - by El Forum - 01-11-2010, 10:44 PM
CI NOOB QUESTION : AJAX - by El Forum - 01-11-2010, 11:06 PM
CI NOOB QUESTION : AJAX - by El Forum - 01-11-2010, 11:19 PM
CI NOOB QUESTION : AJAX - by El Forum - 01-12-2010, 11:20 AM
CI NOOB QUESTION : AJAX - by El Forum - 01-12-2010, 11:37 AM
CI NOOB QUESTION : AJAX - by El Forum - 01-12-2010, 09:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB