Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 201-210 of 354 result(s).

How to send emails using SMTP

Created 3 years ago by robregonmHow-tos2 comments – viewed 54,765 times – ( +8 / -1 ) – version 2.0
Follow @robregonm
tags: yii2, email, mail, mailer, smtp

Create custom button button with AJAX function in CGridView

Created 4 years ago by nkdHow-tos2 comments – viewed 53,975 times – ( +19 / -1 ) – 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 4 years ago by marcovtwoutHow-tos2 comments – viewed 5,433 times – ( +3 / -1 ) – version 1.1
Since Yii 1.1.14, a CLocalizedFormatter is available.

How to use Smarty renderer in Yii

Created 6 years ago by dongbetaHow-tos2 comments – viewed 19,650 times – ( +4 / -1 ) – 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 6 years ago by PinkBrainPlanHow-tos2 comments – viewed 21,278 times – ( +1 / -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 4 years ago by yasenHow-tos2 comments – viewed 7,369 times – ( +2 / -1 ) – 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...

Configuring different sessions for backend and frontend in Yii advanced app

Created 3 years ago by Kartik VHow-tos2 comments – viewed 26,645 times – ( +47 / -1 ) – version 2.0
After you have setup your Yii2 advanced application, you now have setup your user authentication for both frontend and backend. However, if you have first logged into frontend, and try to access backend from the same client machine, you see no login screen, but find yourself automatically logged in.

Check online users / set specific user offline

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos2 comments – viewed 8,667 times – ( +4 / -1 ) – 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

Prevent asset publishing for CListView

Created 6 years ago by MikeHow-tos2 comments – viewed 9,602 times – ( +2 / -1 ) – version 1.1
If you don't want to use any of the AJAX features of CListView and thus want to prevent that it publishes any of its asset files, you can extend it and create a sub class like this:
tags: CListView, Assets