Wiki

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

Turn Web HTML Into Newsletter

Created 5 months ago by yasenHow-tos0 comments – viewed 4,136 times – ( +7 )
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.

Using Pear Mail Mail_Mime and Mail_Queue

Created 2 years ago by LorenHow-tos2 comments – viewed 5,847 times – ( +7 )
Create a component (/protected/components/PearMail.php) Edit this as needed based on where you put the files from PEAR.

Implementing a Flat User Access System

Created 2 months ago by TrejderHow-tos0 comments – viewed 2,346 times – ( +7 )
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.

Yii registry, how to use it, does it exist at all?

Created about a year ago by dckurushinHow-tos2 comments – viewed 11,815 times – ( +7 )
From time to time people ask about registry...

Integrating ZF2 into Yii - use case demonstrated

Created 10 days ago by BoazHow-tos1 comment – viewed 1,428 times – ( +7 )
I needed to use a class from ZF2 in my Yii project. I've read probably all there is about this subject and still I needed lots of trial & errors to get it working, probably due to my lack of experience working with namepsaces and ZF2 in general. Also, the resources on the web are all partial, at best. Most simply refer to ZF1 where things are technically different. When I got it all working I decided to record my findings and that's how this article was born. The below recipe is what worked for me, accompanied by relevant comments. References: This article is partially based on this guide page. Be sure also to consult Zend Framework 2 documentation.
tags: ZF2, 3rd party

Secure password hashing with bCrypt

Created about a year ago by waitforitHow-tos3 comments – viewed 11,552 times – ( +6 )
In this article I will show you how to implement a secure password hashing mechanism in your Yii projects using a bCrypt class.

Radio Button List with enum values for column of type ENUM >+> incorporate into giix

Created about a year ago by pckabeerHow-tos1 comment – viewed 6,740 times – ( +6 )
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue'). We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a Radio Button List, which has the enum values as options. This is a rewrite of c@cba in the wiki article of enumDropdownListThe main code was contributed by zaccaria in the forum (see this post).

Additional form data with XUpload

Created 8 months ago by AsgarothHow-tos5 comments – viewed 11,224 times – ( +6 )
In this article you'll learn how to send additional form data when uploading files using XUpload widget

Using Grunt for deploying client scripts

Created 3 months ago by Chris83How-tos8 comments – viewed 3,785 times – ( +6 )
For a long time I have struggled to find a suitable tool for doing server tasks such as compiling LESS files, concatenating and minifying of JavaScript files and copying the minified JavaScript files. While most of these tasks can be done with Yii extensions I would still not recommend using them because it requires you to include these extensions in your project, and therefore also deploying them in your production environment.

Local time zones and locales

Created 2 years ago by Russell EnglandHow-tos9 comments – viewed 31,851 times – ( +12 / -2 )
Following on from international dates, I also wanted times in the local timezone and format. This was a little more tricky but I think I've got a solution. This is only really appropriate if you have an international app.