Get Root Directory Path of a PHP project
June 8, 2019
Root Directory Path of a PHP #Get the document root – $_SERVER[‘DOCUMENT_ROOT’] #Get the current file’s folder __DIR__
June 8, 2019
Root Directory Path of a PHP #Get the document root – $_SERVER[‘DOCUMENT_ROOT’] #Get the current file’s folder __DIR__
In PHP, you can get the name of the current method (function) from within the method using the PHP magic constant __METHOD__. Here’s an example:… Read More →
Error After Installing Magento 2 Go to – “D:\xampp\htdocs\mage2\vendor\magento\framework\View\Element\Template\File\”. Open The file name Validator.php Search for “$this->fileDriver->getRealPath“, you will find the similar code. Replace them with… Read More →
April 24, 2019
The warning “Module ‘openssl’ already loaded in line 0” is a common issue encountered by XAMPP users, signaling that the OpenSSL module is being loaded… Read More →
April 24, 2019
After installtion magento 2 you can see a error like MIME type not supported. To fix this: Use 2 comment: php bin/magento setup:static-content:deploy -f -s… Read More →
January 19, 2019
// In function.php $args = array( ‘name’ => __( ‘Sidebar name’, ‘theme_text_domain’ ), ‘id’ => ‘unique-sidebar-id’, ‘description’ => ”, ‘class’ => ”, ‘before_widget’ => ‘… Read More →