Wiki

Displaying 11-20 of 785 result(s).

A universal model attribute for its synthetic representation

Created 6 months ago by Alexandre RodichevskiTips2 comments – viewed 3,365 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

Created 6 months ago by Wade ShulerHow-tos0 comments – viewed 7,236 times – ( +2 ) – 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 7 months ago by softarkHow-tos1 comment – viewed 6,388 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

Created 7 months ago by Wade ShulerHow-tos0 comments – viewed 4,341 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.

Boost composer-asset-plugin update speed

Created 7 months ago by schmunkTips0 comments – viewed 6,122 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.

Yii 1.1.17 Ubuntu AutoInstall Bash Script

Created 9 months ago by PreacherOthers0 comments – viewed 6,086 times – version 1.1
Just thought I would share this bash script I wrote to help automate a base install of YII on an Ubuntu server. This script does the following:

Yii2cdn Component

Created 10 months ago by junaidatariHow-tos0 comments – viewed 8,834 times – ( +1 ) – version 2.0
Yii2cdn
tags: yii2, cdn, assets

Background task with Ajax

Created 11 months ago by Alexandre RodichevskiTutorials0 comments – viewed 10,547 times – version 1.1
Web applications normally execute almost immediately the user's requests. But some requests, like statistical reports, take long time to execute.

Yii 2 Advanced Project Template using Shared Hosting

Created 11 months ago by marciocamelloHow-tos0 comments – viewed 5,860 times – version 2.0
https://github.com/marciocamello/yii2-app-advanced-sh

How to change GridView delete confirmation message for specific controllers only?

Created 12 months ago by AlaFalakiTips1 comment – viewed 10,269 times – ( +2 ) – version 2.0
Hello, If you want to give extra attention for some specific delete actions and you don't want to override whole yii.confirm JS method here is what you can do: (I've only put the ActionColumn part of the GridView here to just give you the idea)