Wiki

Sorted by viewsX
Displaying 381-390 of 786 result(s).

Using cache in CActiveDataProvider

Created 6 years ago by StammTips7 comments – viewed 21,654 times – ( +21 / -1 ) – version 1.1
First param in CActiveDataProvider could be a string with model name or instance of class. So, you may use CActiveRecord::cache() for cache, but you need set third param to 2, because you should cache 2 queries: counting and get data.

Rendering Views and Updating them with Ajax

Created 3 years ago by Manish GuptaTips4 comments – viewed 21,221 times – ( +2 / -1 )
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.

Popup AJAX DialogBox without any extension

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos4 comments – viewed 21,128 times – ( +8 / -2 ) – version 1.1
In this wiki I explain how to show a default popup dialogbox (like Gii does) using an existing module.

Yii Security-extended guide

Created 5 years ago by bingjie2680Tips11 comments – viewed 20,918 times – ( +6 / -7 ) – 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.

Load the Yii-Bootstrap Extension on Specific Actions

Created 4 years ago by chuntleyHow-tos5 comments – viewed 20,888 times – ( +10 / -1 ) – version 1.1
A big problem I've hit with the Yii-Bootstrap extension is that all AJAX requests are initializing Bootstrap because of preload. This is a huge waste of resources, especially when using AJAX-based file uploaders that split the file into chunks. Large file uploads using that method could be initializing bootstrap hundreds of times.
tags: bootstrap, filter

First Yii App: CTabView

Created 8 years ago by meanpenguinTutorials1 comment – viewed 20,831 times – ( -3 ) – version 1.1
Once you are completed with the "Creating First Yii Application", the following can be done.

Update a part of content using AJAX when select a GridView row

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos2 comments – viewed 20,722 times – ( +4 / -1 ) – version 1.1
Suppose you want to refresh a form or any content when a single row of CGridView is selected

MVC primer and 5 minute form walkthrough

Created 5 years ago by rix.rix.Tutorials0 comments – viewed 20,639 times – ( +8 / -1 ) – version 1.1
This tutorial assumes some basic knowledge of Yii and a functional development environment.
tags: Forms, tutorial, mvc

Auto set model fields values

Created 5 years ago by vibhaJadwaniTutorials3 comments – viewed 20,568 times – ( +9 / -1 ) – version 1.1
This is a tutorial for how to auto set model values without any code.

Extension Development (beginner)

Created 3 years ago by sefburhanTutorials2 comments – viewed 20,500 times – ( +34 / -1 ) – 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.