Wiki

Sorted by viewsX
Displaying 541-550 of 784 result(s).

Getting nulls from database instead of empty strings

Created 6 years ago by samdarkTips2 comments – viewed 12,108 times – ( +13 / -1 ) – version 1.1
To get null from database instead of empty strings you need to set up your DB connection as follows:
tags: database, null

Publish yii webapp using Git push

Created 4 years ago by rootbearHow-tos6 comments – viewed 11,969 times – ( +2 / -1 ) – version 1.1
I did not invent this instructions, I read it somewhere and re-organized in my way as I was trying and it works for me;
tags: git

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

Created about a year ago by softarkTutorials1 comment – viewed 11,912 times – ( +4 / -1 ) – version 2.0
Assume we have many categories and many posts.

Upload Files to Rackspace Cloud Files CDN

Created 4 years ago by StephenMiracleTutorials0 comments – viewed 11,889 times – ( +2 / -1 ) – version 1.1
** I actually made this into an extension for easier use. You can view the extension: http://www.yiiframework.com/extension/rackspaceconnect/

YII2 : simple language Switcher Widget

Created 2 years ago by phunsanitTutorials0 comments – viewed 11,887 times – ( +1 / -1 ) – version 2.0
ภาษาไทย YII 2 Widget เปลี่ยนภาษา

Yii code completion and calltips in Komodo Edit

Created 6 years ago by viterTips1 comment – viewed 11,881 times – ( +6 / -1 ) – version 1.1
My favourite editor is Komodo Edit (free and crossplatform) and I use it for my everyday coding work. Just recently I found out how to make it help me to work with Yii. :) So follow these steps:
tags: Komodo Edit

Building Page Specific Menus using CMenu

Created 3 years ago by mistrybHow-tos1 comment – viewed 11,829 times – ( -1 ) – 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

How to obtain a grammatically correct translation of the model name in giix-generated view files

Created 5 years ago by c@cbaHow-tos0 comments – viewed 11,747 times – ( +4 / -1 ) – version 1.1
The giix code generator has out of the box i18n support for model names and attribute labels (besides other cool features > check it out!) . But I want to factor in not only the plural form, but also the grammatical cases (especially the accusative) while translating 'Manage Objects', 'Create Object', 'Edit Object' etc.

Extending CJuiDialog

Created 4 years ago by dstudioHow-tos0 comments – viewed 11,703 times – ( +2 / -3 ) – version 1.1
Sometimes you have CJuiDialog with different content but same buttons (or width, height). If you don't want to repeat yourself this is a great solution:

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

Created 5 years ago by pligorHow-tos2 comments – viewed 11,588 times – ( +1 / -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: