Wiki

Articles in category "tutorials", sorted by commentsX
Displaying 101-110 of 249 result(s).

shortcut/usefull access roles methods RBAC

Created 2 years ago by Kostas Apazidis (KonApaz)Tutorials5 comments – viewed 4,702 times – ( +1 ) – version 1.1
These are functions that I used very often, may helps you!

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

Created 3 years ago by nlacTutorials5 comments – viewed 43,493 times – ( +8 / -2 ) – 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.

YII SaaS Multi Tenant application with single database

Created 2 years ago by Rajith RTutorials5 comments – viewed 14,136 times – ( +11 / -10 ) – version 1.1
Lots of people are asking how to solve it with YII,We think its difficult with YII. But its easy to solve . There is no database triggers needed . we can simply sove it by extending a class(say "RActiveRecord") from CActiveRecord .Then extend all our model classes from that class.

How to customize the error message of a validation rule

Created 7 years ago by qiangTutorials4 comments – viewed 86,300 times – ( +18 / -1 ) – version 1.1
Validators extending from CValidator all have a property named message. You can set this property in the corresponding validation rule to customize the error message. For example, the following validation rule uses an error message that is different from the default one:

How to create a breadcrumb widget

Created 7 years ago by knutTutorials4 comments – viewed 66,868 times – ( +13 ) – version 1.1
Here's a simple way to create a breadcrumb widget to be used in your templates. The idea is just to isolate how the breadcrumb is generated based on an array of crumbs.

Integrating with other frameworks

Created 6 years ago by KJediTutorials4 comments – viewed 19,798 times – ( +5 / -1 ) – version 1.1
When you need to integrate with other frameworks (e.g. Zend Framework), you have to follow these steps:

Ajax Login form with validation errors inside jQuery modal dialog

Created 2 years ago by praviTutorials4 comments – viewed 32,954 times – ( +6 ) – version 1.1
I would like to share my little experience with Yii to the community in the form of the below small wiki:
tags: ajax login

Simple access control

Created 3 years ago by szfjozsefTutorials4 comments – viewed 35,658 times – ( +4 / -8 ) – version 1.1
For those who feel, the Controller->accessRules() or RBAC (Role-Based Access Control) is too complicated or doesn't want the username(s) to be hard-coded in accessRules(), here is a very simple, easy-to-implement solution.

CSS Naming Conventions

Created 5 years ago by qiangTutorials4 comments – viewed 30,784 times – ( +35 / -1 ) – version 1.1
In this article, we introduce a set of CSS naming conventions that we have applied in several big projects and achieved success. The goal of these naming conventions is to eliminate the possibility of naming conflicts, facilitate debugging and maintenance, and to simplify the naming process.

How to setup CKeditor

Created 3 years ago by Dark-SunTutorials4 comments – viewed 22,287 times – ( +3 ) – version 1.1
To start with you need to download the latest stable release of CKeditor. Extract the downloaded file and place the ckeditor/ folder in your applications webroot directory. (beside "protected" and "css" and other directories)