Wiki

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

How to hide index.php on nginx

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

Display an AJAX tree from your DB using CTreeView

Created 6 years ago by Fran├žois GannazTutorials10 comments – viewed 54,161 times – ( +21 ) – version 1.1
This example uses a MySQL DB with a table named tree with the fields id, name, and parent_id. The parent_id will be NULL for root elements. The SQL is kept simple (no autoinc, no FK, etc).
tags: AJAX, CTreeView

Yii 2 list of path aliases available with default basic and advanced app.

Created 2 years ago by Kartik VTips1 comment – viewed 53,853 times – ( +50 / -5 ) – version 2.0
If you are coming over from Yii 1.x to Yii 2, and already read this guide, you may note that namespaces are very important in Yii 2 to identify classes. But do you know the list of seeded path aliases that come shipped with a basic or advanced app? Here is my attempt to list them.

Updating fields on a form with Ajax and Json

Created 5 years ago by Russell EnglandHow-tos4 comments – viewed 53,432 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.

Saving files to a blob field in the database

Created 5 years ago by zaccariaTips8 comments – viewed 53,165 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 add ajax-loading indicators

Created 6 years ago by schmunkTutorials5 comments – viewed 52,018 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

htmlOptions explained for various controls.

Created 5 years ago by WoilTips1 comment – viewed 51,941 times – ( +18 ) – 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 write a simple application component

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

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 51,367 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 avoid multiple Ajax Request

Created 5 years ago by nickcvHow-tos26 comments – viewed 51,074 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.