Wiki

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

Custom Autocomplete Display and Value Submission

Created 5 years ago by Antonio RamirezHow-tos6 comments – viewed 45,481 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-tos4 comments – viewed 50,410 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 5 years ago by waitforitHow-tos3 comments – viewed 23,599 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 5 years ago by c@cbaHow-tos3 comments – viewed 12,510 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 4 years ago by AsgarothHow-tos7 comments – viewed 35,880 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 4 years ago by yasenHow-tos3 comments – viewed 23,794 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 25,550 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.

How to create a Widget - Recent Comments widget

Created 2 years ago by Nisanth thulasiHow-tos3 comments – viewed 23,688 times – ( +9 ) – version all
Here's a simple way to create a Recent comments showing widget to be used in your templates. The idea is just to highlighting your blog's new comments.

Implementing a Flat User Access System

Created 3 years ago by TrejderHow-tos1 comment – viewed 10,860 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.

Database driven Cmenu

Created 5 years ago by twisted1919How-tos0 comments – viewed 25,577 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.