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

Write & use a custom Component in Yii2.0

Updated about a year ago by sirin kHow-tos4 comments – viewed 49,102 times – ( +18 ) – version 2.0
This is a simple example in Yii2.0 to understand how you can write a custom component and use it inside your app.(basic template)

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,612 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 60,327 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,233 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,527 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,590 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,338 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,383 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,723 times – ( +11 ) – 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,444 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.