CodeIgniter Forums

Full Version: Calling method in Codeigniter Controller from outside Codeigniter.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Hi All,
i need to access the CodeIgniter Controller from a file which is outside CodeIgniter.

can you please guide me on that.

FYI, my method in said controller is also loading models and views and working fine inside CodeIgniter, i just need to do the same thing from outside CodeIgniter.

Thanks in Advance.


El Forum

El Forum

[eluser]Phil Sturgeon[/eluser]
Um, would using cURL on the URL work for you?

cURL at a basic level is a handy way to grab HTML content from a URL but can do plenty more. You could probably even just use fopen() if your server will allow it.