Wiki

Sorted by viewsX
Displaying 551-560 of 786 result(s).

Upload Files to Rackspace Cloud Files CDN

Created 4 years ago by StephenMiracleTutorials0 comments – viewed 12,587 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/

Extending CJuiDialog

Created 5 years ago by dstudioHow-tos0 comments – viewed 12,550 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:

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 12,529 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.

Select2 Infinite Scroll With Remote Data in Yii

Created 3 years ago by amanationHow-tos5 comments – viewed 12,504 times – ( +4 / -1 ) – version 1.1
I was able to set up the infinite scroll of select2 in Yii. I am glad to share it with you. The demo and source code can be found here. However, select2 for Yii can be found here which uses a widget.

Building Page Specific Menus using CMenu

Created 4 years ago by mistrybHow-tos1 comment – viewed 12,444 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

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

Created 6 years ago by pligorHow-tos2 comments – viewed 12,280 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:

How to avoid a database update if the ActiveRecord was not modified

Created 3 years ago by tomvdpHow-tos0 comments – viewed 12,269 times – ( +1 / -1 ) – version 1.1
The classic Yii way for doing an update action is as follows:

Role Management

Created 3 years ago by Dency G BHow-tos0 comments – viewed 12,259 times – ( +3 / -1 ) – version 2.0
Implementing a role based access control is a very easy process and you can even load your roles from the database if you want.
tags: rbac, yii2

Yii code completion and calltips in Komodo Edit

Created 7 years ago by viterTips1 comment – viewed 12,195 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