Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 111-120 of 183 result(s).

How to use Smarty renderer in Yii

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

CGridView and AjaxForm Connect

Created 2 years ago by PinkBrainPlanHow-tos2 comments – viewed 13,998 times – ( +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

CKEditor Integration (includes steps for file uploads) - Step by Step

Created 5 months ago by shulmeHow-tos2 comments – viewed 8,017 times – ( +9 )
Hey guys, I'm hoping other people will find this helpful. Today I went through the process of adding CKEditor to one of my projects, and then integrating KCFinder as the image uploader. It will be used in a CActiveForm, without the use of any crazy weird widgets. All paths are relative, using Yii functions, so this will work no matter where you install. Here it is:

Prevent asset publishing for CListView

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

Using Pear Mail Mail_Mime and Mail_Queue

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

How to create a wrapper for a js library

Created about a year ago by zaccariaHow-tos2 comments – viewed 7,620 times – ( +16 / -1 )
This wiki will explain how to include a javascript library in a widget.
tags: wrapper, js, uploadify

Integrating HybridAuth directly into Yii without an extension

Created 2 months ago by biz devHow-tos2 comments – viewed 3,888 times – ( +8 )
This article tries to explain the steps required in integrating the HybridAuth into Yii directly, without using an extension.

ISA hierarchy of tables inside a database and how to implement a single form

Created about a year ago by pligorHow-tos2 comments – viewed 5,788 times – ( +1 )
Please consider the following Dear software engineers imagine I have a simple ISA hierarchy: parent A with children B and C. So let's say we have the corresponding tables named "a", "b", "c" and (created with the help of the gii model creator) the classes A, B, C The following is a screenshot from MySQL workbench:

YiiBooster: How to implement files and images upload on TbRedactor Widget

Created about a month ago by Antonio RamirezHow-tos2 comments – viewed 4,619 times – ( +10 )
I have been requested to provide a tutorial on how to use the file upload feature of the TbRedactor widget, and even though I am no longer supporting the library due that the work belongs to Clevertech, I feel that I owe that to the Yii developers. So, here is the  tutorial.