CodeIgniter error I study PCP and work on the CodeIgniter engine. When opening a site on a local server, we catch this error. Is there enough information to fix them and the site started to open? (

  • Replace the picture with normal text, this will only improve the readability of the question. - 0xdb
  • Some kind of ancient code you are trying to run on modern php. - Visman

1 answer 1

Try to remove the output of current errors in the following lines:

error_reporting(0); ini_set('display_errors', '0'); 

Errors of type deprecated should disappear. Along with them and a warning about changing the headers after the withdrawal.

Regarding the study of PHP on the Codeigniter engine, the time of the signalist went 5-6 years ago. Then there was a trend Yii (first version), but this trend has sunk into oblivion. Studying this engine, you are obviously lagging behind by two generations (if I may say so).

If you want to learn modern approaches, then after learning the basics (you need to understand the OOP well ), look towards Yii 2 , the latest versions of Laravel, Symfony3. Now these are the most popular frameworks with a developed community, i.e. You can quickly find a solution to the problem in google. Together with these frameworks will come the experience of working with composer.