Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 111-120 of 314 result(s).

Image resize on the fly

Created about a year ago by TpoxaHow-tos4 comments – viewed 13,465 times – ( +4 ) – version 1.1
For example have folder with image resources which are public accessible
tags: yii, image-resize

Updating fields on a form with Ajax and Json

Created 3 years ago by Russell EnglandHow-tos4 comments – viewed 45,786 times – ( +12 / -1 ) – 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.

Using International Dates

Created 3 years ago by Russell EnglandHow-tos4 comments – viewed 29,382 times – ( +18 ) – version 1.1
I needed British (dd/mm/yyyy) formatted dates throughout my application but found it very difficult to find examples of how to do this - until I found this excellent forum post http://www.yiiframework.com/forum/index.php?/topic/3649-dealing-with-i18n-date-formats/

Sub-domains with different databases in Yii!

Created 3 years ago by jwerdHow-tos4 comments – viewed 12,225 times – ( +2 ) – version 1.1
Sub-domains with different databases in Yii!

Using updateAll and deleteAll with scopes

Created 3 months ago by le_topHow-tos4 comments – viewed 3,872 times – ( +5 ) – version 1.1
Using CActiveRecord->updateAll() and CActiveRecord->deleteAll() with scopes and criteria requires some tricks that are explained in this article. While findAll() , find() and some other methods use scopes automatically, updateAll() and deleteAll() do not.

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 3 months ago by ThePr0f3550rHow-tos4 comments – viewed 7,602 times – ( +8 ) – version 2.0
Yii2 comes with a charming twitter bootstrap version 3. But if it is less, then you can integrate with web templates that you like. One example is wonderfull template "adminLTE"
tags: yii2, theme, adminLTE

Alternative folder structure for a standard Yii app

Created about a year ago by TrejderHow-tos4 comments – viewed 8,427 times – ( +5 ) – version 1.1
I found a standard Yii app's protected folder structure nearly perfect. With a few simple moves and a little bit change to the code, I managed to bring it to the level, which I found as fully perfect. I want to share my point of view, in case someone would like to use this structure as well.

Client-side form validation using Twitter Bootstrap's Popovers

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

defaultScope

Created about a year ago by Gerhard LiebenbergHow-tos4 comments – viewed 11,957 times – ( +4 / -1 ) – version 1.1
This example includes a composite condition as well as an empty condition - as if you bypass or disable defaultScope without using resetScope().

How to implement form events

Created about a month ago by Antonio RamirezHow-tos4 comments – viewed 2,358 times – ( +5 ) – version 2.0
You have that, when a product is on development they can change its API anytime. This change is quite important though, its related on how to set the events of your form, for example, the useful beforeSubmit.
tags: yii2, forms, how to