Tuesday, July 31, 2012

codeigniter – equivalence of contentPlaceHolder in php



I am using PHP and CodeIgniter. In every view file, I include the header.php, seen below:



<head>
<link rel=\"...\">
<script type=\"text/javascript\">...</script>
</head>


Notice that the head tag is closed in this file. Now I want to add a <script> tag in another file without modifying header.php. C# has ContentPlaceHolder that can be used to indicate where tags can be added within head tag. Is there any equivalent in php? If not, How can I achieve this?






Rating: 5 out of 5 based on 3 ratings



The post codeigniter – equivalence of contentPlaceHolder in php appeared first on Javascript ASK.






via Javascript ASK http://javascriptask.phpfogapp.com/codeigniter-equivalence-of-contentplaceholder-in-php.html

No comments:

Post a Comment