随笔 - 612, 文章 - 0, 评论 - 31, 阅读 - 74万

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  开源项目 - SugarCRM

摘要:SugarController定义了一个实例变量$hasAccess,布尔值,默认为true。该实例变量指示使用者是否有执行摸个action的权限:class SugarController{ /** * This can be set from the application to tell us whether we have authorization to * process the action. If this is set we will default to the noaccess view. */ public $hasAccess = ... 阅读全文

posted @ 2013-12-23 17:34 eastson 阅读(336) 评论(0) 推荐(0) 编辑

摘要:问:如何获取module参数?如果module参数不存在,如何处理?答:首先检查$_REQUEST['module'],然后再检查$sugar_config['default_module']是否有设置,如果都没有则用SugarApplication类的实例变量$default_module(默认为Home)。这些在SugarApplication::execute()函数的开头进行处理:if (!empty($sugar_config['default_module'])) $this->default_module = $sugar_c 阅读全文

posted @ 2013-12-23 09:24 eastson 阅读(179) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示