Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 101-110 of 353 result(s).

Custom Autocomplete Display and Value Submission

Created 5 years ago by Antonio RamirezHow-tos6 comments – viewed 43,456 times – ( +14 / -1 ) – version 1.1
How many of us has wondered how to create an autocomplete that will display the names of a related models but do require the id of that selected name to be submitted for model creation/update?

yii2-app-advanced on single domain (Apache, Nginx)

Created about a year ago by MadAndHow-tos3 comments – viewed 36,981 times – ( +9 ) – version 2.0
If you develop rather complex applications with Yii2, you might already be familiar with yii2-app-advanced application template. Well, the template is awesome and provides high flexibility regarding code/configuration sharing among parts of an application.

Secure password hashing with bCrypt

Created 4 years ago by waitforitHow-tos3 comments – viewed 22,893 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 4 years ago by c@cbaHow-tos3 comments – viewed 11,933 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.

Additional form data with XUpload

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

PayPal Integration And IPN (Instant Payment Notification)

Created 3 years ago by yasenHow-tos3 comments – viewed 22,337 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 5 years ago by bgleeHow-tos3 comments – viewed 24,824 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 3 years ago by TrejderHow-tos1 comment – viewed 10,275 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.

Activate captcha after unsuccessful login attempts

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos22 comments – viewed 20,988 times – ( +13 / -1 ) – version 1.1
Like gmail, if you have tree or more unsuccessful login attemps a captcha appears

Database driven Cmenu

Created 4 years ago by twisted1919How-tos0 comments – viewed 24,901 times – ( +13 / -1 ) – version 1.1
This is a simple example that will give you a base for designing a database driven menu system that will use CMenu to be rendered.