Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 141-150 of 341 result(s).

How to implement form events

Created 8 months ago by Antonio RamirezHow-tos4 comments – viewed 4,752 times – ( +6 ) – version 2.0
You have that, when a product is on development they can change its API anytime. This change is quite important though, its related on how to set the events of your form, for example, the useful beforeSubmit.
tags: yii2, forms, how to

How to use Multiple instances of the same model in the same form

Created 2 years ago by kiran sharmaHow-tos21 comments – viewed 37,521 times – ( +22 / -6 ) – version 1.1
When i had created this functionality then i found some difficulties and not got much idea from wiki and forums. so, i think this will be useful for newbie users and save time of other developers when create related functionality. I refer Collecting Tabular Input tutorial but not got clear idea for create/update.

Storing your images in your table's blob field and displaying that stored images.

Created 3 years ago by sirin kHow-tos7 comments – viewed 25,284 times – ( +9 / -1 ) – version 1.1
He im giving you a very simple example ie how you can store an image to your blob field in a table.Hope you already familiar with the normal image upload.
tags: blob, image

Using a CDbDataReader (sql query result) in a zii widget (such as CGridView or CListView)

Created 3 years ago by Revelis Luc BonninHow-tos2 comments – viewed 23,150 times – ( +9 / -1 ) – version 1.1
If in your application you have to proceed to a complex SQL query that is not associated to a model, you will use CDbDataReader like it is described in the Yii documentation. An example could be

How to include Javascript, CSS

Created about a year ago by InterboyHow-tos4 comments – viewed 324,794 times – ( +11 / -2 ) – version 1.1
There are many methods that we can include javascript, css into your Yii App. Today I will demonstrate three simple and helpul methods.

Pjax on ActiveForm and GridView - Yii2

Created 6 months ago by SreenadhHow-tos3 comments – viewed 16,599 times – ( +5 ) – version 2.0
Here is a example on how to use Pjax with GridView (yii\grid\GridView) and ActiveForm (yii\widgets\ActiveForm) widgets in Yii2.

How to avoid rendering entire page on AJAX call for CGridView and CListView

Created about a year ago by VINAY Kr. SHARMAHow-tos6 comments – viewed 18,364 times – ( +5 )
CGridView and CListView are great widget to populate records and also provides features like ajax update, column sort, search, drop-down filter, ajax content load and many more...

using editors of yiibooster - fix issues - configuration

Created about a year ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 5,876 times – ( +5 ) – version 1.1
if you have use the yiibooster extension, you have definitely used the amazing redactor, html5 and ckEditor editors.

how to make a dynamic progress bar to show the percentage or status

Created about a year ago by hehbhehbHow-tos1 comment – viewed 18,965 times – ( +5 ) – version 1.1
Yii have a CJuiProgressBar, but it is static. If we want a dynamic progress bar to show the percentage or status, we have to do more things. I make it successfully and am glad to share it with you.

CGridView Date Range Without Cookies or Session (External Filtering)

Created about a year ago by ezekielnoobHow-tos6 comments – viewed 9,142 times – ( +5 ) – version 1.1
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: