Home

Yii2 Lookup Module

You may be familiar with Lookup and might have used it in Yii framework. It provides good functionality to manage all of the optional data in one place, such as ‘Yes’, ‘No’ values or ‘Male’, ‘Female’ or any other type of optional values that you want to provide it end-user in any format (checkbox, radio […]

2 comments

Ubuntu How to install cUrl in PHP5

Following command are used to install curl via command line:

the above code is used to installs the curl for php5 and after successful installation restart the Apache web server. Happy Coding!  

0 comments

Ubuntu 14.04 adjust Brightness

First install backlight

Find which video card is installed in your system by typing the following command.

For me it’s intel. Create a configuration file:

and copy the following into the the configuration file:

Save the configuration file. Now logout and then log back into the system and the brightness control would be […]

0 comments

SQL Queries: Select Query in Yii2

We have to add the following namespaces before using Query class:

  Following is the list of methods used in SQL Queries: Happy Coding!

1 comment

Linux Basic Commads Cheat Sheet

Linxu basic commands are important and often used for more checkout the image below:  

0 comments

Yii2 mcrypt php extension required

After installing Yii2, most of the time you can get this type of error message:

Yii2 uses PHP extension mcrypt which supports a wide variety of block algorithms such as DES, TripleDES, Blowfish (default), 3-WAY, SAFER-SK64, SAFER-SK128, TWOFISH, TEA, RC2 and GOST in CBC, OFB, CFB and ECB cipher modes. Additionally, it supports RC6 and IDEA […]

0 comments

Ubuntu How to display PHP error messages

While working on Ubuntu, by default PHP error messages are disabled and while developing web application we need to enable debugging mode to better understand the error instead of blank screen. Following are the step to solve this: Step – 1: Open terminal and type the following command to open the php.ini file

Step […]

0 comments

URL Rewriting using ISAPI_rewrite 2 for WordPress

Recently, I was working on a WordPress website for a client. For the development version I hosted that website on personal website ituri.net as a sub-domain and after completing the website, client asked me to upload the site to his domain in-order to make it live. When I checked the client hosting server: it was […]

0 comments

How to upload a file in Yii2

If you have worked in Yii1.1 then you will know how to upload a file in Yii, to upload the file in Yii2 is almost the same. In this article we will be using table named contact with few attributes (id, name, pic) and for this we will go step by step: Step 1: Setup global […]

1 comment

Yii2 How to Configure a Theme

A theme is directory of view and layout files. Sometimes one application may have more than one theme defending upon the requirements of the application. Lets say, you want to create a theme named ‘test‘ and configure it with your application then: In your application root, create a directory named ‘themes‘ Inside it create another […]

3 comments