[eluser]TheFuzzy0ne[/eluser]
Probably not, but it's not that difficult. You include the script from within your view(s), and then you the put this into your constants.php:
Code:
define('IS_AJAX', isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest')
Then you can check if the incoming request is an ajax request, from within your controller like this:
Code:
if (IS_AJAX)
{
# Do something Ajaxy
}
else
{
# Do something non-Ajaxy
}