installText.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. /**
  3. * installText.php
  4. *
  5. * @author Spyros Soldatos <spyros@valor.gr>
  6. * @link http://code.google.com/p/srbac/
  7. */
  8. /**
  9. * The installation text.
  10. *
  11. * @author Spyros Soldatos <spyros@valor.gr>
  12. * @package srbac.views.authitem.install
  13. * @since 1.0.0
  14. */
  15. ?>
  16. <div align="left">
  17. Press install to create the tables needed for srbac module.<br />
  18. You must have a database, authManager component and the srbac module
  19. configured in your application's configuration.<br />
  20. The module configuration must be like this:
  21. (For more detailed information check the srbac guide)
  22. <?php $this->beginWidget('CTextHighlighter',array('language'=>'php')) ?>
  23. 'modules'=>array('srbac'=>
  24. array(
  25. // Your application's user class (default: User)
  26. "userclass"=>"User",
  27. // Your users' table user_id column (default: userid)
  28. "userid"=>"user_id",
  29. // your users' table username column (default: username)
  30. "username"=>"user_name",
  31. // If in debug mode (default: false)
  32. // In debug mode every user (even guest) can admin srbac, also
  33. //if you use internationalization untranslated words/phrases
  34. //will be marked with a red star
  35. "debug"=>true,
  36. //The delimeter between modulename and auth item name for authitems in modules
  37. // (default "-")
  38. "delimeter"=>"@",
  39. // The number of items shown in each page (default:15)
  40. "pageSize"=>8,
  41. // The name of the super user
  42. "superUser" =>"Authority",
  43. //The name of the css to use
  44. "css"=>"",
  45. //The layout to use
  46. "layout"=>"application.views.layouts.admin",
  47. //The not authorized page
  48. "notAuthorizedView"=>"application.views.site.unauthorized",
  49. // The always allowed actions
  50. "alwaysAllowed"=>array(
  51. 'SiteLogin','SiteLogout','SiteIndex','SiteAdmin','SiteError',
  52. 'SiteContact'),
  53. // The operationa assigned to users
  54. "userActions"=>array(
  55. "Show","View","List"
  56. ),
  57. // The number of lines of the listboxes
  58. "listBoxNumberOfLines" => 10,
  59. // The path to the custom images relative to basePath (default the srbac images path)
  60. //"imagesPath"=>"../images",
  61. //The icons pack to use (noia, tango)
  62. "imagesPack"=>"noia",
  63. // Whether to show text next to the menu icons (default false)
  64. "iconText"=>true,
  65. )
  66. ),
  67. <?php $this->endWidget('CTextHighlighter') ?>
  68. The names of the tables are set in your authManager configuration.<br />
  69. You may change the names of the tables there as you like:
  70. <?php $this->beginWidget('CTextHighlighter',array('language'=>'php')) ?>
  71. 'authManager'=>array(
  72. // The type of Manager (Database)
  73. 'class'=>'CDbAuthManager',
  74. // The database connection used
  75. 'connectionID'=>'db',
  76. // The itemTable name (default:authitem)
  77. 'itemTable'=>'items',
  78. // The assignmentTable name (default:authassignment)
  79. 'assignmentTable'=>'assignments',
  80. // The itemChildTable name (default:authitemchild)
  81. 'itemChildTable'=>'itemchildren',
  82. ),
  83. <?php $this->endWidget('CTextHighlighter') ?>
  84. </div>