Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 191-200 of 353 result(s).

How to create a simple logout link in the view?

Created 3 years ago by mi.sarahHow-tos0 comments – viewed 16,413 times – ( +1 / -3 ) – version 1.1
Here you learn to create and set a simple ahref-link to logout the current user.
tags: Logout, Link, user, URL, views

How to hide `index` action from URL

Created 4 years ago by rootbearHow-tos2 comments – viewed 16,401 times – ( +3 / -2 ) – version 1.1
Here is my experiment inspired by my own question and others from the forum.
tags: index

Open Dialog from ajax content

Created 4 years ago by TouzasHow-tos1 comment – viewed 16,377 times – ( +4 / -1 ) – version 1.1
This tutorial will show you how to create Ajax dialog. It's very simple code.

get summary of related model via STAT relation

Created 3 years ago by rootbearHow-tos2 comments – viewed 16,218 times – ( +7 / -1 ) – version 1.1
typical scenario: invoice, invoice items.

Sub-domains with different databases in Yii!

Created 5 years ago by jwerdHow-tos5 comments – viewed 16,214 times – ( +2 ) – version 1.1
Sub-domains with different databases in Yii!

Changing Controllers Name

Created 6 years ago by TrejderHow-tos0 comments – viewed 16,097 times – ( +5 ) – version 1.1
This very short how-to presents steps required to change controller name. It is oriented for less experienced users, which are starting their journey with Yii, to avoid common newbie pitfalls.

Insert a multirow header in CGridView

Created 3 years ago by PeppeHow-tos2 comments – viewed 15,983 times – ( +6 ) – version 1.1
The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way you can write columns grouping headers, and obtain a nicer view.

Create sitemap.xml file dynamically on root folder with one hit

Created 4 years ago by kiran sharmaHow-tos1 comment – viewed 15,956 times – ( +5 / -5 ) – version 1.1
I had created one controller file which can create sitemap.xml file(which is used for seo, google crawler and many other puropse) dynamically with one run.
tags: SEO, SiteMap, XML

How to handle decimal separators (e.g comma instead of dot) for l18n

Created 5 years ago by jpabloHow-tos2 comments – viewed 15,660 times – ( +2 ) – version 1.1
Yii i18n does not cover decimal format. Some languages like Spanish (I live in Argentina) uses comma ',' instead of dot '.' as decimal separator.