Welcome Guest, Not a member yet? Register   Sign In
calling get_instance() from external script
#5

[eluser]Yednotek[/eluser]
Quote:As long as the third-party script is called from CodeIgniter (like a controller), then yes.

The script returns an image, it is placed in the src="" parameter of an image tag so it is not called from a controller.

Quote:It should be possible if you include one of the CI core files, eg index.php the call it.

If I include my main index.php in the beginning of the script, then my whole webpage is returned as output plus the image.. Is there another file I can include so that only the core CI files are loaded without returning any output?


Messages In This Thread
calling get_instance() from external script - by El Forum - 10-12-2008, 04:41 AM
calling get_instance() from external script - by El Forum - 10-12-2008, 05:06 AM
calling get_instance() from external script - by El Forum - 10-12-2008, 05:45 AM
calling get_instance() from external script - by El Forum - 10-12-2008, 07:29 AM
calling get_instance() from external script - by El Forum - 10-12-2008, 07:34 AM
calling get_instance() from external script - by El Forum - 10-12-2008, 07:42 AM
calling get_instance() from external script - by El Forum - 10-12-2008, 07:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB