Wiki

Sorted by viewsX
Displaying 481-490 of 738 result(s).

Displaying uploaded file from DB for update with FileInput widget

Created 10 months ago by Kartik VHow-tos0 comments – viewed 8,710 times – ( +38 / -5 ) – 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?

Using the jamselect widget with min and max values

Created 4 years ago by got 2 doodleHow-tos0 comments – viewed 8,683 times – ( +2 ) – version 1.1
I needed to have users select from a list of keywords, in this example they must select at least two keywords but they cannot select more than six.

Yii HMVC

Created about a year ago by ezekielnoobHow-tos6 comments – viewed 8,642 times – ( +5 / -1 )
Right now we can use widgets + action provider like in this tutorial: How to use a Widget as an Action Provider

CGridView Date Range Without Cookies or Session (External Filtering)

Created about a year ago by ezekielnoobHow-tos6 comments – viewed 8,611 times – ( +5 )
Here's a tutorial on how to create a CGridView with external date filters the trick is to create hidden columns within the CGridView Filters something like in the example below:

An important tip when you are using CArrayDataProvider.

Created 2 years ago by sirin kTips0 comments – viewed 8,565 times – ( +8 / -1 ) – version 1.1
Yii ‘s CArrayDataProvider is very helpful to display model relation data's directly on it.But it is truely a confusing one because by default it will assume a table field named “id” as primary key for its pagination purpose and what if you dont have field named “id” as primary key on your table? so its truely confusing and if you tried to display without an “id” field on ur table you will get an error like “yourmodel.id is not defined”.

Using sub query for doubletts

Created 2 years ago by mbTips3 comments – viewed 8,555 times – ( +1 ) – version 1.1
find doubletts by db fields. in this example i will check doublets for 3 tabelfields (col1,col2,col3). so i will get a subquery with the condition, select and grouping of the tablefields. the having with COUNT() > 1 means: find all records more then one result.

Implementing a Flat User Access System

Created about a year ago by TrejderHow-tos1 comment – viewed 8,459 times – ( +9 ) – version 1.1
This article shows a quick and easy way to implement flat user access control system. Flat means, that user access is controlled by level only, which is solution exactly opposite to complex RBAC access systems.

Publish yii webapp using Git push

Created 2 years ago by rootbearHow-tos6 comments – viewed 8,443 times – ( +2 ) – 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

Handling tabular data loading and validation in Yii 2

Created 10 months ago by Kartik VTutorials3 comments – viewed 8,415 times – ( +40 / -5 ) – version 2.0
How do you read and handle tabular data submission via form in Yii framework 2.0? Sometimes we want to collect user input in a batch mode. That is, the user can enter the information for multiple model instances and submit them all at once. We call this tabular input because the input fields are often presented in an HTML table.

Using recaptchlib in your projects

Created 4 years ago by Antonio RamirezHow-tos2 comments – viewed 8,379 times – ( +5 ) – version 1.1
It is good when someone writes extensions for us but trust, sometimes we forget about other approaches that, if we know the library, we shouldn't forget.