Showing 181-200 of 268 items.

Getting to Understand Hierarchical RBAC Scheme

Created 15 years ago by daemons daemons, updated 11 years ago by rAWTAZ rAWTAZ. 15 comments

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
Viewed: 136 328 times
Version: 1.1
Category: Tutorials

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

Created 15 years ago by Davidhhuan Davidhhuan, updated 15 years ago by Davidhhuan Davidhhuan. 1 comment

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
Viewed: 29 255 times
Version: 1.1
Category: Tutorials

Yii and XAMPP server on Windows

Created 15 years ago by Trejder Trejder, updated 15 years ago by Trejder Trejder. 0 comments

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
Viewed: 84 687 times
Version: 1.1
Category: Tutorials

CSS Naming Conventions

Created 15 years ago by qiang qiang, updated 7 years ago by samdark samdark. 4 comments

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
Viewed: 58 621 times
Version: 1.1
Category: Tutorials

Multiple Databases and Multiple Domains

Created 16 years ago by got 2 doodle got 2 doodle, updated 15 years ago by Maurizio Domba Cerin Maurizio Domba Cerin. 2 comments

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
Viewed: 63 579 times
Version: 1.1
Category: Tutorials