Wiki

Sorted by viewsX
Displaying 371-380 of 777 result(s).

Rendering Views and Updating them with Ajax

Created 2 years ago by Manish GuptaTips4 comments – viewed 19,142 times – ( +2 )
I wanted to implement a widget that could refresh itself through Ajax without refreshing the whole page. CGridView and CListView are excellent examples of such widgets.

How to use Smarty renderer in Yii

Created 5 years ago by dongbetaHow-tos2 comments – viewed 19,043 times – ( +4 ) – version 1.1
At first, create a class named SmartyRenderer under application/components or any directory you want.
tags: smarty, renderer

How to hide index.php on Microsoft Windows Server with IIS7

Created 3 years ago by GiulianoHow-tos2 comments – viewed 19,008 times – ( +10 ) – version 1.1
I've seen lot of people struggling in finding a way to hide the script name when installing their Yii Application. In an Apache environment everything is well documented in this wiki article, but for those who are running their app on a Windows Server machine there are no hints.

Escape from Default's Yii2 Delete Confirm Box

Created 2 years ago by Antonio RamirezHow-tos8 comments – viewed 18,956 times – ( +9 / -1 ) – version 2.0
If you started playing with Yii2's new GridView, you will soon realize that some things have improved quite a lot, but I am sure its going to be a bit confusing at first glance when you try to modify certain javascript behaviors like for example, its delete confirmation dialog box.

Extension Development (beginner)

Created 2 years ago by sefburhanTutorials2 comments – viewed 18,908 times – ( +34 ) – version 1.1
To extend the functionality of you web application relative to your requirements you are supposed to use existing yii core libraries or use external libraries. There are some steps to ensure security, uniqueness, modularity, performance and to avoid rework in future.

i18n All-in-one format and timezone conversions for date, time, timestamp and datetime.

Created 2 years ago by Gerhard LiebenbergHow-tos3 comments – viewed 18,893 times – ( +8 / -1 ) – version 1.1
Countries sometimes change their laws pertaining to time zones and daylight saving times. This means that GMT+2 can be a different time this August compared to last August! However, by using php's DateTime class (instead of timestamps), we can do both "format" and "time zone" conversions on a single DateTime object (only 2 lines of code) for date, time, timestamp and datetime types - while php takes care of nightmares such as current and historical time zones and daylight saving times.

Simple example for language translation

Created 2 years ago by RKAHow-tos2 comments – viewed 18,889 times – ( +1 ) – version 1.1
Language translation is a common requirement in multi lingual sites. In Yii, we can translate using message and view translation.
tags: yii, i18n

Yii Security-extended guide

Created 4 years ago by bingjie2680Tips11 comments – viewed 18,852 times – ( +6 / -6 ) – version 1.1
This article is called extended guide is because there is already a security guide in the Yii tutorial security section. but that guide is not complete in the sense that it does not rise the developers' attention to some other commonly happening attacks: SQL injection and magic URL, which can be major vulnerabilities in your application without much caring.

Avoiding duplicate script download when using CActiveForm on Ajax calls

Created 4 years ago by Antonio RamirezTutorials2 comments – viewed 18,837 times – ( +12 / -1 ) – version 1.1
Sometimes the active form we wish to use to edit/add a new element on our database is too small and we believe that is much better to use an AJAX'ed dialog/slide form rather than reloading the page to just display one or two fields.

How to use Highslide for image popups

Created 7 years ago by mocapapaTutorials0 comments – viewed 18,825 times – ( +1 ) – version 1.1
You can download the highslide javascript from http://highslide.com/. And here is an explanation on that URL;
tags: image, popups