prevent direct access to this function/page ? |
[eluser]Dam1an[/eluser]
Just create a file called ajax_helper.php in the helpers directory and put the code bargainph gave earlier in it
[eluser]Thorpe Obazee[/eluser]
Arun, you should not PM people for the same questions. It's what the forum is for.
[eluser]bEz[/eluser]
An alternative method to the HELPER solution would be to create a new constant in: ./application/config/constant.php Code: /* Line separated for clarity. Stumbled upon this code while viewing the recent weblee screencast for JQuery (btw, a must view). You can then change the controller code as follows: Code: if (! IS_AJAX) Subtle change, but it works! |
Welcome Guest, Not a member yet? Register Sign In |