Wiki

Sorted by viewsX
Displaying 81-90 of 468 result(s).

Ajax form submiting in Yii

Created 8 months ago by sirin kTutorials6 comments – viewed 27,045 times – ( +6 / -2 )
hi guys, Here I'm going to give you a working example of ajax form submiting in Yii.

Display an AJAX tree from your DB using CTreeView

Created 3 years ago by François GannazTutorials9 comments – viewed 26,884 times – ( +20 )
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

Saving files to a blob field in the database

Created 2 years ago by zaccariaTips7 comments – viewed 26,309 times – ( +6 / -2 )
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

Implementing a User Level Access System

Created 2 years ago by Antonio RamirezTutorials9 comments – viewed 26,273 times – ( +27 )
I would like to provide you a quick tip on how to implement user level access to your Yii applications.

Using the configuration file, explain what can be configured.

Created 3 years ago by atrandafirTutorials0 comments – viewed 26,263 times – ( +18 )
The purpose of this post is to let anyone quickly find how to accomplish a configuration task, and list here all the posibilities of the config.php file and also link to pages that explain how is each thing implemented.

How to display static pages in Yii?

Created 4 years ago by qiangTutorials2 comments – viewed 26,185 times – ( +14 )
In a Web application, we often need to display pages like "about this site", "legal information", whose content are mostly static. There are several approaches to deal with this kind of pages.
tags: static pages

Using Yii with Nginx and PHP-FPM

Created 2 years ago by LericHow-tos10 comments – viewed 25,729 times – ( +17 )
This config is built on an Ubuntu 11.04 server. Software is nginx, php-fpm (php5-fpm). For performance, it's recommended to run php-fpm in SOCKET mode, instead of accessing via IP:PORT. That is the method shown below.

htmlOptions explained for various controls.

Created 2 years ago by WoilTips1 comment – viewed 24,507 times – ( +16 )
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 3 years ago by schmunkTutorials5 comments – viewed 24,450 times – ( +25 )
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