Wiki

Sorted by commentsX
Displaying 61-70 of 693 result(s).

How to filter CGridView with From Date and To Date datepicker

Created 2 years ago by kiran sharmaTips12 comments – viewed 29,812 times – ( +17 / -3 ) – version 1.1
This artical is related to allow user to filter CGridView with date range using datepicker on submit button. Here I use Yii Cookie to preserve date in datepicker textbox after submitting the form.

Implementing a User Level Access System

Created 3 years ago by Antonio RamirezTutorials12 comments – viewed 42,410 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 3 years ago by hasanaviHow-tos12 comments – viewed 33,324 times – ( +21 ) – 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())

CGridView: Update/create records in a CJuiDialog

Created 2 years ago by JobloTips11 comments – viewed 37,178 times – ( +14 ) – version 1.1
My article Display the full record in a CJuiDialog uses ajax to view a record in dialog on clicking the 'view-icon'.

Understanding Scenarios

Created 2 years ago by Luke JurgsTutorials11 comments – viewed 77,060 times – ( +27 ) – version 1.1
Scenarios are an extremely useful tool for separating validation tasks on any class you use derived from CModel. In this tutorial we will use CActiveRecord.

Yii Security-extended guide

Created 2 years ago by bingjie2680Tips11 comments – viewed 14,739 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 about a year ago by codesutraTutorials11 comments – viewed 25,932 times – ( +4 ) – 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.

Setting and maintaining the language in Application (i18n)

Created 5 years ago by olafureTutorials11 comments – viewed 76,527 times – ( +23 ) – version 1.1
As seen in this post, Yii doesn't enforce how language is set and maintained within the session.
tags: i18n, translation

Update two models with one view

Created 2 years ago by sensorarioTips11 comments – viewed 31,409 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 4 years ago by atrandafirTutorials11 comments – viewed 96,388 times – ( +32 ) – 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.