Demos
·
Guide
·
Class Reference
·
Wiki
·
Extensions
·
Forum
·
Live Chat
·
Login
About
About Yii
Features
Performance
License
Contact Us
Downloads
Framework
Extensions
Demos
Logo
Documentation
Take the Tour
Tutorials
Class Reference
Wiki
Screencasts
Resources
Development
Contribute to Yii
Latest Updates
Report a Bug
Report a Security Issue
Community
Forum
Live Chat
News
Hall of Fame
Badges
search
Documentation
Take the Tour
Tutorials
Class Reference
Wiki
Screencasts
Resources
Wiki
Follow @yiiframework
Articles tagged with "rules"
X
513
225
Displaying 1-2 of 2 result(s).
model rules depended by user roles-permissions
Created a day ago by
KonApaz
–
How-tos
–
0 comments
– viewed 400 times – (
+2
)
This is a reference about model validators and user roles. In many cases we want model validators to applied only for some privileged users or not
tags:
model
,
rules
,
user
,
roles
,
permissions
an easy way to required multi columns(At least one cannot be blank)
Created about a year ago by
1065227709
–
Tips
–
0 comments
– viewed 3,583 times – (
+1
)
in model add the following code:
tags:
rules
Write new article
Search Wiki
Sorted by date
Sorted by date (updated)
Sorted by rating
Sorted by comments
Sorted by views
All categories
Tips
(113)
How-tos
(197)
Tutorials
(180)
FAQs
(7)
Others
(14)
Popular Tags
AJAX
(27)
Authentication
(19)
CGridView
(42)
File upload
(10)
Forms
(8)
Logging
(9)
URL
(10)
Widgets
(12)
active record
(12)
config
(12)
database
(13)
filter
(10)
i18n
(17)
search
(9)
security
(19)
tutorial
(22)
understanding
(11)
user
(9)
views
(11)
yii
(25)
Recent comments
Johnny Gan
on
Relations: BELONGS_TO versus HAS_ONE
Johnny Gan
on
Beginner / Intro Tutorials (please add to /...
demo.ideaentity
on
How to generate Yii-like Documentation
trond
on
How to provide a fallback or mapping for...
trond
on
dfhmn