Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 51-60 of 355 result(s).

CKEditor Integration (includes steps for file uploads) - Step by Step

Created 5 years ago by shulmeHow-tos12 comments – viewed 59,591 times – ( +26 / -1 ) – version 1.1
Hey guys, I'm hoping other people will find this helpful. Today I went through the process of adding CKEditor to one of my projects, and then integrating KCFinder as the image uploader. It will be used in a CActiveForm, without the use of any crazy weird widgets. All paths are relative, using Yii functions, so this will work no matter where you install. Here it is:

How to write a simple application component

Created 6 years ago by zaccariaHow-tos5 comments – viewed 59,552 times – ( +20 / -8 ) – version 1.1
An application component is a confortable way for share information among all component of the application

Updating fields on a form with Ajax and Json

Created 6 years ago by Russell EnglandHow-tos4 comments – viewed 58,736 times – ( +12 / -2 ) – version 1.1
I'm developing a website that has an option to look up a car's registration number via SOAP and return additional details such as make, model, colour etc.

How to use single form to collect data for two or more models (CActiveForm and Ajax Validation edition)

Created 6 years ago by RusAlexHow-tos9 comments – viewed 58,363 times – ( +22 / -1 ) – version 1.1
With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

Create custom button button with AJAX function in CGridView

Created 5 years ago by nkdHow-tos2 comments – viewed 56,700 times – ( +19 / -1 ) – version 1.1
CButtonColumn in CGridView can be customised to include user built buttons. To learn a great deal about including custom buttons, read this excellent wiki. This tutorial will show how to call an action from one custom button using AJAX instead of regular GET calls.

Install, update and use Yii with WAMP server

Created 5 years ago by mrsHow-tos5 comments – viewed 56,379 times – ( +5 / -2 ) – version 1.1
Here I am describing how you can install and update Yii in WAMP sever.

How to avoid multiple Ajax Request

Created 6 years ago by nickcvHow-tos26 comments – viewed 56,220 times – ( +25 / -3 ) – version 1.1
CHtml::ajaxLink(), CHtml::ajaxSubmitButton() and similar methods are great, but if they are located inside a portion of the page that is already loaded via ajax something bad will happen, something you may even not notice if you are not using tools like firebugs: the sent ajax requests will multiply themselves.

Sort and filter a custom or composite CGridView column - that may even contain data from different tables.

Created 4 years ago by Gerhard LiebenbergHow-tos2 comments – viewed 55,892 times – ( +6 / -2 ) – version 1.1
I have a table (account) which contains "General Ledger" accounts. Each account has its own account_description - such as 'inventory', 'sales', etc.

Upload image and content using AJAX and Store it in different table

Created 4 years ago by Selvakumar KaliyappanHow-tos1 comment – viewed 54,631 times – ( +3 / -1 ) – version 1.1
We all know how to upload the content and images at the same time with refreshing the page. And uploading the images using Ajax we have faced some issues, here i have fixed the issues and both content and photos are uploaded using Ajax. And both content and images are stored in the different tables

Using CJuiDatePicker for CGridView filter

Created 5 years ago by softarkHow-tos21 comments – viewed 53,327 times – ( +27 / -1 ) – version 1.1
We can use a CJuiDatePicker for a CGridView inline filter.