Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 191-200 of 339 result(s).

How to use Smarty renderer in Yii

Created 4 years ago by dongbetaHow-tos2 comments – viewed 17,533 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,990 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,165 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...

Check online users / set specific user offline

Created 11 months ago by Kostas Apazidis (KonApaz)How-tos2 comments – viewed 3,869 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

Prevent asset publishing for CListView

Created 4 years ago by MikeHow-tos2 comments – viewed 7,942 times – ( +2 ) – 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

Yii2 and Pdf files with Mpdf

Created 11 months ago by CTalaHow-tos2 comments – viewed 5,459 times – ( +6 ) – version 2.0
I am still new to composer and packagist, so I want to share how I am creating the pdf files because for me was not as simple as it should be.

Using Pear Mail Mail_Mime and Mail_Queue

Created 3 years ago by LorenHow-tos2 comments – viewed 9,321 times – ( +7 ) – version 1.1
Create a component (/protected/components/PearMail.php) Edit this as needed based on where you put the files from PEAR.

Book Has Author - Many to Many relations using Kartik\Select2

Created 11 months ago by thiagoc7How-tos2 comments – viewed 6,073 times – ( +3 ) – version 2.0
I could make this work following same useful tips from this post.

Using rights extension with different table and column name

Created 10 months ago by turiHow-tos2 comments – viewed 1,947 times – ( +1 ) – version 1.1
Once you have installed and configured the rights extension in your application, you can change the table name from 'User' to any table name you want and similarly for 'username' column to any other column name.