Can we use core php in codeigniter?
I would like to use core php code in codeigniter controller, if we use so please give me any reference.
Thanks in advance.
Codeigniter is simply PHP, so naturally you're able to run PHP as much as you wish, wherever you wish. Ideally you should do code like this in the controllers though to avoid breaking MVC (Model-View-Controller) patterns.
The only thing Codeigniter adds is a framework of PHP functions which "standardises" certain ways of doing things and provides a interface (or an API so to speak) to use these functions.
Yes you can use core PHP in code igniter with the help of Helper classes. Just create an helper class and create a core PHP function into that helper class, where you want to use that function just load the helper and call that function directly.
Yes you can use core php as you wish.but it is risky if you amulgamate it with CI code.So if you want to use core php then you don't need to want help of Ci.