Wiki

Sorted by commentsX
Displaying 71-80 of 753 result(s).

Implementing a User Level Access System

Created 4 years ago by Antonio RamirezTutorials12 comments – viewed 47,746 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 show ajax delete status in CGridView like flash messages

Created 4 years ago by hasanaviHow-tos12 comments – viewed 39,631 times – ( +24 ) – version 1.1
I've seen many tickets regarding how to show friendly delete confirmation using CGridView's CButtonColumn in ajax request. If you are using relational database, after producing CRUD functionality when you try to delete a record in ajax mode which has child record it can't be deleted and you can see the ajax loader forever. By this way you can't show the users if a record has been successfully deleted or if there are some problem in flash style (setFlash() / getFlash())

Yii Security-extended guide

Created 3 years ago by bingjie2680Tips11 comments – viewed 17,026 times – ( +6 / -6 ) – version 1.1
This article is called extended guide is because there is already a security guide in the Yii tutorial security section. but that guide is not complete in the sense that it does not rise the developers' attention to some other commonly happening attacks: SQL injection and magic URL, which can be major vulnerabilities in your application without much caring.

Create / Generate PDF files with TCPDF plugin (Example to generate Table with TCPDF plugin)

Created 2 years ago by codesutraTutorials11 comments – viewed 38,996 times – ( +5 ) – version 1.1
Few days ago i was playing with TCPF plugin to create a PDF files. Since i have checked few available extension and also checked some forum threads but still i dont get my expected result for PDF file.

Update two models with one view

Created 3 years ago by sensorarioTips11 comments – viewed 35,932 times – ( +10 / -2 ) – version 1.1
Suppose to have two models: Users and Emails. You do not want to store email in a Users model. And User can have 0 or many emails. This is the form generated to create a new user (just username).
tags: database, model, view, form

Add information to Yii::app()->user by extending CWebUser

Created 5 years ago by atrandafirTutorials11 comments – viewed 112,843 times – ( +35 ) – version 1.1
This little tutorial explains a way how you can retrieve more parameters from Yii::app()->user by adding a component that extends CWebUser and retrieves the user information from database table named User.

Understanding "Safe" Validation Rules

Created 4 years ago by Steve FriedlFAQs11 comments – viewed 92,454 times – ( +93 / -1 ) – version 1.1
A common source of confusion among new Yii users is how the 'safe' validator works, how it works with other validators, and why it's necessary in the first place. This article means to clear up this confusion, as well as explain the notion of Massive Assignment.

jQuery UI Datepicker

Created 2 years ago by softarkHow-tos11 comments – viewed 62,647 times – ( +13 ) – version 1.1
We all love the convenient gadget, namely jQuery UI Datepicker as an input element for date. Yii supports it as CJuiDatePicker. Let's see how to use it.

Caching the config main.php

Created 3 years ago by dckurushinTutorials11 comments – viewed 13,059 times – ( +4 / -2 ) – version 1.1
The config long array included every time, and it's not cached at all!

Special $variables in CGridView and CListView

Created 3 years ago by Steve FriedlTips11 comments – viewed 52,914 times – ( +27 / -2 ) – version 1.1
The popular CListView and CGridView widgets each take a data provider and iterate over each data object produced, calling the user's code to render each row one at a time, and most are familiar with the use of the $data variable to represent the current model object or array.