Wiki

Sorted by commentsX
Displaying 571-580 of 777 result(s).

MigrateCommand class for multiple sites using one code base

Created 3 years ago by Hudson NguyenHow-tos1 comment – viewed 3,658 times – ( +1 ) – version 1.1
My CMS supports multiple sites using one code base therefore the db connection can only be configured by detecting the site's domain.

Editing, Deleting, and Viewing model data with the yii2-detail-view extension

Created 2 years ago by Kartik VTutorials1 comment – viewed 34,436 times – ( +37 / -1 ) – version 2.0
The yii2-detail-view extension offers you an easy way to EDIT and VIEW your model data, toggle these modes, and adds other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

A simple action for XUpload extension

Created 5 years ago by tydeas_drTips1 comment – viewed 15,168 times – ( +3 ) – version 1.1
All the basic functionality for an action used by the xupload extension. Check resources for the source code of this action
tags: tips, xupload, caction

Turn Web HTML Into Newsletter

Created 3 years ago by yasenHow-tos1 comment – viewed 10,378 times – ( +8 ) – version 1.1
These newsletters have always been hard to create as regular web HTML is not properly read by web email interfaces and email clients. I thought that the simplest solution would be to use a web page that would serve as a web version of the newsletter and turn it somehow into newsletter HTML.

Logout CSRF Protection

Created 5 years ago by Rodrigo CoelhoTutorials1 comment – viewed 17,409 times – ( +10 ) – version 1.1
CSRF is the acronymn for Cross-site request forgery. It is an attack which forces an end user to execute unwanted actions on a web application in which he/she is currently authenticated.

Using Bootstrap with LESS

Created 3 years ago by Chris83How-tos1 comment – viewed 42,915 times – ( +14 ) – version 1.1
I discovered Twitter Bootstrap almost two years ago. After trying it out for a while I fell in love with it. It didn't take long before I realized that it would be great to write an extension that allowed developers to start using Bootstrap in their Yii projects. One night I sat down and started writing what later became my now popular bootstrap extension. Now that the extension is quite widely used in the community I felt that it was time to write about how to use Bootstrap to its full potential. If you use the Bootstrap CSS files you're really missing out on some great features. After reading this article you'll be able to take full advantage of Bootstrap using LESS.

Limit a CGridView field to some preset length.

Created 3 years ago by le_topHow-tos1 comment – viewed 11,841 times – ( +13 ) – version 1.1
Sometimes text inside a gridview column is just too long. That's why I figured out a way to make the column smaller while still providing the information.

Yii 1.1: Cgridview: Use Special Variable $Data In The Options Of A Button (I.e. Evaluate Options Attribute)

Created 2 years ago by Louis GacTutorials1 comment – viewed 9,724 times – ( +6 ) – version 1.1
For each column of the CGridView, we can specify customized buttons : Customize Buttons in CGridWiew

Make the authentication more securely

Created 2 years ago by Kostas Apazidis (KonApaz)Tutorials1 comment – viewed 5,514 times – ( +3 ) – version 1.1
Suppose a hacker has an account of your website He could set the PHPSESSID to empty After of that He login in your system The PHPSESSID remains blank and user has already logged with this session

Custom Login Error Messages

Created 3 years ago by whoopassTutorials1 comment – viewed 34,672 times – ( +11 ) – version 1.1
The Yii Framework is very powerful and it provides a lot of functionality right from the pre-built webapp. One of the nice things that is already established for you as a developer is the Login authentication. While the default configuration simply sets it up to run against an array of hard coded usernames and passwords, the Yii Blog Tutorial provides a how to in connecting that login authentication method to a database so you can run your logins against the registered users. Talk about sweet deal.