Wiki articles

Showing 141-160 of 651 items.

Log Activity in DataBase

Created 10 years ago by mahdi1986, updated 9 years ago by mahdi1986.

In this article i will explain how to customize log activity in database, Imaging you need to save IP user, Url request and user_name in database,But table created by default with Yii only have id,level,category,logtime and message

4 0
17 followers
Viewed: 32 627 times
Version: 1.1
Category: Tutorials

How to customize Yii core messages?

Created 15 years ago by qiang, updated 11 years ago by Yang He.

Yii core messages refer to static text strings in the core Yii framework code which are meant to be displayed to end-users (e.g. core exception messages, default validation error messages). Customization of these core messages is needed in two circumstances:

17 0
16 followers
Viewed: 67 801 times
Version: 1.1
Category: Tutorials

How to validate CSRF token with session

Created 12 years ago by yangmls, updated 12 years ago by yangmls.

First of all, You must change component config to enable the default Yii CSRF validation.

21 0
27 followers
Viewed: 100 334 times
Version: 1.1
Category: How-tos
Tags: CSRF, session

Using search engine and user friendly URLs

Created 14 years ago by qiang, updated 11 years ago by Yang He.

The Definitive Guide introduces the fundamentals of managing URLs in a Yii application. In this tutorial, we introduce a practical technique that can quickly turn your application into using search-engine-friendly URLs.

19 0
31 followers
Viewed: 101 792 times
Version: 1.1
Category: Tutorials
Tags: SEO, URL

Reference: Model rules validation

Created 14 years ago by krillzip, updated 10 years ago by Rodrigo.

This is a reference to be used for Model rule validation and is compiled from the Yii documentation and code. The purpose is to have all the information gathered in one place instead of scattered. This reference is not an intro. See The Definitive Guide to Yii, Declaring Validation Rules for a tutorial.

99 0
114 followers
Viewed: 884 912 times
Version: 1.1
Category: How-tos

How To Customize CMenu Output

Created 13 years ago by Angelo, updated 13 years ago by Angelo.

CMenu comes with a lot of great customization options built in but sometimes you need it to do more.

7 0
15 followers
Viewed: 68 602 times
Version: 1.1
Category: Tutorials
Tags: menu

Additional form data with XUpload

Created 11 years ago by Asgaroth, updated 11 years ago by Asgaroth.

In this article you'll learn how to send additional form data when uploading files using XUpload widget

7 0
13 followers
Viewed: 46 616 times
Version: 1.1
Category: How-tos

A simple go back button widget

Created 11 years ago by CTala, updated 11 years ago by bennouna.

We all know that widgets are really useful. We can use the almost everywhere we want, and we can use the same code a lot of times ( Almost OOP ).

2 1
6 followers
Viewed: 37 001 times
Version: 1.1
Category: How-tos

Using jQuery UI 1.8.10 themes with Yii 1.1.6

Created 13 years ago by a110y, updated 13 years ago by samdark.

When using the latest stable jQuery UI themes (1.8.10) with Yii 1.1.6 (which uses 1.8.6) the widgets don't appear (they're invisible but they're there). In order to make them visible you need to change the following line:

2 0
2 followers
Viewed: 23 273 times
Version: 1.1
Category: Tips

Update/delete model with CJuiDialog (works in CGridView)

Created 12 years ago by ifdattic, updated 12 years ago by ifdattic.

This tutorial will show you how to create Ajax dialog which allows to create new model, update or delete existing model. It works with simple links, CGridView button column links, adds a minimal amount of code and degrades gracefully with JavaScript turned off.

15 0
25 followers
Viewed: 77 052 times
Version: 1.1
Category: Tutorials

Using cache in CActiveDataProvider

Created 12 years ago by Stamm, updated 12 years ago by Stamm.

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.

17 0
11 followers
Viewed: 27 835 times
Version: 1.1
Category: Tips

How to avoid rendering entire page on AJAX call for CGridView and CListView

Created 10 years ago by VINAY Kr. SHARMA, updated 8 years ago by VINAY Kr. SHARMA.

CGridView and CListView are great widget to populate records and also provides features like ajax update, column sort, search, drop-down filter, ajax content load and many more...

3 0
12 followers
Viewed: 31 374 times
Version: 1.1
Category: How-tos

How to pass the third parameter to UserIdentity on login authentication

Created 9 years ago by Rohit Suthar, updated 9 years ago by Rohit Suthar.

In this wiki I will show how could wo pass the third parameter to UserIdentity on login authenticate. So we can do separate login authentcation from two or more different models from single login form.

2 0
5 followers
Viewed: 34 359 times
Version: 1.1
Category: How-tos

How to learn Yii?!

Created 12 years ago by yJeroen, updated 4 years ago by CeBe.

Here is a step by step To-Do list for Yii beginners. The list is an advice of what tutorials and documentation you can walk through to get a full understanding of the Yii Framework. These can be a help to learn Yii.

17 0
21 followers
Viewed: 118 892 times
Version: all
Category: Tutorials

How to insert a Simple Dialog Box

Created 12 years ago by bluyell, updated 12 years ago by bluyell.

I build this simple PHP class (DialogBox.php at the bottom of this wiki) to help you in the dialog box usage on Yii applications. The goal is run any Yii actions into this dialog box and return the resulting value to the calling instance.

5 0
9 followers
Viewed: 39 575 times
Version: 1.1
Category: How-tos

Create Excel File with PHPExcel Plugin (Insert Image in Excel Sheet ,Use Template to Create Excel File, Create New Sheet)

Created 10 years ago by codesutra, updated 9 years ago by codesutra.

This is an example for how to create Excel File with PHPExcel library.This article is inspired by Wikki Article return by Antonio Ramirez and extension created by marcovtwout for [PHPExcel library](https://github.co...

How to generate Web feed for an application

Created 15 years ago by qiang, updated 11 years ago by Yang He.

Web feed is a data format used for providing users with frequently updated content. In this article, we describe how to use Zend_Feed, an excellent component from Zend Framework to generate Web feed for an Yii application. This article can also serve as a general guide...

3 0
9 followers
Viewed: 37 317 times
Version: 1.1
Category: Tutorials
Tags:

CGridView Date Range Without Cookies or Session (External Filtering)

Created 10 years ago by ezekielnoob, updated 9 years ago by ezekielnoob.

Here's a tutorial on how to create a CGridView with external date filters the trick is to create hidden columns within the CGridView Filters something like in the example below: grid

3 0
8 followers
Viewed: 21 146 times
Version: 1.1
Category: How-tos

Change buttons on our CGridView extending yii

Created 12 years ago by sensorario, updated 11 years ago by sensorario.

In this tip, I'll help you to change in few second buttons of your CGridView. I hope you like it =).

9 0
9 followers
Viewed: 35 852 times
Version: 1.1
Category: Tips

How to use nested DB transactions (MySQL 5+, PostgreSQL)

Created 14 years ago by mindeh, updated 8 years ago by Boaz.

Original source code and idea are from: PHP, PDO & Nested Transactions.

41 0
26 followers
Viewed: 66 534 times
Version: 1.1
Category: How-tos