Yii2: How to Create Default Column Order in Gridview
Default column order in Gridview can be modified in model file. Open model file and add the following code:
Default column order in Gridview can be modified in model file. Open model file and add the following code:
To enable IIS 6.0 to run 32-bit applications on 64-bit Windows: 1. Open a command prompt and navigate to the %systemdrive%\Inetpub\AdminScripts directory. 2. Type the following command: cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 true 3. Press ENTER.
To change the effect of Ctrl+Alt+Backspace in any flavour of Ubuntu you can follow these steps: 1) Install the “dontzap” package sudo apt-get install dontzap 2) Open Terminal or Konsole and type: sudo dontzap –enable or sudo dontzap –disable Where “disable” means that Ctrl+Alt+Backspace restarts the xserver, while “enable” means that it won’t.
The purpose of saving Apache access log into MySQL database is to make it easier to parse website’s visitor information. First of all, we do repository update: Install libapache2-mod-log-sql Create apachelogs and scoreboard table: Modify /etc/apache2/sites-available/default: If you have other virtual hosts, you can put LogSQLTransferLogTable directive into each virtual host tag. Create mod_log_sql-preserve file:…
After playing with auto grab content plugin, I found so many (2000+) unused tags in my WordPress. To clean up all of it, just install Mass Delete Unused Tags plugin. Login to WordPress as administrator. Go to Plugins => Add New Search for: Mass Delete Unused Tags Click Install and Activate You can find the…
Below is guide how to remote backup using rsync. 1. Install rsync on both client and remote computer: 2. Create config file /etc/rsyncd.conf on remote computer: And put these lines into the file: Press Ctrl-X, Y, and Enter to exit from nano. 3. Activate rsync Find RSYNC_ENABLE=false line, and change to RSYNC_ENABLE=true 4. Execute rsync 5….
For you who have installed Ubuntu / Kubuntu / Xubuntu, you can switch between desktop environment easily. Here are the desktop environments used by each distro: – Ubuntu defaults use Gnome – Kubuntu defaults use KDE – Xubuntu defaults use XFCE Just open Adept or Synaptic package manager, and search for: ubuntu-desktop or kubuntu-desktop or xubuntu-desktop Or…
Sudo is a program that allows users to run programs with the security privileges of another user (normally the superuser, or root). The /etc/sudoers file controls who can run what commands as what users on what machines and can also control special things such as whether you need a password for particular commands. To add…
This is my note on installing Huawei E220 modem on FreeBSD 7.0. Requirements: 1. Download kernel patch here. 2. Patch kernel: # cd /sys/dev/usb/ # patch < /root/e220-usb.diff 3. Rebuild and install kernel. Don’t forget to unload umass kernel. 4. Load module ubsa and umass by add in this line into /boot/loader.conf file. ubsa_load=”YES” umass_load=”YES” 5. Reboot….
The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code. To install APC, do the following commands: Update Feb 25, 2012: I found one liner APC installation from php.net: