[Rewrite of a Stack Overflow question. My first forum post so I can’t use embedded links]
The default entry point into a controller renders a layout with a sidebar that contains an autocomplete widget and a $content section. The autocomplete widget is a rip (see blog) and inside the run method the JQuery autocomplete is method chained to adjust how results are displayed.
Tried to override the afterRender method and when the view in question was rendered do something like:
Put a trace at the beginning and the end of the widget’s run method. Seeing a trace when the normal entry point is rendered as well when the view with the iframe is rendered. So the widget is getting run correctly.
Removing the iframe element eliminates the problem from the view that looks like:
<?php /* @var $this AvhsController */ $this->breadcrumbs = array( __('Video') => array('/video'), __('View') . ' (' . $this->selectedSiteGroupName() . ' / ' . $model->name . ')', ); ?> <iframe class="fullwidth" src="<?php echo $url; ?>"/>
Can’t move the script in question to the head since Yii places the jquery-ui at the end of the body. Any way to adjust where Yii puts core scripts?