Wiki

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

How to create a criteria condition for a multiple value text search i.e a "LIKE IN"

Created 4 years ago by tophHow-tos2 comments – viewed 39,234 times – ( +1 / -2 ) – version 1.1
This is a shortcut for adding a text search for multiple values i.e.

Displaying uploaded file from DB for update with FileInput widget

Created 3 years ago by Kartik VHow-tos3 comments – viewed 39,025 times – ( +39 / -6 ) – version 2.0
This is for folks who are using \kartik\widgets\FileInput to upload files from your client. How do you display an image for update after you have uploaded it to the server using the widget?

Drop down list with enum values for column of type ENUM >+> incorporate into giix

Created 6 years ago by c@cbaHow-tos4 comments – viewed 37,936 times – ( +14 / -1 ) – version 1.1
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 drop down list, which has the enum values as options. The main code was contributed by zaccaria in the forum (see this post).

Additional form data with XUpload

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

Client-side form validation using Twitter Bootstrap's Popovers

Created 4 years ago by TrejderHow-tos4 comments – viewed 37,845 times – ( +4 / -2 ) – version 1.1
This article explains how to easily turn standard text-line validation errors into beautifully and professionally looking Twitter Bootstrap's Popovers.

Run Yiic directly from your app without a shell

Created 6 years ago by jacmoeHow-tos6 comments – viewed 37,172 times – ( +18 / -1 ) – version 1.1
Sometimes it would be nice if we could run yiic from an action, for example a migrate database button in our admin panel. Or because you are on a host which doesn't have shell access. Or maybe you are not allowed run popen or exec.

Storing your images in your table's blob field and displaying that stored images.

Created 5 years ago by sirin kHow-tos7 comments – viewed 35,462 times – ( +9 / -2 ) – version 1.1
He im giving you a very simple example ie how you can store an image to your blob field in a table.Hope you already familiar with the normal image upload.
tags: blob, image

Simple authorization system

Created 6 years ago by GustavoHow-tos1 comment – viewed 35,459 times – ( +16 / -1 ) – version 1.1
How to create a simple (non-RBAC) authorization system

Yii CGridView add custom button

Created 4 years ago by Arockia Johnson SRHow-tos1 comment – viewed 35,370 times – ( +6 / -1 ) – version 1.1
Hi buddies !, This tutorial shows about how to add a custom button with your own icon for your CGridView of Yii framework

How to generate Yii-like Documentation

Created 6 years ago by AsgarothHow-tos9 comments – viewed 35,273 times – ( +46 / -1 ) – version 1.1
Something a good application cant miss is documentation, and what would be better than some nice formatted HTML documentation that can be auto-generated from your code, we know several tools that already do this like phpDocumentor, but today we are introducing Yii Docs Generator which is a modification of the code that Yii itself uses to generate its documentation, thank phpnode for this wonderful work.
tags: doc