readAccess

Navigation:  Development > Function Reference > Module > ACL >

readAccess

Previous pageReturn to chapter overviewNext page

Read accessible menu  list.
 
App::Module('Acl')->readAccess();
 
See below  example:

 

$List = App::Module('Acl')->readAccess();
pr($List);
 
/*
Array
(
    [blog] => Array
        (
            [0] => Array
                (
                    [0] => /information/manage/blogpost/add
                    [1] => /information/manage/blogpost
                )
 
        )
 
    [catalog] => Array
        (
            [0] => Array
                (
                    [0] => /managestore/orders
                )
 
            [1] => Array
                (
                    [0] => /category/manage/product-cat/add
                    [1] => /category/manage/product-cat
                )
 
            [2] => Array
                (
                    [0] => /managestore/products/add
                    [1] => /managestore/products
                )
 
            [3] => Array
                (
                    [0] => /managestore/productattributes
                )
 
            [4] => Array
                (
                    [0] => /information/manage/countries/add
                    [1] => /information/manage/countries
                )
 
        )
 
)*/