<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.intesys.com.br/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '11']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Piwik Code -->
<?php
Yii::app()->hooks->addAction('after_opening_body_tag', function($controller) {
?>
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.intesys.com.br/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '11']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Piwik Code -->
<?php
});
I create a new custom file or just add to init-custom.php?You could do it dynamically, something like https://pastebin.com/5i5TkUjz and then edit the form properly in your code.
$form = $this->beginWidget('CActiveForm');
$collection->controller
$this
You could do it dynamically, something like https://pastebin.com/5i5TkUjz and then edit the form properly in your code.
@oliveo - what html code, for what exactly?