Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

User:Ankit Agarwal

From MoodleDocs
Revision as of 20:33, 14 July 2021 by David Mudrak (talk | contribs) (Text replacement - "<code php>" to "<syntaxhighlight lang="php">")
(Ankit Agarwal) Ankit Agarwal | Latest revision (diff) | Newer revision → (diff)

My config setup

2.3+ and Master

define('MDL_PERF', true);
define('MDL_PERFDB', true);
define('MDL_PERFTOLOG', true);
define('MDL_PERFTOFOOT', true);
error_reporting(-1);
@ini_set('display_errors', '1'); // NOT FOR PRODUCTION SERVERS!
$CFG->debug = 32767;         // DEBUG_DEVELOPER // NOT FOR PRODUCTION SERVERS!
$CFG->debugdisplay = true;   // NOT FOR PRODUCTION SERVERS!
$CFG->passwordpolicy = false;
$CFG->phpunit_prefix = 'phpu_';
$CFG->phpunit_dataroot = '/var/moodledata/int/master/phpunit';
$CFG->behat_prefix = 'pbehat_';
$CFG->behat_dataroot = '/var/moodledata/stable/master/behat';
$CFG->enablecompletion = true;
$CFG->enableavailability = true;
$CFG->allowthemechangeonurl = true;
$CFG->langstringcache = false;
$CFG->forced_plugin_settings = array('scorm' => array('allowtypeexternal' => true, 'allowtypelocalsync' => true, 'allowtypeimsrepository' => true,'allowtypeexternalaicc' => true));

2.2 and 2.1

define('MDL_PERF', true);
define('MDL_PERFDB', true);
define('MDL_PERFTOLOG', true);
define('MDL_PERFTOFOOT', true);
@ini_set('display_errors', '1'); // NOT FOR PRODUCTION SERVERS!
$CFG->debug = 38911;         // DEBUG_DEVELOPER // NOT FOR PRODUCTION SERVERS!
$CFG->debugdisplay = true;   // NOT FOR PRODUCTION SERVERS!
$CFG->passwordpolicy = false;