Magento extend getCssJsHtml() -


I'm not sure what I'm doing:

I'm running this:

  ap / code / local / company / etc / confix.xml: & lt ;? XML version = "1.0"? & Gt; & Lt; Config & gt; & Lt; Module & gt; & Lt; Company_Core & gt; & Lt; Version & gt; 0.1.0 & lt; / Edition & gt; & Lt; / Company_Core & gt; & Lt; / Module & gt; & Lt; Global & gt; & Lt; Model & gt; & Lt; Core & gt; & Lt; Rewrite & gt; & Lt; Shop & gt; Company_Page_block_Html_Head & lt; / Store & gt; & Lt; / Rewrite & gt; & Lt; / Core & gt; & Lt; / Model & gt; & Lt; / Global & gt; & Lt; / Config & gt; Include  

and

  app / code / local / company / page / block / html / head.php: ('mage / page / block / Html / head.php '); Class Company_Page_block_Html_Head Expands Mage_Catalog_Model_Product {/ ** * Get Head HTML with CSS / JS / RSS Definitions * (Actually it also presents other elements, too: fix it or rename this method) * * @ String string * / public function getCssJsHtml () {echo 'AD'; Return parent: getCssJsHtml (); }}  

But nothing will change, my debug text "ADD" is not showing at all, and I have no clue what I am doing wrong?

If your goal is to override getCssJsHtml ()

then your code Is completely wrong .. Override additional code getCssJsHtml () method

   

and

  & lt ;? Php class company_metadata_Block_Title Mage_Page_Block_Html_Head extended {public function getCssJsHtml () {echo 'asd'; Return parent: getCssJsHtml (); }}  

Let me know if you have any questions


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -