aneesahmadweb@gmail.com     03040836207

    First need to alias mysql on locahost .See where you mysql.exe file is located in xampp folder.Make a correct path and add into below command and run it. $ alias php=’D://xampp/php/php.exe’ alias mysql=’D://xampp/mysql/bin/mysql.exe’ php -dmemory_limit=5G bin/magento setup:static-content:deploy -f php bin/magento fl32:minify:make php -dmemory_limit=5G bin/magento setup:di:compile export PATH=/opt/plesk/php/7.1/bin:$PATH; https://megan.ns.cloudflare.com/ https://cody.ns.cloudflare.com/ php bin/magento indexer:reindex mst_sorting Enable Dev […]

    Read More

    Lets say we have a table review and need to update a record there.I will add the date of a review. $created_at = $this->getRequest()->getParam(‘created_at’); $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); // Instance of object manager $resource = $objectManager->get(‘Magento\Framework\App\ResourceConnection’); $connection = $resource->getConnection(); $tableName = $resource->getTableName(‘review’); $sql= “Update $tableName Set created_at = ‘$created_at’ where review_id = $reviewId”; $connection->query($sql);

    Read More