Can I use MySQLi and PHP5 syntax inside CodeIgniter?

I am starting a new web project, and I decided that I would try to use the framework. I know that CodeIgniter is encoded in PHP4, but can I use the MySQLi MySQL functions as well as the PHP5 syntax (when it comes to OO especially) when encoding with CodeIgniter? Should I use Cohan instead?

+3
source share
1 answer

Yes. You can use any functions in the PHP version that you use. Codeigniter works great in PHP5.

In addition, Codeigniter includes a database driver for mysqli, which can be installed in system / application / config / database.php as:

$db['default']['dbdriver'] = "mysqli";
+6
source

Source: https://habr.com/ru/post/1719332/


All Articles