phpGACL 安裝紀錄
最近有 project 要使用 ACL, 於是又想起 phpGACL 這個 php class. 多年前曾試過安裝但不成功, 這次再認真地再一試及了解當中如何使用, 才明白一些安裝需要注意的事.
- mySQL 建立 gacl database 必須是 ascii_general_ci, 不能用 UTF8 unicode, 否則建立了 database 也會出現error.
- 要按 manual 指示於 smarty 底下建立一個 templates_c folder
- 修改 gacl.ini.php 中 smarty path 的定義, 否則進不了 admin page. path 是相對於 admin 的 path.
- smarty_dir = “smarty/libs”
- smarty_template_dir = “templates”
- smarty_compile_dir = “smarty/templates_c”
跟著依 manual 指示的執行 setup.php 進行安裝, 應該沒有問題了.