Wiki articles in category Tutorials

Showing 181-200 of 265 items.

Getting to Understand Hierarchical RBAC Scheme

Created 13 years ago by daemons, updated 10 years ago by rAWTAZ.

Authentication and Authorization is a good tutorial. Among other topics, it describes basic aspects of Yii's RBAC implementation. But however hard I read the tutorial, I couldn't understand how exactly the hierarchy works. I found how to define authorization hierarchy, how business rules are evaluated, how to configure a...

47 0
56 followers
Viewed: 127 951 times
Version: 1.1
Category: Tutorials

embed a view file of the class which implement the CAction.

Created 13 years ago by Davidhhuan, updated 13 years ago by Davidhhuan.

In Yii, we can define an action class and ask the controller to instantiate it. And we always create ourselves actions class in rootPath/protected/extensions, and the view file we called in the actions class always are located in rootPath/protected/views/ControllerNAME or rootPath/themes/ThemeNAME/ControllerNAME, then when we use the same actions class in different controllers, we have to copy it...

1 1
2 followers
Viewed: 27 055 times
Version: 1.1
Category: Tutorials

belajar AR : part 1 (learn AR : part 1)

Created 13 years ago by rianday, updated 13 years ago by rianday.

hai teman yii... apa kabar.. kembali lagi bersama catatan saya..

0 0
1 follower
Viewed: 17 950 times
Version: 1.1
Category: Tutorials
Tags: indonesia

Introducción al control de acceso basado en roles (RBAC)

Created 13 years ago by Juan Calvo, updated 13 years ago by Juan Calvo.

Todos los que hemos empezado a utilizar Yii para crear aplicaciones Web, nos hemos dado de bruces cuando hemos intentado poner a funcionar el RBAC (acceso de control basado en roles).

15 1
9 followers
Viewed: 74 598 times
Version: 1.1
Category: Tutorials

How To Customize CMenu Output

Created 13 years ago by Angelo, updated 13 years ago by Angelo.

CMenu comes with a lot of great customization options built in but sometimes you need it to do more.

7 0
15 followers
Viewed: 68 892 times
Version: 1.1
Category: Tutorials
Tags: menu

Cambiando el diseño de JuiWidgets

Created 13 years ago by Luis Lobo Borobia, updated 13 years ago by Ivan Wilhelm.

Un aspecto del diseño de interfaces de usuario tiene que ver con la coherencia del diseño y uso de colores entre los distintos componentes de interfaz de usuario utilizados.

0 0
4 followers
Viewed: 15 821 times
Version: 1.1
Category: Tutorials
Tags:

Theming your Zii Widgets

Created 13 years ago by Luis Lobo Borobia, updated 13 years ago by Ivan Wilhelm.

One aspect of User Interface Design has to do with the coherence of the design and the use of the colors between the different User Interface Components used.

17 0
31 followers
Viewed: 62 020 times
Version: 1.1
Category: Tutorials

Yii and XAMPP server on Windows

Created 14 years ago by Trejder, updated 14 years ago by Trejder.

This article explains issues about installing XAMPP server package (Lite version) on Windows OS and configuring it for serving webapps written in Yii. Please note, that XAMPP is available for many more platforms and systems. I write about Windows edition as it was the only one tested by me.

3 0
0 follower
Viewed: 80 405 times
Version: 1.1
Category: Tutorials

Module based login

Created 14 years ago by suriyansuresh, updated 14 years ago by suriyansuresh.

If you want to add module based login to a site without using RBAC, please follow these guidelines.

13 0
18 followers
Viewed: 91 721 times
Version: 1.1
Category: Tutorials

CSS Naming Conventions

Created 14 years ago by qiang, updated 5 years ago by samdark.

In this article, we introduce a set of CSS naming conventions that we have applied in several big projects and achieved success. The goal of these naming conventions is to eliminate the possibility of naming conflicts, facilitate debugging and maintenance, and to simplify the naming process.

35 0
24 followers
Viewed: 50 327 times
Version: 1.1
Category: Tutorials

Integrating FirePHP

Created 14 years ago by ricardograna, updated 14 years ago by ricardograna.
  • Install Firebug plugin for Firefox from here.
7 0
6 followers
Viewed: 18 367 times
Version: 1.1
Category: Tutorials
Tags:

NetBeans IDE and Yii projects

Created 14 years ago by marcovtwout, updated 9 years ago by marcovtwout.

This page is created to supply short directions and general tips for managing a Yii application in NetBeans IDE.

65 0
66 followers
Viewed: 251 992 times
Version: 1.1
Category: Tutorials

How to add an analogue clock widget on your skeleton application

Created 14 years ago by mocapapa, updated 14 years ago by mocapapa.


Followings are the simple steps to put an analogue clock widget on your skeleton application that is just generated by yiic.

1 0
1 follower
Viewed: 12 085 times
Version: 1.1
Category: Tutorials
Tags:

List with multiple checkbox

Created 14 years ago by matkaz, updated 14 years ago by matkaz.

It is a common case coders often come accross. For example the purpose of these checkbox is to mark records to be deleted

4 0
8 followers
Viewed: 41 041 times
Version: 1.1
Category: Tutorials
Tags:

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

Created 14 years ago by emix, updated 10 years ago by Anas AbuDayah.

I found a better solution.

5 0
10 followers
Viewed: 50 286 times
Version: 1.1
Category: Tutorials
Tags: rbac, user, Yii

Using CJuiDialog to display flash Messages in Dialogues

Created 14 years ago by thyseus, updated 14 years ago by thyseus.

In order to nicely display flash Messages, create view like this called views/site/dialog.php :

10 0
9 followers
Viewed: 29 097 times
Version: 1.1
Category: Tutorials
Tags:

Multiple Databases and Multiple Domains

Created 14 years ago by got 2 doodle, updated 13 years ago by Maurizio Domba Cerin.

Add these lines in /config/main.php

'components'=>array(
.........
		'db'=>array(
			'connectionString' => 'mysql:host=localhost;dbname=database1',
			'emulatePrepare' => true,
			'username' => 'root',
			'password' => 'itsasecret',
			'charset' => 'utf8',
		),
		'db2'=>array(
		    'class' => 'CDbConnection',
			'connectionString' => 'mysql:host=localhost;dbname=databa...
13 2
15 followers
Viewed: 56 566 times
Version: 1.1
Category: Tutorials
Tags: database

Named scope - Get orphan AR without losing primary key

Created 14 years ago by cma, updated 13 years ago by Steve Friedl.

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 :

public function scopeUnused( $useAnd = true )
    {
        $join = " left outer join composed_by j on t.ID = j.ID ";
        $condition = ' j.ID Is Null';

0 0
2 followers
Viewed: 9 704 times
Version: 1.1
Category: Tutorials
Tags:

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

Created 14 years ago by Yeti, updated 14 years ago by Trejder.

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...

2 0
1 follower
Viewed: 46 106 times
Version: 1.1
Category: Tutorials
Tags:

Add charts / print buttons to your webapp

Created 14 years ago by CoLT, updated 14 years ago by CoLT.

In this article you will find Yii framework extensions enabling you to add various charts/print out buttons etc. to your webapp.

6 0
9 followers
Viewed: 38 773 times
Version: 1.1
Category: Tutorials