etc/conf.d/access
Directory. There You will already find a file clled global.access.map.php
. All access Maps reside there.
You can create access Maps for a Controller. which maps sensitive methods of a Controller.to create an access map of a controller first you need to create a file called controllerName.access.map.php
in It write Blocks for that method. e.g. assuming you have a method called edit()
that you want to protect. (assuming your controller name is marksheet
e.g. the Class name is marksheetController
).
marksheet.access.map.php
in that directory in which write the following. [edit]
access: private
edit()
method will not be accessible throu url. and if tried to access zigmoyd will fire some Error. [edit]
access: protected
mode: plain
usr: foo
psw: bar
[edit]
access: protected
mode: db
usr: user
psw: pasword
con: schoolConn
table: admin
user
Column and Passwords are stored into password
Column. global.access.map.php
that will effect all controllers of the Current Project