• Home
  • Blog
  • Documentation
  • FAQ
    • Pre-Sales Questions
  • Log In
  • Get Easy Forms
  • Home
  • Blog
  • Documentation
  • FAQ
    • Pre-Sales Questions
  • Log In
  • Get Easy Forms
home/Knowledge Base/Developers "How To's"/How to enable / disable DEBUG mode
Popular Search:Getting Started

How to enable / disable DEBUG mode

4107 views 131 January 1, 2019 Updated on October 31, 2023 admin

To enable DEBUG mode, please replace the content of the index.php file by:

<?php

// comment out the following two lines when deployed to production
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');

require(__DIR__ . '/vendor/autoload.php');
require(__DIR__ . '/vendor/yiisoft/yii2/Yii.php');

$config = require(__DIR__ . '/config/web.php');

(new yii\web\Application($config))->run();

As you can see, we have uncommented two lines.

Then, to disable DEBUG mode (for a production enviroment), just replace the content of the index.php file by:

<?php

// comment out the following two lines when deployed to production
// defined('YII_DEBUG') or define('YII_DEBUG', true);
// defined('YII_ENV') or define('YII_ENV', 'dev');

require(__DIR__ . '/vendor/autoload.php');
require(__DIR__ . '/vendor/yiisoft/yii2/Yii.php');

$config = require(__DIR__ . '/config/web.php');

(new yii\web\Application($config))->run();

That’s all!

Was this helpful?

131 Yes  48 No
Related Articles
  • Customize the Landing Page, Login Page and Application design
  • How to compare two fields to pass the validation (jQuery Validation)
  • How can I add custom css styles to radio buttons?
  • How To remove “For more details please go here” from the email notifications
  • How to set the PHP CLI path in the application
  • How To Change the Login Page Slogan

Didn't find your answer? Contact Us

Developers "How To's"
  • How to enable / disable DEBUG mode
  • Customize the Landing Page, Login Page and Application design
  • How to compare two fields to pass the validation (jQuery Validation)
  • How can I add custom css styles to radio buttons?
  • How To remove “For more details please go here” from the email notifications
  • How to set the PHP CLI path in the application
View All 17  
Popular Articles
  • How to Show/Hide HTML elements with Conditional Rules
  • How to enable / disable DEBUG mode
  • How to Submit a Form as WhatsApp Message
  • How to update Form Stats from the command line
  • How to compare two fields to pass the validation (jQuery Validation)
KB Categories
  • Add-Ons
  • Advanced Techniques
  • Common Issues & Troubleshooting
  • Developers "How To's"
  • Getting Started
  • How To

  How to export form submissions from the command line

How to compare two fields to pass the validation (jQuery Validation)  

About Easy Forms

With Easy Forms you can create unlimited web forms and most importantly the complete management of them without paying monthly fees

Resources
  • Knowledge Base
  • Documentation
  • Pre-sales Questions
  • Blog
Useful Help Links
  • Get Easy Forms
  • Live Demo
  • License Terms
  • Contact Us
Frequent Visit Links
  • Pre-Sales Questions
  • System Requirements
  • Installing Easy Forms
  • Upgrading Easy Forms
  • Privacy Policy
  • © 2015 - 2024 Baluart EIRL. All Rights Reserved.

Popular Search:Getting Started