Wiki

Displaying 1-10 of 782 result(s).

Interactive mode command-line command for Yii1

Created 18 days ago by TrejderHow-tos0 comments – viewed 1,278 times – 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.

REST API and null values in XML

Created 29 days ago by marko60Tips0 comments – viewed 2,064 times – version 2.0
I have been working on a REST API using the excellent tools provided by Yii2. My problem was that I have to differentiate between empty values and null values. In other words, <elem></elem> is different from null as it represents an empty string. Also, although some use <elem/> to represent a null value it should still be interpreted as an empty string. In other cases, the absence of the element is taken to represent a null value, but this may create problem with some parsers.
tags: REST, XML, null

Optimize Scenarios for yii2

Created about a month ago by AndroideLPTutorials0 comments – viewed 2,889 times – version 2.0
Working with scenarios, with models that can receive many modifications in their rules or structures as development evolves, can create disruptions in the rescue process.

Yii2 GridView Sorting and Searching with a Junction Table Column(Many to Many Relationship)

Created about a month ago by Amjad KhanTutorials0 comments – viewed 2,763 times – ( +1 ) – version 2.0
Following is the table structure

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

Created about a month ago by Scott_HuangHow-tos0 comments – viewed 2,659 times – ( +1 ) – version 1.1
Cusomized your grid columns by user themselves, allow user to hide/show columns or re-order the columns sequences.

How to make bootstrap tabs remain active/selected after navigating to different web pages.

Created 2 months ago by emraldTutorials4 comments – viewed 3,008 times – version 2.0
Bootstrap tabs gets unselected/inactive when user navigates to other page and comes back. How to make bootstrap tabs remain active/selected after navigating to different web pages.

Installation guide: Yii-2 advanced template with RBAC system

Created 3 months ago by Sherin JoseTutorials0 comments – viewed 10,460 times – ( +10 ) – version 2.0
Welcome, all of you !
tags: install, yii2, rbac

A universal model attribute for its synthetic representation

Created 3 months ago by Alexandre RodichevskiTips2 comments – viewed 3,029 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 3 months ago by Wade ShulerHow-tos0 comments – viewed 6,182 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 5 months ago by softarkHow-tos1 comment – viewed 5,851 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