Wiki

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

Load the Yii-Bootstrap Extension on Specific Actions

Created 4 years ago by chuntleyHow-tos5 comments – viewed 20,557 times – ( +10 / -1 ) – version 1.1
A big problem I've hit with the Yii-Bootstrap extension is that all AJAX requests are initializing Bootstrap because of preload. This is a huge waste of resources, especially when using AJAX-based file uploaders that split the file into chunks. Large file uploads using that method could be initializing bootstrap hundreds of times.
tags: bootstrap, filter

Integrating ZF2 into Yii - use case demonstrated

Created 4 years ago by BoazHow-tos2 comments – viewed 8,243 times – ( +10 / -1 ) – version 2.0
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.

Database driven Cmenu

Created 5 years ago by twisted1919How-tos0 comments – viewed 26,095 times – ( +13 / -2 ) – 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.

Displaying image in a CGridView column.

Created 5 years ago by sirin kHow-tos5 comments – viewed 62,783 times – ( +13 / -2 ) – version 1.1
This is a simple example of how we can display images in CGridviews.Imagine that you have an image field in your table ie either a location field or a blob type field used to store the images.
tags: CGridView, image

Updating fields on a form with Ajax and Json

Created 6 years ago by Russell EnglandHow-tos4 comments – viewed 57,043 times – ( +12 / -2 ) – version 1.1
I'm developing a website that has an option to look up a car's registration number via SOAP and return additional details such as make, model, colour etc.

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

Created 2 years ago by MadAndHow-tos4 comments – viewed 59,769 times – ( +9 / -1 ) – 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 24,153 times – ( +9 / -1 ) – 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,869 times – ( +9 / -1 ) – 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 36,662 times – ( +9 / -1 ) – 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 24,659 times – ( +9 / -1 ) – 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.