I already enabled path hits in frontend view, but is not loading the "new phtml". What can i do?

edit: magento Version is 2.1.6

My module files: /company/CustomModule/view/frontend/layout/customer_account_create.xml :

<?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">
        <referenceContainer name="customer_form_register">
            <block class="Magento\Customer\Block\Form\Register" template="company_CustomModule::/form/register.phtml"/>

And the new phtml i changed a few things, but Does not load the new file, inside /company/CustomModule/view/frontend/templates/form/register.phtml

I need an assistance, thanks in advance.

i already try to run this commands:

php bin/magento setup:upgrade
php bin/magento indexer:reindex
php bin/magento cache:clean 
php bin/magento cache:flush

but not works


I have changed the registration form in an Address Lines module and the commit can be found on GitHub


  • thanks. its works , i only change the name of referenceBlock and of argument Jul 3 '17 at 7:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.