我好几天了就有问题了.来自我的应用程序的Facebook通知(红色的第一个)出现并消失.这首先正常运行,但随后却停止了工作.我尝试进入网站网址 - > http://mipagina.com,在画布网址 - > http://mipagina.com/和安全网址https ....我尝试了很多其他方式,但没有.我意识到应用程序请求不会向用户发送通知以供他接受.但我可以从应用页面添加该应用.如果用户添加应用程序,则会显示红色的第一个然后消失,但我的应用程序的通知会显示在Facebook通知页面中.但是,如果用户未添加应用程序,则会显示红色的第一个然后消失,然后通知不会显示在Facebook通知页面中.希望你能帮助我......对不起我的英语.
我使用EdpModuleLayouts将一个布局用于我的zf2 webapp的移动版本,另一个布局用于"桌面"版本.
Application模块中module.config.php中的配置:
...'view_manager' => array(
'display_not_found_reason' => true,
'display_exceptions' => true,
'doctype' => 'HTML5',
'not_found_template' => 'error/404',
'exception_template' => 'error/index',
'template_map' => array(
'module_layouts' => array(
'Application' => 'layout/application',
'User' => 'layout/user',
),
'application/index/index' => __DIR__ . '/../view/application/index/index.phtml',
'error/404' => __DIR__ . '/../view/error/404.phtml',
'error/index' => __DIR__ . '/../view/error/index.phtml',
),
'template_path_stack' => array(
__DIR__ . '/../view',
),
),
Run Code Online (Sandbox Code Playgroud)
Application模块的Module.php就是这样的:
public function onBootstrap(MvcEvent $e)
{
$e->getApplication()->getServiceManager()->get('translator');
$eventManager = $e->getApplication()->getEventManager();
$moduleRouteListener = new ModuleRouteListener();
$moduleRouteListener->attach($eventManager);
$e->getApplication()->getEventManager()->getSharedManager()
->attach('Zend\Mvc\Controller\AbstractActionController', 'dispatch', function($e) {
$controller = …Run Code Online (Sandbox Code Playgroud) 我有一个组(比如说操作员),它拥有某些模型的权限,并且我有一些属于该组并继承了他们的权限的用户。到这里为止就OK了。
但现在我想从操作员(假设是约翰)中删除用户对最初拥有权限的模型之一的访问权限。我可以这样做吗?如何?
创建另一个组这对我来说不是一个选择。
希望你能帮我。