Magento 2 Training : Unit 3 – Lesson C Datas setup Now we’ve got our tables and our models, we can add some datas inside ! Before beginning, we will add 2 methods on Job model. Open the file :
Create a model with Magento 2
Magento 2 Training : Unit 3 – Lesson B Models declaration For our first model creation, let’s begin with the “Department” model. On this part, we will create a simple model, without We define : – An event prefix ($_eventPrefix)
Setup management on Magento 2
Magento 2 Training : Unit 3 – Lesson A Module presentation To begin this part of the formation, we will create a new module. It will be a job offer module with 2 models : – A department : this
Xml Schema resolution in PHP Storm with Magento2 Urns
On Magento 2 XML, we declare the path of the XSD schema with this line : <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> But PHP Storm doesn’t know the “urn” part and show the pathfile with red. So, PHP Storm doesn’t check the XML structure with
Getting started with Docker
Put user on docker group If you don’t want to type “sudo” on every docker instruction, check if the “docker” group exists on your system : cat /etc/group | grep docker If the group does not exists, create it :
Docker Installation with Ubuntu
These commands are available for Ubuntu Trusty 14.04 (LTS) (64-bit), if you want more informations about the other versions, go to Docker installation page sudo apt-get update sudo apt-get install docker.io source /etc/bash_completion.d/docker.io Docker will be updated by Ubuntu repository,
Create simple module with Magento 2
Magento 2 Training : Unit 2 – Lesson C Before beginning You must declare your module and create your first controller, so make sure to have read these lessons : Declare a new Magento 2 module Create Magento 2 frontend
Magento bug when displaying creditmemo with giftcard
I found a minor bug in Magento’s admin layout, when a giftcard amount is refunded. When you are creating your refund, the giftcard amount is displayed. But, if you update quantities or when you display your creditmemo, the giftcard amount
Magento hacker alert (GuruIncsite Infection – Patch SUPEE-6788 Installation)
12-07-2015 Update : Magento security patch SUPEE-6788 – Installation (and issue with htaccess) + Enable patch functionnalities 10-28-2015 Update : Download the security patch SUPEE-6788 10-22-2015 Update : How to modify your custom modules to the next security patch ?
Create Magento 2 frontend controller
Magento 2 Training : Unit 2 – Lesson B We have declared and created our new custom module. We will learn how to create a frontend controller. The controller can call our module with an URL like : http://magento2.lan/helloworld http://magento2.lan/helloworld/say