Articles in category "how-tos", sorted by date (updated)X
Displaying 1-10 of 346 result(s).

Simple Google Maps object for use with ajax maps

Updated 2 days ago by Chris BackhouseHow-tos0 comments – viewed 419 times – ( +1 ) – version 2.0
The Google mapping extension by Dos Amigos (link) is really great but there are difficulties with Google maps when you want to manipulate your map object with Ajax.
tags: googlemap, maps

Execute migration on server/linux using shell

Updated 4 days ago by dariooHow-tos2 comments – viewed 607 times – version 2.0
It's easy to execute migration locally on XAMPP using cmd, but on server where you script is it's little bit harder.

How to register scripts and css

Updated 5 days ago by moginnHow-tos0 comments – viewed 3,426 times – version 1.1
First of all, we need to download the jQuery library and store it in the js folder. In this example we are using the version 2.1.3.

How to have truly multilingual URLs

Updated 7 days ago by moginnHow-tos1 comment – viewed 791 times – version 1.1
We can easily have a multilingual site if we put a "lang" parameter that comes via GET. For example:

How to validate the uniqueness of multiple columns

Updated 10 days ago by moginnHow-tos1 comment – viewed 2,181 times – ( +1 ) – version 1.1
I am going to show you an effective way to validate the uniqueness of multiple columns.

Simple revealing and hiding the password in the password field

Updated 28 days ago by BizleyHow-tos2 comments – viewed 1,851 times – ( +2 ) – version 2.0
There are numerous usability problems:

Configuring different sessions for backend and frontend in Yii advanced app

Updated about a month ago by Kartik VHow-tos2 comments – viewed 12,144 times – ( +46 ) – version 2.0
After you have setup your Yii2 advanced application, you now have setup your user authentication for both frontend and backend. However, if you have first logged into frontend, and try to access backend from the same client machine, you see no login screen, but find yourself automatically logged in.

How to send POST data from CActiveForm with a CListView inside

Updated about a month ago by moginnHow-tos0 comments – viewed 3,152 times – ( +1 ) – version 1.1
If you want to see a live demonstration of what I mean by "how to send POST data from CActiveForm with a CListView inside" you can take a quiz from here and you will understand. (Link not working due to site maintenance. I will fix it in a few days.)

Behaviour for Time Zone and Format conversion for Date, Time, timestamp, and datetime

Updated about a month ago by SmitheshHow-tos1 comment – viewed 4,976 times – ( +2 ) – version 1.1
This Behaviour helps to view time/date/timestamp/datetime from db to local Date / Time / Date Time format and in local Timezone. And save into db in with db timezone and db format. You only need to include this behaviour in models where need this facility.

Create a custom menu using CMenu data-items (flat or tree structure)

Updated about a month ago by weaverkHow-tos0 comments – viewed 14,165 times – ( +4 ) – version 1.1
There are cases that you want more control to your menu Suppose you want a specific menu with complex css, layout, images. also you want to add extra content,html,css,javascript etc it run time foreach submenu item by conditions.