magento - Adding mini-login to header of page -
I want to add user login option to the header of my website
I < Pre> Php echo $ this-> GetChildHtml ('mini_login')? & Gt; , but nothing appears I why the login is not showing? goto & lt; Block type = "customer / form_login" name = "mini_ login" template = "customer / form / mini.login.file" />
app / design / frontend / base / default / layout / page. XML file and
& lt;
Appear / Design / Frontend / Base / Default / Template / Page / html / header.phtml in the file
Hello after
& lt ;? Php echo $ this- & gt; GetChildHtml ('mini_login')? & Gt; and
Hello appear. I've cleared the cache storage, but it still does not appear
customer.xml
& lt; Default & gt; & Lt; / Default> Default tag (Path app / design / frontend / your package / your template / layout) code> & lt; Default & gt; .... & lt; Reference Name = "Header" & gt; & Lt; Block type = "customer / form_login" name = "header_customer_form_mini_login" template = "customer / form / mini.login.fmtl" /> & Lt; / References & gt; ... & lt; / Default>
header.phtml Call this file using this code
& lt ;? Php echo $ this- & gt; GetChildHtml ('header_customer_form_mini_login');? & Gt;
Comments
Post a Comment