Yii Framework Forum: HELP!! SRBAC Install Error - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

HELP!! SRBAC Install Error Rate Topic: -----

#1 User is offline   longsoft 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 14-July 10

Posted 14 July 2010 - 08:11 PM

Hi, I install the srbac,but it's display this?
Attached File  srbac.jpg (124.44K)
Number of downloads: 28
0

#2 User is offline   Spyros 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 461
  • Joined: 14-April 09
  • Location:Athens - Greece

Posted 14 July 2010 - 10:55 PM

Hi,
Do you have a "User" model in your application?
You should create your users' model and then add it in srbac configuration
0

#3 User is offline   longsoft 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 14-July 10

Posted 15 July 2010 - 01:15 AM

thank you!
but I have another problem see this picture
Attached File  srbac.jpg (116.26K)
Number of downloads: 14
0

#4 User is offline   Spyros 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 461
  • Joined: 14-April 09
  • Location:Athens - Greece

Posted 15 July 2010 - 01:41 AM

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
0

#5 User is offline   longsoft 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 14-July 10

Posted 15 July 2010 - 02:09 AM

If I put the layout file to there,it's display the layout file,not Setup Wizard.
0

#6 User is offline   longsoft 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 14-July 10

Posted 15 July 2010 - 02:11 AM

Like this.
Posted Image

The main.php file content is
This is layout file

0

#7 User is offline   Spyros 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 461
  • Joined: 14-April 09
  • Location:Athens - Greece

Posted 15 July 2010 - 05:49 AM

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
0

#8 User is offline   longsoft 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 14-July 10

Posted 15 July 2010 - 08:00 AM

yes,my layout file main.php is in "protected\views\layouts" but have this problem.
0

#9 User is offline   Spyros 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 461
  • Joined: 14-April 09
  • Location:Athens - Greece

Posted 15 July 2010 - 08:09 AM

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 &copy; 2009 by Company.<br/>
        All Rights Reserved.<br/>
        <?php echo Yii::powered(); ?>
      </div><!-- footer -->

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

</html>

0

#10 User is offline   longsoft 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 14-July 10

Posted 15 July 2010 - 10:15 AM

It's not like this.
thank for your help!!!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users