Wiki

Sorted by viewsX
Displaying 111-120 of 766 result(s).

Updating fields on a form with Ajax and Json

Created 4 years ago by Russell EnglandHow-tos4 comments – viewed 52,357 times – ( +12 / -1 ) – 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 hide index.php on nginx

Created 6 years ago by milesTutorials3 comments – viewed 52,015 times – ( +4 ) – version 1.1
For a complete sample Nginx+PHP-FPM config, view this how-to: Nginx & PHP-FPM
tags: URL

htmlOptions explained for various controls.

Created 4 years ago by WoilTips1 comment – viewed 50,622 times – ( +17 ) – version 1.1
Most controls that are rendered by CHtml have an argument called $htmlOptions. This argument is an array that holds the attributes of the HTML element. For example the following code:

How to add ajax-loading indicators

Created 6 years ago by schmunkTutorials5 comments – viewed 50,538 times – ( +27 ) – version 1.1
With yii you're able to create ajax requests and updates easily. But most times you always want to show a loading indicatior to your user.
tags: AJAX

Saving files to a blob field in the database

Created 5 years ago by zaccariaTips8 comments – viewed 50,361 times – ( +9 / -2 ) – version 1.1
As a follow-up from the How to upload a file using a model wiki entry that explains how to save a file to the filesystem, this article will do the same using a blob field in the database.
tags: File upload

How to write a simple application component

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

How to avoid multiple Ajax Request

Created 4 years ago by nickcvHow-tos26 comments – viewed 49,606 times – ( +25 / -2 ) – 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.

Implementing a User Level Access System

Created 4 years ago by Antonio RamirezTutorials12 comments – viewed 49,428 times – ( +28 / -1 ) – version 1.1
I would like to provide you a quick tip on how to implement user level access to your Yii applications.

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

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

How to customize Yii core messages?

Created 6 years ago by qiangTutorials7 comments – viewed 49,143 times – ( +18 ) – version 1.1
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: