Wiki

Sorted by date (updated)X
Displaying 1-10 of 777 result(s).

Installation guide: Yii-2 advanced template with RBAC system

Updated 7 days ago by Sherin JoseTutorials0 comments – viewed 1,638 times – ( +8 ) – version 2.0
Welcome, all of you !
tags: install, yii2, rbac

A universal model attribute for its synthetic representation

Updated 9 days ago by Alexandre RodichevskiTips2 comments – viewed 992 times – version 2.0
It is convenient to use the same identification attribute, say info, in all of the active records of your application. It should be a virtual read-only attribute defined by a getter method, its label being the model name.

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

Updated 16 days ago by Wade ShulerHow-tos0 comments – viewed 2,282 times – ( +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.

Yii Related Sites

Updated about a month ago by Ahmed KhanOthers4 comments – viewed 48,915 times – ( +34 ) – version 1.1
This is a list of blogs, off-site tutorials and other resources about Yii.

i18n All-in-one format and timezone conversions for date, time, timestamp and datetime.

Updated about a month ago by Gerhard LiebenbergHow-tos3 comments – viewed 18,879 times – ( +8 / -1 ) – version 1.1
Countries sometimes change their laws pertaining to time zones and daylight saving times. This means that GMT+2 can be a different time this August compared to last August! However, by using php's DateTime class (instead of timestamps), we can do both "format" and "time zone" conversions on a single DateTime object (only 2 lines of code) for date, time, timestamp and datetime types - while php takes care of nightmares such as current and historical time zones and daylight saving times.

Boost composer-asset-plugin update speed

Updated about a month ago by samdarkTips0 comments – viewed 3,867 times – ( +5 ) – version 2.0
If you're using a lot of bower and npm assets with Yii 2.0 you might encounter long running composer update tasks.

How to install Yii 2 advanced on a shared hosting environment

Updated about a month ago by oligalmaHow-tos1 comment – viewed 9,089 times – ( +3 ) – version 2.0
I've read many comments that it's not possible to install Yii 2 advanced on a shared hosting environment, as it has two webroots. This is partially true.

A Single Page with a List and a Detail

Updated about a month ago by Patrick JonesHow-tos1 comment – viewed 3,581 times – ( +3 ) – 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

Updated about a month ago by Wade ShulerHow-tos0 comments – viewed 2,326 times – 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.

How to create/update a model with its related items using Listbox or CheckboxList

Updated 2 months ago by softarkTutorials1 comment – viewed 7,353 times – ( +3 ) – version 2.0
Assume we have many categories and many posts.