Wiki

Sorted by commentsX
Displaying 431-440 of 753 result(s).

Create custom button button with AJAX function in CGridView

Created 2 years ago by nkdHow-tos2 comments – viewed 43,655 times – ( +18 ) – version 1.1
CButtonColumn in CGridView can be customised to include user built buttons. To learn a great deal about including custom buttons, read this excellent wiki. This tutorial will show how to call an action from one custom button using AJAX instead of regular GET calls.

Localized version of CFormatter

Created 2 years ago by marcovtwoutHow-tos2 comments – viewed 4,335 times – ( +3 ) – version 1.1
Since Yii 1.1.14, a CLocalizedFormatter is available.

FORM with GET method causes repeated stacking of URL Parameters

Created about a year ago by Kartik VTips2 comments – viewed 9,687 times – ( +39 / -4 ) – version all
You are using an ActiveForm in yii (both v1.x or 2), with a GET method like below:

How to use Smarty renderer in Yii

Created 4 years ago by dongbetaHow-tos2 comments – viewed 17,945 times – ( +4 ) – version 1.1
At first, create a class named SmartyRenderer under application/components or any directory you want.
tags: smarty, renderer

CGridView and AjaxForm Connect

Created 4 years ago by PinkBrainPlanHow-tos2 comments – viewed 19,433 times – ( +1 ) – version 1.1
As I'm new to the framework (2 weeks) - I tried to build a functionallity I already use a lot in my old framework (PRADO). This means combining a GridView with a form. And this in one page, what allows you to select a record from the grid and view the values in the same page without jumping to a new page.
tags: Ajax, Form, CGridView

Using your own forked version of extensions with composer

Created about a year ago by Kartik VTutorials2 comments – viewed 3,555 times – ( +39 / -4 ) – version 2.0
So you want to use a fork of any existing vendor extension with your Yii 2 install and use the fork, instead of original source. This does not need you to push any update or register your package on packagist.org. You are recommended to follow the approach below:

Displaying uploaded file from DB for update with FileInput widget

Created about a year ago by Kartik VHow-tos2 comments – viewed 13,819 times – ( +39 / -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?

Multilanguage Lorem Ipsum Text Generator

Created 2 years ago by yasenHow-tos2 comments – viewed 5,518 times – ( +2 ) – version 1.1
Taking futher the idea from Piotr MaseĊ‚kowski - http://www.yiiframework.com/extension/elipsum/ here's how to generate multilanguage Lorem Ipsum text. This example uses English and Bulgarian sample paragraphs. Create a class in /protected/components/LoremIpsum.php. Wall of text incoming wohoo...

To configure Yii path in Windows platform

Created 4 years ago by CodaTutorials2 comments – viewed 34,489 times – ( +3 / -6 ) – version 1.1
I can see many questions regarding configuring the path using Windows OS. I could hardly get the right information about it. The cook book has defined for Linux. So I would like to share my idea on it. To configure the Yii path using Windows OS,