Wiki

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

URL management for Websites with secure and nonsecure pages

Created 3 years ago by qiangHow-tos12 comments – viewed 28,921 times – ( +29 ) – version 1.1
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
tags: URL

CKEditor Integration (includes steps for file uploads) - Step by Step

Created 3 years ago by shulmeHow-tos12 comments – viewed 48,256 times – ( +26 ) – version 1.1
Hey guys, I'm hoping other people will find this helpful. Today I went through the process of adding CKEditor to one of my projects, and then integrating KCFinder as the image uploader. It will be used in a CActiveForm, without the use of any crazy weird widgets. All paths are relative, using Yii functions, so this will work no matter where you install. Here it is:

Implementing a User Level Access System

Created 4 years ago by Antonio RamirezTutorials12 comments – viewed 49,416 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 41,572 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())

Relational Query - Lazy Loading and Eager Loading in Yii 1.1 / with and together

Created 2 years ago by softarkTutorials11 comments – viewed 30,256 times – ( +15 ) – version 1.1
It's well known that there are Lazy Loading approach and Eager Loading approach in the relational query. But it's important to note that you should distinguish 2 different modes in the Eager Loading in Yii 1.1.x.

Yii Security-extended guide

Created 4 years ago by bingjie2680Tips11 comments – viewed 17,818 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 43,881 times – ( +6 ) – 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 4 years ago by sensorarioTips11 comments – viewed 37,441 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 6 years ago by atrandafirTutorials11 comments – viewed 117,755 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 101,040 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.