Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 91-100 of 322 result(s).

Secure password hashing with bCrypt

Created 3 years ago by waitforitHow-tos3 comments – viewed 19,107 times – ( +9 ) – version 1.1
In this article I will show you how to implement a secure password hashing mechanism in your Yii projects using a bCrypt class.

How to extend CFormatter, add i18n support to booleanFormat and use it in CDetailView

Created 2 years ago by c@cbaHow-tos3 comments – viewed 9,673 times – ( +9 ) – version 1.1
As you know, the CDetailView widget displays details of a single model. If no formatting is specified, boolean values that are stored in the database as 0 and 1, are represented in the detail view as 0 and 1. If formatted as boolean, they are represented as 'No' and 'Yes'. We want to add i18n support, so that Yes and No appear in the current language.

How to hide index.php on Microsoft Windows Server with IIS7

Created 2 years ago by GiulianoHow-tos2 comments – viewed 11,824 times – ( +9 ) – version 1.1
I've seen lot of people struggling in finding a way to hide the script name when installing their Yii Application. In an Apache environment everything is well documented in this wiki article, but for those who are running their app on a Windows Server machine there are no hints.

How to implement cron in Yii 2

Created 8 months ago by hemcHow-tos8 comments – viewed 7,084 times – ( +9 ) – version 2.0
In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.
tags: cron, yii2, console

Additional form data with XUpload

Created 2 years ago by AsgarothHow-tos7 comments – viewed 27,984 times – ( +9 ) – version 1.1
In this article you'll learn how to send additional form data when uploading files using XUpload widget

How to use GridView with AJAX

Created 8 months ago by Antonio RamirezHow-tos1 comment – viewed 9,420 times – ( +9 ) – version 2.0
With the adoption of PJax on Yii2 things  have change quite a bit with GridView when it comes to work with them in AJAX mode. It will probably be confusing at the beginning, but then you will soon realize how powerful the new approach is.
tags: yii2, pjax, widget

PayPal Integration And IPN (Instant Payment Notification)

Created 2 years ago by yasenHow-tos3 comments – viewed 16,687 times – ( +9 ) – version 1.1
Had to implement PayPal payments for a client and would like to share part of my code with you. Because the tutorial will become too long, I'll leave some code to be done by you, e.g. creating models, controllers and db tables for products, orders.

Converting an Artisteer Theme to Yii

Created 3 years ago by bgleeHow-tos3 comments – viewed 21,670 times – ( +9 ) – version 1.1
There are two approaches to converting an Artisteer theme. The first is to simply copy an existing Artisteer – based Yii theme, overlay the CSS and images, then make any necessary tweaks to the layout files. This is undoubtedly the fastest route, but won't teach you as much as doing it from scratch. That's ok. Sometimes getting the job done is the top priority. The second approach is more general and will apply to some extent to other HTML templates that you may want to convert. I'll be covering the first approach in detail, while the second will be more of a general discussion.

Implementing a Flat User Access System

Created about a year ago by TrejderHow-tos1 comment – viewed 7,993 times – ( +9 ) – version 1.1
This article shows a quick and easy way to implement flat user access control system. Flat means, that user access is controlled by level only, which is solution exactly opposite to complex RBAC access systems.

How to hide /frontend/web in url addresses on apache

Created 2 months ago by raminiousHow-tos8 comments – viewed 27,571 times – ( +9 ) – version 2.0
There is an issue on Yii2 to redirecting / urls to /frontend/web. In other words we need a way to hidden /frontend/web from addresses. We will do this without changing Apache configuration and creating virtual host or setting document root (It's good for share hostings that we have not access to apache.conf)