Wiki

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

Setting and maintaining the language in Application (i18n)

Created 8 years ago by olafureTutorials12 comments – viewed 104,925 times – ( +23 / -1 ) – version 1.1
As seen in this post, Yii doesn't enforce how language is set and maintained within the session.
tags: i18n, translation

Understanding "Assets"

Created 6 years ago by Steve FriedlTutorials12 comments – viewed 165,060 times – ( +57 / -1 ) – version 1.1
Many newcomers to Yii ask about the assets/ directory found under the webroot, and this article means to explain why it's there and how to work with it.

URL management for Websites with secure and nonsecure pages

Created 4 years ago by qiangHow-tos12 comments – viewed 37,687 times – ( +29 / -1 ) – 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

Save and Display Date/Time Fields in different formats in Yii2

Created 3 years ago by Kartik VHow-tos12 comments – viewed 113,645 times – ( +41 / -1 ) – version 2.0
You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.

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

Created 4 years ago by shulmeHow-tos12 comments – viewed 58,264 times – ( +26 / -1 ) – 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 6 years ago by Antonio RamirezTutorials12 comments – viewed 53,631 times – ( +28 / -2 ) – 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 6 years ago by hasanaviHow-tos12 comments – viewed 46,676 times – ( +25 / -1 ) – 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())

RBAC Super Simple with Admin and User

Created 2 years ago by evercodeTutorials11 comments – viewed 60,602 times – ( +17 / -4 ) – version 2.0
One of the common requests I see in the forum is how to implement RBAC. While you can implement Yii 2's built-in RBAC, that might be too much for developers who are just starting with Yii 2 or have simpler needs. Sometimes you are looking for a fast solution and just want two flavors, user and admin. And even if you will eventually need more, you can use these methods as a starting point for developing your own features or move on to Yii 2's RBAC.

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

Created 4 years ago by softarkTutorials11 comments – viewed 40,234 times – ( +17 / -1 ) – 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 5 years ago by bingjie2680Tips11 comments – viewed 20,753 times – ( +6 / -7 ) – 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.