导航

随笔分类 -  开源项目 - 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 阅读(343) 评论(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 阅读(184) 评论(0) 推荐(0)