This can be used for inline content, too.
Example code:
<head>
<?php echo $this->widget('ExternalFiles', array(
'name'=>'default',
'type'=>'css',
)); ?>
</head>
...
<?php echo $this->widget('ExternalFiles', array(
'name'=>'bottom',
'type'=>'js',
)); ?>
</body>
This would render:
<head> <link rel="stylesheet" type="text/css" href="/assets/54867546/style.css" /> </head> ... <script type='text/javascript' src='/assets/54867546/common.js'></script> </body>

Help
This topic is locked













