php - Magento call child html inside static block -


मैं इसके बारे में थोड़ा भ्रमित हूँ। मेरे पास

  & lt;? Php ईको $ this- & gt; getChildHtml ('खाता लिंक')? & Gt; header.phtml के अंतर्गत   

धन्यवाद

सबसे पहले, किसी भी खाता लिंक्स उपनाम नाम की जांच करें सभी xml फ़ाइल लेआउट में बाहर है। मान लीजिए

अगर मुझे पता चला है कि store_language पेज.xml में बाहर निकलता है और यह header.phtml में कॉल किया जाता है $ this-> getChildHtml ( 'Store_language') ;

अगर मैं इस फ़ाइल को किसी भी स्थान पर कॉल करना चाहता हूँ, जहां नीचे कोड का उपयोग किया गया है

  इस $ echo-> getLayout () -> gt; ; बनाएँब्लॉक ('पृष्ठ / स्विच') - & gt; सेटटैम्प्लेट ('पृष्ठ / स्विच / भाषाओं.फाइल') - & gt; toHtml ();   

उसी तरह आपको अनुसरण करना जरूरी है

Comments

Popular posts from this blog

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

jquery - How to make a wrapper function in javascript? -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -