Posts

How to add jQuery UI to an Asset Bundle in Yii2

At first install official JUI Extension for Yii 2 . Then add yii\jui\JuiAsset to list of dependent assets: public $depends = [ 'yii\jui\JuiAsset' , ... ];

Filter not showing in Yii2 Grid

Be sure you have a proper rules function declare in Search model eg: public function rules () { return [ [[ 'id_materia' ], 'integer' ], [[ 'nombre_sucursal' , 'materia' ], 'safe' ], ]; }

Capitalize first letter in SQL

concat(ucase(left( column_name , 1)), substring( column_name , 2))

Set auto increment value in MySQL

ALTER TABLE table_name AUTO_INCREMENT = value ;

Check free disk space in Linux

df -h df -h /path/to/dir

Checking disk space usage

du - kscx *

Start/Stop MySQL Server on CentOS

Stop MySQL Server # /etc/init.d/mysqld stop Start MySQL Server # /etc/init.d/mysqld start Restart MySQL Server # /etc/init.d/mysqld restart