Wiki

Articles in category "how-tos"X
Displaying 1-10 of 354 result(s).

How to resize an image proportionally

Created 3 months ago by AndroideLPHow-tos1 comment – viewed 3,633 times – ( +1 ) – version 2.0
Using the imagine extension is very simple Create this in your component:

How to make UrlManager createAbsoluteUrl work with sub-domains

Created 5 months ago by Wade ShulerHow-tos1 comment – viewed 5,814 times – ( +2 / -1 ) – version 2.0
Upon creating my Yii2 Members System, I have ran into a few snags along the way that forced me to extend and bend Yii2 to my will.

Interactive mode command-line command for Yii1

Created 10 months ago by TrejderHow-tos0 comments – viewed 7,096 times – ( -1 ) – version 1.1
For one of my projects I needed an interactive console command in Yii 1, i.e. the one that is gathering all information from user in an interactive mode (a serie of questions and answers displayed directly in the console), ignoring command-line arguments at all.

How to customize your grid columns visible and order by user themselves

Created 11 months ago by Scott_HuangHow-tos0 comments – viewed 5,572 times – ( +1 / -1 ) – version 1.1
Cusomized your grid columns by user themselves, allow user to hide/show columns or re-order the columns sequences.

Yii2: How to create/develop a new extension using Composer locally without version control or Git

Created about a year ago by Wade ShulerHow-tos0 comments – viewed 9,168 times – ( +3 / -1 ) – version 2.0
Using a version control system, like Git, is nice. However, when building an extension from scratch and loading it via Composer, it adds a lot of pain in the butt steps. You have to commit your changes, update composer to pull them over, then notice there is an error, fix, commit, update. repeat.. I don't want all my baby steps under Git. Sure, I could edit my commit history, but c'mon. Just let me code! I will put it under version control once I get a baseline created. This guide will show you how to setup your composer.json to load a local directory (everything inside, live). You make a change, save the file, refresh the page, boom.

A Single Page with a List and a Detail

Created about a year ago by softarkHow-tos1 comment – viewed 7,956 times – ( +4 / -1 ) – version 2.0
The CRUD generator of Gii has done a wonderful job for you, and you already have a list of items in the "index" page and a detailed view of a specified item in the "view" page.
tags: gridview, detail, ajax

How To: Custom Client Validation On Checkbox Toggle and Optional Input Field

Created about a year ago by Wade ShulerHow-tos0 comments – viewed 5,913 times – ( -1 ) – version 2.0
I just chased my tail around for a bit today. I got lost with setting the status of all inputs, and banging my head on why the "validate" function just wasn't working.

Yii2cdn Component

Created about a year ago by junaidatariHow-tos0 comments – viewed 10,136 times – ( +1 / -1 ) – version 2.0
Yii2cdn
tags: yii2, cdn, assets

Yii 2 Advanced Project Template using Shared Hosting

Created about a year ago by marciocamelloHow-tos0 comments – viewed 6,621 times – ( -1 ) – version 2.0
https://github.com/marciocamello/yii2-app-advanced-sh

MySQL migration environment

Created about a year ago by Fabrizio CaldarelliHow-tos0 comments – viewed 6,064 times – ( -1 ) – version 2.0
It can happen that you work in development environment and you make changes to database tables structures, adding tables, or changing fields.