Wiki

Sorted by ratingX
Displaying 161-170 of 786 result(s).

Creating a CSS Driven Drop Down Menu using CMenu

Created 6 years ago by blindMoeHow-tos10 comments – viewed 88,686 times – ( +22 / -2 ) – version 1.1
CMenu offers great functionality and the ability to customize just about every aspect of the output. There are many times when I need to create a drop down menu or simply modify the look to make the designers happy. Because this seems to be a common task for me, I figured I would share my code to create a very simple drop down menu that other people could use.

What to do when composer fails to update your vendor packages?

Created 3 years ago by Kartik VTutorials0 comments – viewed 20,581 times – ( +39 / -6 ) – version 2.0
Have you faced some of these problems when using composer with your Yii 2 installation?

Displaying uploaded file from DB for update with FileInput widget

Created 3 years ago by Kartik VHow-tos3 comments – viewed 37,311 times – ( +39 / -6 ) – version 2.0
This is for folks who are using \kartik\widgets\FileInput to upload files from your client. How do you display an image for update after you have uploaded it to the server using the widget?

Managing a star rating with the StarRating widget in Yii 2

Created 3 years ago by Kartik VHow-tos4 comments – viewed 12,641 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.

Kickstart development with Yii-App

Created 4 years ago by Chris83How-tos25 comments – viewed 32,508 times – ( +21 / -2 ) – version 1.1
I recently created a project called Yii-App on GitHub to kickstart my development of smaller Yii applications. The main goal of the project is to provide a ready-to-use application template that includes my bootstrap extension and many other useful extensions. After reading this article you will be able to use this project as a starting point for all of your Yii projects.

Understanding series articles

Created 6 years ago by GOshaTips0 comments – viewed 10,004 times – ( +16 / -1 ) – version 1.1
Here are all wiki articles from "Understanding" series by Yii wiki contributors:

Simple authorization system

Created 6 years ago by GustavoHow-tos1 comment – viewed 35,096 times – ( +16 / -1 ) – version 1.1
How to create a simple (non-RBAC) authorization system

1:n relations sometimes require CDbCriteria.together

Created 5 years ago by fsbTips5 comments – viewed 39,953 times – ( +16 / -1 ) – version 1.1
There are situations in which Active Record will generate nonsense queries from what a nieve Yii user might think is reasonable code. One such situation is a CActiveDataProvider using CDbCriteria to get data from parent and 1:n child table with a condition on the child table.

How to avoid multiple Ajax Request

Created 6 years ago by nickcvHow-tos26 comments – viewed 55,667 times – ( +25 / -3 ) – version 1.1
CHtml::ajaxLink(), CHtml::ajaxSubmitButton() and similar methods are great, but if they are located inside a portion of the page that is already loaded via ajax something bad will happen, something you may even not notice if you are not using tools like firebugs: the sent ajax requests will multiply themselves.

Managing your nested dropdown dependency with DepDrop widget

Created 3 years ago by Kartik VTutorials6 comments – viewed 26,461 times – ( +37 / -6 ) – version 2.0
If you are coming over to Yii 2 from Yii 1.x, you may have already read this useful wiki for creating dependent dropdowns. You can use a similar approach in Yii 2 to do the same. But if you are looking at a prebuilt solution that helps you manage it easier, read along.