Wiki

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

How to hide `index` action from URL

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

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

Created 4 years ago by jpabloHow-tos2 comments – viewed 14,855 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.

How to re enable logging during unit testing

Created 4 years ago by AsgarothHow-tos3 comments – viewed 14,680 times – ( +11 ) – version 1.1
Some of you have experienced the need to log some information while doing unit testing, due to the fact that the information given in the summary is just not enough, to know why the test is actually failing. this article focuses on 2 ways to get you logs up and running again.

Insert a multirow header in CGridView

Created 3 years ago by PeppeHow-tos2 comments – viewed 14,504 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.

get summary of related model via STAT relation

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

How to register scripts and css

Created about a year ago by oligalmaHow-tos0 comments – viewed 14,420 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.

YouTube API v2.0 – Browser-based Uploading

Created 3 years ago by VaibhavHow-tos1 comment – viewed 14,348 times – ( +6 ) – version 1.1
Through the YouTube API you can upload files directly to the Youtube server. Youtube currently offers two services 1. Direct Link 2. Browser Based Uploading. In this wiki I will demonstrate how you can quickly set Browser Based Uploading for your Yii application. This is the protocol request that takes place.

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

Created 3 years ago by kiran sharmaHow-tos1 comment – viewed 14,317 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

Using Google Maps in Yii Applications via Jquery

Created 3 years ago by bluyellHow-tos2 comments – viewed 14,136 times – ( +2 / -1 ) – version 1.1

Visualization tree-multi subcategories as listbox or dropdownlist

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos4 comments – viewed 14,044 times – ( +4 ) – version 1.1
Do you want to make a listbox or dropdownlist to select one or more categories or sub categories ?