Question:The browser is ignoring the file referred on the code below: <link src="http://siteurl.com/theme/skin/frontend/default/mytheme/css/colors.css.php" rel="stylesheet" type="text/css"> Assume that this is a PHP file that is used as a stylesheet in a Magento extension. Which of the following choices will make the browser apply the stylesheet? 

A There is no solution; a PHP file cannot be used as a stylesheet. 

B Use the "href" attribute instead of "src" to specify the file's location, as in: <link href="http://siteurl.com/theme/skin/frontend/default/mytheme/css/colors.css.php" rel="stylesheet" type="text/css"> 

C Call a static CSS file instead of using a PHP file as a stylesheet. 

D Send a valid Content-Type HTTP header, as in: header("content-type: text/css"); 

+ Answer
+ Report
Total Preview: 2547

Copyright © 2024. Powered by Intellect Software Ltd