widgets/comments/CiiMSComments.php
public function init()
	{
		$asset = Yii::app()->assetManager->publish(YiiBase::getPathOfAlias('cii.assets.dist'), true, -1, YII_DEBUG);

		// Register CSS and Scripts
		Yii::app()->clientScript->registerScriptFile($asset. (YII_DEBUG ? '/ciimscomments.js' : '/ciimscomments.min.js'), CClientScript::POS_END);
		Yii::app()->clientScript->registerCssFile($asset. (YII_DEBUG ? '/ciimscomments.css' : '/ciimscomments.min.css'));
		
		if ($this->content != false)
			$this->renderCommentBox();
		else
			$this->renderCommentCount();
	}
public function init()
	{
		$asset = Yii::app()->assetManager->publish(YiiBase::getPathOfAlias('cii.assets.dist'), true, -1, YII_DEBUG);

		// Register CSS and Scripts
		Yii::app()->clientScript->registerScriptFile($asset. (YII_DEBUG ? '/ciimscomments.js' : '/ciimscomments.min.js'), CClientScript::POS_END);
		Yii::app()->clientScript->registerCssFile($asset. (YII_DEBUG ? '/ciimscomments.css' : '/ciimscomments.min.css'));
		
		if ($this->content != false)
			$this->renderCommentBox();
		else
			$this->renderCommentCount();
	}
public function init ( ) { $ asset = Yii :: app ( ) -> assetManager -> publish ( YiiBase :: getPathOfAlias ( 'cii.assets.dist' ) , true , - 1 , YII_DEBUG ) ; // Register CSS and Scripts
 Yii :: app ( ) -> clientScript -> registerScriptFile ( $ asset . ( YII_DEBUG ? '/ciimscomments.js' : '/ciimscomments.min.js' ) , CClientScript :: POS_END ) ; Yii :: app ( ) -> clientScript -> registerCssFile ( $ asset . ( YII_DEBUG ? '/ciimscomments.css' : '/ciimscomments.min.css' ) ) ; if ( $ this -> content != false ) $ this -> renderCommentBox ( ) ; else $ this -> renderCommentCount ( ) ; }
Init function to start the rendering process
Init function to start the rendering process