Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 51-60 of 353 result(s).

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

Updated about a year ago by sirin kHow-tos7 comments – viewed 31,368 times – ( +9 / -1 ) – 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

Displaying image in a CGridView column.

Updated about a year ago by sirin kHow-tos5 comments – viewed 59,920 times – ( +13 / -1 ) – 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

MailGun Api Wrapper to send emails

Updated about a year ago by VINAY Kr. SHARMAHow-tos0 comments – viewed 3,130 times – ( +1 ) – version 1.1
MailGun.php Class
tags: mailgun, email

`forceCopy` per Asset Bundle

Updated about a year ago by schmunkHow-tos0 comments – viewed 3,413 times – ( +1 ) – version 2.0
Note: The following document describes a possible workaround, if you have issues with asset publishing. For many people this will just work fine.

Searching and Sorting by Count of Related Items in CGridView

Updated about a year ago by softarkHow-tos13 comments – viewed 42,246 times – ( +31 ) – version 1.1
Let's say we have two models and relation between them:

BUM - Add Additional Info to a User

Updated about a year ago by AnibalHow-tos1 comment – viewed 16,012 times – ( +1 ) – version 1.1
How to add additional information to a user when using BUM extension?

How to create a custom exception and show it friendly with CJuiDialog

Updated about a year ago by Fábio SalesHow-tos0 comments – viewed 6,190 times – ( +1 ) – version 1.1
Sometimes we need to create our custom exception and show it to the end user through a friendly way . In this article, I'm showing how to do it using CJuidialog.

Use minified version of JqueryAsset, BootstrapAsset (and all default assets)

Updated about a year ago by robregonmHow-tos2 comments – viewed 9,278 times – ( +10 ) – version 2.0
By default, Yii 2.0 chooses to use the non-minified version of Jquery and Bootstrap files (CSS and JS). However, there's a simple way to indicate Yii to use the minified version.

How to provide a fallback or mapping for translation messages?

Updated about a year ago by schmunkHow-tos1 comment – viewed 5,386 times – ( +5 ) – version 1.1
Sometimes you want to use exisiting translations for locales, which do not directly match. An example would be a website targeting Germany (de_de), Austria (de_at) and Switzerland (de_ch, fr_ch, it_ch). Although you may have exisiting translations for German (de), French (fr) and Italian (it), there are problems using it directly.

CJuiDatePicker extended for more/better language support

Updated about a year ago by le_topHow-tos0 comments – viewed 3,526 times – ( +1 ) – version 1.1
The number of languages supported by the standard CJuiDatePicker implementation is limited and the language code to use is different from the application's language code. This Wiki shows how to improve on that.