I have one project to help client migrate his magento website to Azure Create migrate project in portal Azure
Category: Uncategorized
Drupal 8 study note 3: Providing the con guration on installation or update
Create a config folder in your module's base directory. All con guration YAMLs should be in a subfolder of Create a folder named install in the config folder. Con guration YAMLs in this folder will be imported on module installation....
Magento 2 model and collection
Model/Rewards.php <?php namespace MagePal\TestDiscount\Model; use Magento\Framework\Model\AbstractModel; class Rewards extends AbstractModel { protected function _construct() { $this->_init('MagePal\TestDiscount\Model\Resource\Rewards'); } } Model/resource/Rewards.php <?php namespace MagePal\TestDiscount\Model\Resource; use \Magento\Framework\Model\ResourceModel\Db\AbstractDb; class Rewards extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb { protected function _construct() { $this->_init('mjweb_customer_rewards','id'); } } Model/Rewards/Collection.php <?php namespace...