I have setup a CRUD area on my frontendAPI.php file (testing my models)... and I even managed to secure it. I would like to do this the proper way... I would like to establish a separate directory/ Page for the Admins. Please advise on this.
相关问题
- ATK4 model not found when moving to online
- ATK4 - addTotals() results in 0.00 for totals
- Implementing a search form that updates grid or li
- No records found …Agiletoolkit and Oracle. Grid/CR
- Junction Table with mutiple primary keys
相关文章
- ATK4 model not found when moving to online
- 与多发性主键结表(Junction Table with mutiple primary keys)
- 如何Agiletoolkit使用文件存储的API?(How to use Filestore in
- 如何加载在电网扩展GET参数的页面?(how to load a page with GET par
- 如何做数学运算与敏捷工具包模式字段或表达式(How to do math operations wi
- ATK4 - addTotals() results in 0.00 for totals
- 计算字段始终返回1 - ATK 4.2(Calculated field always retu
- Implementing a search form that updates grid or li
Still new at this but I'm trying to do the same for a news page, think i've got the login part working but having problems with the CRUD (will post a question on it shortly) - i have a table to populate with data from an rss feed (but will be manually populated with a CRUD to start with) and then have a page on the front end to pull out the details using views to format each news story.
Create a new file here based on the function e.g. news.php containing
In Frontend.php, you need to enable the login - for an admin only access, the BasicAuth may be sufficient but there are also classes to use a database to obtain username and password infromation e.g. for a membership site - heres the basic one. // If you wish to restrict access to your pages, use BasicAuth class $auth=$this->add('BasicAuth') ->allow('demo','demo') ;
You need to modify Frontend.php to enable pages that can be viewed without being logged in
And also in Frontend.php, you need to create a different menu if logged in. Note the login and logout pages dont actually exist.
When you login, it goes to page/index.php by default so if you want it to redirect to a particular page when you log in so you can add this to page/index.php
Hope that helps.
Trev