Articles in category "tutorials"X
Displaying 181-190 of 251 result(s).

Add information to Yii::app()->user by extending CWebUser (better version)

Created 6 years ago by emixTutorials5 comments – viewed 35,223 times – ( +5 / -1 ) – version 1.1
I found a better solution.
tags: Yii, user, rbac

Using CJuiDialog to display flash Messages in Dialogues

Created 6 years ago by thyseusTutorials2 comments – viewed 21,742 times – ( +11 ) – version 1.1
In order to nicely display flash Messages, create view like this called views/site/dialog.php :

Multiple Databases and Multiple Domains

Created 6 years ago by got 2 doodleTutorials2 comments – viewed 38,640 times – ( +15 / -2 ) – version 1.1
Add these lines in /config/main.php
tags: database

Named scope - Get orphan AR without losing primary key

Created 6 years ago by cmaTutorials0 comments – viewed 5,802 times – version 1.1
Sometime, in a many-to-many relation, you need to retrieve AR that aren't linked. In practice, AR with null value in the join table. So you implements a criteria like this :

Installing WAMP - Apache, MySQL, & PHP on Windows 7

Created 6 years ago by YetiTutorials1 comment – viewed 38,403 times – ( +2 / -1 ) – version 1.1
Installing WAMP on XP was pretty easy; W7 is not so trivial. It's not difficult once you know, but it took me best part of a day to figure out and required gleaning various bits of information from around the web; this tutorial brings it all together in one place to (hopefully) make other peoples lives that bit easier. It does assume that you are reasonably happy configuring Apache, PHP, and MySQL and mainly deals with the W7 quirks.

Add charts / print buttons to your webapp

Created 6 years ago by CoLTTutorials3 comments – viewed 25,398 times – ( +7 ) – version 1.1
In this article you will find Yii framework extensions enabling you to add various charts/print out buttons etc. to your webapp.
tags: chart, print, flash, excel, csv, pdf, xls

Use different environments (development, production, etc) in your app with EASY Environment Class

Created 6 years ago by nancoderTutorials6 comments – viewed 36,441 times – ( +7 ) – version 1.1
Info: An extension was created based on this wiki page. See:

CJuiDialog and AjaxSubmitButton

Created 6 years ago by tydeas_drTutorials22 comments – viewed 100,374 times – ( +37 / -2 ) – version 1.1
Hello ppl. Even though i have a small experience with yii I though of writing this to help people which want to do something similar.
tags: AJAX

Display an AJAX tree from your DB using CTreeView

Created 6 years ago by Fran├žois GannazTutorials10 comments – viewed 55,468 times – ( +21 ) – version 1.1
This example uses a MySQL DB with a table named tree with the fields id, name, and parent_id. The parent_id will be NULL for root elements. The SQL is kept simple (no autoinc, no FK, etc).
tags: AJAX, CTreeView

Ordering Models by Weight with CJuiSortable

Created 6 years ago by Matt KelliherTutorials2 comments – viewed 12,358 times – ( +10 ) – version 1.1
In this tutorial we will be setting up a content type to be ordered by weight using the JUI Sortable plugin.