Wiki

Sorted by viewsX
Displaying 161-170 of 784 result(s).

Creating a database-driven hierarchical Structure combined with CMenu and superfish

Created 7 years ago by thyseusTutorials9 comments – viewed 48,874 times – ( +15 / -1 ) – version 1.1
Note: Please also take a look at the newer EMenu extension. This works even better that the deprecated CDropDownMenu!
tags: menu

Importing CSV file to mysql table using "LOAD DATA" command.

Created 4 years ago by sirin kTips6 comments – viewed 48,593 times – ( +7 / -1 ) – version 1.1
hi, Here i am giving you some simple step to import huge data from a csv file to your mysql table.this is useful when you have a very huge data to import from csv format.
tags: csv, mysql, import

CGridView: Update/create records in a CJuiDialog

Created 5 years ago by JobloTips12 comments – viewed 48,323 times – ( +14 / -1 ) – version 1.1
My article Display the full record in a CJuiDialog uses ajax to view a record in dialog on clicking the 'view-icon'.

Ajax update

Created 6 years ago by zaccariaTips2 comments – viewed 48,248 times – ( +21 / -3 ) – version 1.1
Often happens to have the need of change a part of the page with ajax.
tags: AJAX

Drills : Search by a HAS_MANY relation in Yii 1.1

Created 4 years ago by softarkTutorials13 comments – viewed 48,059 times – ( +34 / -1 ) – version 1.1
Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider in Yii 1.1. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

A simple way to get Yii client-side form validation run when submitting by ajax

Created 4 years ago by nlacTutorials5 comments – viewed 47,978 times – ( +8 / -3 ) – version 1.1
A time ago i've met the issue that Yii doesn't run any client-side form validation when submitting the form by CHtml::ajaxSubmitButton. The small javascript below helps to fix it.

Drills : Search by a HAS_MANY relation in Yii 2.0

Created 2 years ago by softarkTutorials4 comments – viewed 47,638 times – ( +19 / -1 ) – version 2.0
This article tries to describe the practical techniques of searching by a HAS_MANY relation using ActiveRecord of Yii 2.0.

How to log changes of ActiveRecords?

Created 8 years ago by pfthTutorials7 comments – viewed 47,602 times – ( +41 / -3 ) – version 1.1
A simple and effective way to keep track what your users are doing within your application is to log their activities related to database modifications. You can log whenever a record was inserted, changed or deleted, and also when and by which user this was done. For a CActiveRecord Model you could use a behavior for this purpose. This way you will be able to add log functionality to ActiveRecords very easily.
tags: Logging

Exporting CGridView results to CSV file

Created 5 years ago by RusAlexTutorials9 comments – viewed 46,816 times – ( +6 / -4 ) – version 1.1
A few days ago, i worked for CGridView exporting functional for my client. He asked me to create a simple exporting to a CSV file a CGridView search results.
tags: cgridview, export, csv

Real-time display of server push data using Server-Sent Events (SSE)

Created 5 years ago by bennounaHow-tos16 comments – viewed 46,578 times – ( +12 / -1 ) – version 1.1
There are several methods and techniques that come handy in the case you need to call an external resource periodically or if you are waiting for a server push, but I present here an easy and straightforward one using HTML5's Server-Sent Events (SSE).