Wiki

Sorted by commentsX
Displaying 421-430 of 741 result(s).

How to use GridView with AJAX

Created 11 months ago by Antonio RamirezHow-tos2 comments – viewed 14,868 times – ( +11 ) – version 2.0
With the adoption of PJax on Yii2 things  have change quite a bit with GridView when it comes to work with them in AJAX mode. It will probably be confusing at the beginning, but then you will soon realize how powerful the new approach is.
tags: yii2, pjax, widget

Localized version of CFormatter

Created 2 years ago by marcovtwoutHow-tos2 comments – viewed 4,054 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 11 months ago by Kartik VTips2 comments – viewed 6,080 times – ( +38 / -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,376 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 18,894 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

Multilanguage Lorem Ipsum Text Generator

Created 2 years ago by yasenHow-tos2 comments – viewed 5,084 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 3 years ago by CodaTutorials2 comments – viewed 32,173 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,

An easy way to display a success page using flash messages

Created 3 years ago by qiangTips2 comments – viewed 28,352 times – ( +26 ) – version 1.1
We often need to display a success page after the user has submitted a form without problem. We may show some welcome message after a user registers a new account. There are many ways to implement this workflow. In this article, I will explain a method that exploits flash messages.

Check online users / set specific user offline

Created 10 months ago by Kostas Apazidis (KonApaz)How-tos2 comments – viewed 3,583 times – ( +4 ) – version 1.1
How to check the online users or how to logout a specific user from your admin panel? This wiki shows how to do that