Yes there have a way to displays error messages while you getting blank page. If you have any error then it will display blank pages in codeigniter. Follow the steps to display error message.
First open index.php
Path: Project Folder/index.php
Second is: put development here:
<?php define('ENVIRONMENT', 'development'); ?>
Third is: set display_errors()
<?php ini_set('display_errors', 1); ?>
For Example:
<?php define('ENVIRONMENT', 'development'); if (defined('ENVIRONMENT')){ switch (ENVIRONMENT) { case 'development': error_reporting(E_ALL); // Display errors in output ini_set('display_errors', 1); break; case 'testing': case 'production': error_reporting(0); break; default: exit('The application environment is not set correctly.'); } } ?>
For any kind of help ask here.
Question and answer is powered by AnsPress.io