pool/web/yaamp/components/UniForm.php
Tanguy Pruvot c9c7a27dcf Fixes to handle the newer framework and jquery assets
double check the web/assets folder is writable by your web server...

so, jquery-ui bundled in this framework is now the v1.10.4
and jquery at the v1.11.1
2016-05-01 19:10:23 +02:00

33 lines
741 B
PHP

<?php
/**
* Uni-Form widget to add needed css and javascript files on page
*
* @author Alexander Hramov
* @link http://www.hramov.info
* @version 0.1
*/
//Yii::import('zii.widgets.jui.CJuiWidget');
class UniForm extends CWidget /* or CJuiWidget */
{
public function init()
{
parent::init();
echo CHtml::cssFile('/yaamp/ui/css/uni-form.css');
}
public function run()
{
$cs = Yii::app()->getClientScript();
$cs->registerCoreScript("jquery");
$cs->registerCoreScript("jquery.ui");
$cs->registerScriptFile('/yaamp/ui/js/uni-form.jquery.js', CClientScript::POS_END);
CHtml::$requiredCss = '';
CHtml::$afterRequiredLabel='';
CHtml::$beforeRequiredLabel='<em>*</em> ';
CHtml::$errorSummaryCss = 'errorMsg';
}
}