mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 09:27:25 +00:00
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
33 lines
741 B
PHP
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';
|
|
}
|
|
}
|
|
|