Hi, I install the srbac,but it’s display this?
773
Hi,
Do you have a "User" model in your application?
You should create your users’ model and then add it in srbac configuration
srbac layout property points to a file that does not exist (application.views.layouts.main)
Change it to point to the layout that you want to use
If I put the layout file to there,it’s display the layout file,not Setup Wizard.
Like this.
The main.php file content is
This is layout file
You should point to the layout file used by your application
If you created your application using the yiic tool it should be in "protected\views\layouts" directory
yes,my layout file main.php is in "protected\views\layouts" but have this problem.
is your layout’s content something like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
<title><?php echo $this->pageTitle; ?></title>
</head>
<body>
<div id="page">
<div id="header">
<div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div>
<div id="menu">
</div>
</div><!-- header -->
<br />
<div id="content">
<?php echo $content; ?>
</div><!-- content -->
<div id="footer">
Copyright © 2009 by Company.<br/>
All Rights Reserved.<br/>
<?php echo Yii::powered(); ?>
</div><!-- footer -->
</div><!-- page -->
</body>
</html>
It’s not like this.
thank for your help!!!