Manipulate collections with Magento 2

Manipulate collections with Magento 2

Magento 2 Training : Unit 6 – Lesson B Remember during the last lesson, we created a collection : $jobCollection = $this->_job->getCollection() ->addFieldToSelect(‘*’) ->addFieldToFilter(‘status’, $this->_job->getEnableStatus()) ->join( array(‘department’ => $this->_department->getResource()->getMainTable()), ‘main_table.department_id = department.’.$this->_job->getIdFieldName(), array(‘department_name’ => ‘name’) ); We will see what

Layouts and forms on Magento 2 admin

Layouts and forms on Magento 2 admin

Magento 2 Training : Unit 5 – Lesson B Admin layout creation We have to create a layout before create the form : app/code/Maxime/Jobs/view/adminhtml/layout/jobs_department_edit.xml Put this little content : <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <update handle=”editor”/> <body> <referenceContainer name=”content”> <block

We use cookies to ensure that we give you the best experience on our website.
Ok