HELP!! SRBAC Install Error

Hi, I install the srbac,but it’s display this?




Do you have a "User" model in your application?

You should create your users’ model and then add it in srbac configuration

thank you!

but I have another problem see this picture



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

<html xmlns="" xml:lang="en" lang="en">


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



    <div id="page">

      <div id="header">

        <div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div>

       <div id="menu">



      </div><!-- header -->

      <br />

      <div id="content">

        <?php echo $content; ?>

      </div><!-- content -->

      <div id="footer">

        Copyright &copy; 2009 by Company.<br/>

        All Rights Reserved.<br/>

        <?php echo Yii::powered(); ?>

      </div><!-- footer -->

    </div><!-- page -->



It’s not like this.

thank for your help!!!