Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Crearemos una vista para el Frontend haciendo sudo del modulo creado anteriormente en Pfay: f693d0c 1.- Creamos nuestra carpeta vista que contendrá nuestros layous y templates. 2.- traemos nuestro template: app/code/Pfay/Contacts/view/frontend/templates/test_index.phtml 3.- Creaos nuestro Layout app/code/Pfay/Contacts/view/frontend/layout/contacts_test_index.xml OJO EL NOMBRE DEL ARCHIVO ESTARÁ COMPUESTO DE LA SIGUIENTE MANERA : '<id_of_the_route>_<name_of_the_controller>_<name_of_the_action> 4.- Modificamos nuestro controlador index: Agregamos la linea para cargar el layout : ->_view->loadLayout(); Agregamos la linea para renderizarla : ->_view->renderLayout(); 5.- Compilamos y re asignamos permisos php bin/magento setup:di:compile chmod -R 777 var/ pub/ 6.- Verificamos cambios con la siguiente url : http://magento240.local/contacts/test/index
- Loading branch information