Wiki

Sorted by viewsX
Displaying 481-490 of 750 result(s).

Application-driven database with CDbMigration and an extended CActiveRecord

Created 3 years ago by Tudor IlisoiOthers0 comments – viewed 9,176 times – ( +8 ) – version 1.1
This is an incipient implementation of application-driven database with Yii.
tags: database, model

ISA hierarchy of tables inside a database and how to implement a single form

Created 3 years ago by pligorHow-tos2 comments – viewed 9,159 times – ( +1 ) – version 1.1
Please consider the following Dear software engineers imagine I have a simple ISA hierarchy: parent A with children B and C. So let's say we have the corresponding tables named "a", "b", "c" and (created with the help of the gii model creator) the classes A, B, C The following is a screenshot from MySQL workbench:

New Relic Error Alert with Yii

Created about a year ago by simon604Tips2 comments – viewed 9,125 times – ( +6 ) – version 1.1
Introduction

Shrink Yii, help your IDE and speed up copying

Created 3 years ago by dckurushinTips4 comments – viewed 9,118 times – ( +10 / -9 ) – version 1.1
In this little tip, I will help you to cut Yii size for about half

Building Page Specific Menus using CMenu

Created about a year ago by mistrybHow-tos1 comment – viewed 9,100 times – version 1.1
The Yii Framework provides a sweet functionality that allows you to easily create page specific menus. What does this mean? This allows you to create one layout or CSS styling for your menu, and when each page is loaded, a new set of menu items is loaded in. This is useful for context specific sidebars within your application.
tags: CMenu

Rendering a view file in a console application

Created 3 years ago by TompiHow-tos1 comment – viewed 9,080 times – ( +4 / -2 ) – version 1.1
When someone want to send formatted HTML mails from a console application she/he will probably come across the problem of rendering view files.

BUM - Add Additional Info to a User

Created about a year ago by fireflyHow-tos1 comment – viewed 9,041 times – ( +1 ) – version 1.1
How to add additional information to a user when using BUM extension?

Using sub query for doubletts

Created 2 years ago by mbTips3 comments – viewed 8,975 times – ( +1 ) – version 1.1
find doubletts by db fields. in this example i will check doublets for 3 tabelfields (col1,col2,col3). so i will get a subquery with the condition, select and grouping of the tablefields. the having with COUNT() > 1 means: find all records more then one result.

Step by step for how to full export Yii2 grid to excel

Created 7 months ago by Scott_HuangTips2 comments – viewed 8,893 times – version 2.0
We will leverage Yii2-excelview widget. So, first of all is install Yii2-excelview:

An important tip when you are using CArrayDataProvider.

Created 2 years ago by sirin kTips0 comments – viewed 8,884 times – ( +8 / -1 ) – version 1.1
Yii ‘s CArrayDataProvider is very helpful to display model relation data's directly on it.But it is truely a confusing one because by default it will assume a table field named “id” as primary key for its pagination purpose and what if you dont have field named “id” as primary key on your table? so its truely confusing and if you tried to display without an “id” field on ur table you will get an error like “yourmodel.id is not defined”.