Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Begincontent And Registered Javascript

$
0
0
Hi and Merry Christmas

I test a custom action without rendering a view.

I make it using in controller

$this->beginContent() 
...my echoes... 
$this->endContent()


Everything works fine except the loading of javascript file (core jquery too), even if I set the Yii::app()->clientScript->registerCoreScript('jquery'); in my theme

The problem disappear by using $this->render('a view') but I want to sort my code for a few specific actions (without view files)

I am wondering if the begincontent - endcontent has equivalent affects with render of view

Thanks

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>