Wiki

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

How to show Image view after upload and delete view image using eajaxupload extension

Created 3 years ago by Ankit ModiHow-tos0 comments – viewed 12,015 times – ( -2 ) – version all
Hi Friends, In this tutorial you can use the eajaxupload-extension ,

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,011 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 5 years ago by dstudioHow-tos0 comments – viewed 11,983 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:

Managing a star rating with the StarRating widget in Yii 2

Created 3 years ago by Kartik VHow-tos4 comments – viewed 11,981 times – ( +38 / -6 ) – version 2.0
In Yii 1.x, there was a built in widget CStarRating based on the jquery star rating plugin. There exists no prebuilt solution in Yii2, however the same concepts can be extended using any jquery plugin.

Yii code completion and calltips in Komodo Edit

Created 6 years ago by viterTips1 comment – viewed 11,972 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

Select2 Infinite Scroll With Remote Data in Yii

Created 3 years ago by amanationHow-tos5 comments – viewed 11,876 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.

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

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

Directory independent extensions

Created 6 years ago by GOshaTips3 comments – viewed 11,688 times – ( +16 / -2 ) – version 1.1
Many people want to use downloaded extensions in their own way. As for me most of the extensions require me to correct Yii::import() instructions inside their source code. All these extensions are directory dependent. To avoid the situation described above, I suggest to implement pseudo-anonymous aliases:

Using Pear Mail Mail_Mime and Mail_Queue

Created 6 years ago by LorenHow-tos2 comments – viewed 11,686 times – ( +7 / -1 ) – version 1.1
Create a component (/protected/components/PearMail.php) Edit this as needed based on where you put the files from PEAR.