Wiki

Sorted by viewsX
Displaying 571-580 of 777 result(s).

Managing a star rating with the StarRating widget in Yii 2

Created 2 years ago by Kartik VHow-tos4 comments – viewed 9,490 times – ( +38 / -5 ) – 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.

mysql performance tip

Created 4 years ago by sirin kTips2 comments – viewed 9,411 times – ( +2 / -1 ) – version 1.1
When we are doing an insert of huge no.of rows into an SQL table ,Normally we will try to write separate insert quries this may lead us to a long duration of execution time and we can increase the speed of executing SQL quries by adding all the rows into a single insert query.
tags: mysql

Using phpseclib with Yii

Created 3 years ago by nkdHow-tos8 comments – viewed 9,408 times – ( +2 ) – version 1.1
I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does not requite mcrypt to be installed in the phpserver!
tags: security

model rules depended by user roles-permissions

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 9,401 times – ( +3 )
This is a reference about model validators and user roles. In many cases we want model validators to applied only for some privileged users or not

Creating HTML code using Jamboree Panels

Created 3 years ago by bluyellTutorials0 comments – viewed 9,380 times – ( +2 / -2 ) – version 1.1

Handling recursive deletion in Yii

Created 3 years ago by JamesBarnsleyHow-tos3 comments – viewed 9,350 times – ( +3 ) – version 1.1
I www.jamesbarnsley.com was tasked to find a way to do recursive deletion in Yii. As I asked other developers and looked around the internet the usual answers all came up, use a plugin or use cascade delete at the DB level, but I did not want to do either of these.

Use minified version of JqueryAsset, BootstrapAsset (and all default assets)

Created about a year ago by robregonmHow-tos2 comments – viewed 9,338 times – ( +10 ) – version 2.0
By default, Yii 2.0 chooses to use the non-minified version of Jquery and Bootstrap files (CSS and JS). However, there's a simple way to indicate Yii to use the minified version.

Understanding series articles

Created 4 years ago by GOshaTips0 comments – viewed 9,322 times – ( +16 ) – version 1.1
Here are all wiki articles from "Understanding" series by Yii wiki contributors:

Serial Numbers (item counts) in GridView

Created 3 years ago by PeRoChAkHow-tos3 comments – viewed 9,215 times – ( +1 ) – version 1.1
Sometime we need to display numbers of items per page with their counting as a serial number.

two or more different collected data in one CGridView

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos2 comments – viewed 9,142 times – ( +3 / -1 ) – version 1.1
Assume that you have teachers and students model.