用于创建会员网站的 Agile Toolkit (ATK4) 文档或教程?
我想开始测试 ATK4(Agile Toolkit - http://agiletoolkit.org/)。有没有人对在哪里可以找到使用 ATK4 的教程有任何建议:
- 模板开发
- 用户管理
- 注册、登录和其他帐户管理功能
我看到 ATK4 的潜力,但很难找到文档,因为它是新的。
I'd like to get started with testing the ATK4 (Agile Toolkit - http://agiletoolkit.org/). Does anyone have any suggestion regarding where to find a tutorial for using ATK4 with:
- Template development
- User management
- Registration, login, and other account management features
I see potential in the ATK4, but documentation is hard to find, since it's new.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
登录和用户管理
您可以在 agiletoolkit 文档
另外,我在另一篇文章中概述了一些更改,以允许某些页面公开,而其他页面仅在登录时可见 这里可能会有所帮助
正如罗马人所说,如果你看看 Colubris 的例子,您可以看到使用不同级别授权的示例,例如针对客户、针对开发人员和针对经理。
模板
您可以在此处阅读敏捷工具包模板 - 基础知识是您在 php 类中定义每个页面的业务逻辑。默认情况下,这些页面将使用shared.html作为模板,但您可以通过在页面类中定义一个名为defaultTemplate的函数来更改此设置。
模板可以使用标签来标识在页面中创建的代码元素应放置的位置,例如
此处的默认内容
标签之间的数据将被您在为该页面定义的类中添加的组件替换。如果您没有默认内容,您也可以使用简写版本。
如果您只是将元素添加到相关页面类中的页面,它们将自动添加到 Content 标记中。如果您想要更多控制,您可以使用您想要的所有 HTML 标记创建模板(或者让图形设计师来做这件事,甚至从 templatemonster.com 等模板网站下载您喜欢的模板),然后在您想要页面的位置添加标签要放置的代码。
这是非常灵活的 - 您还可以添加 html 代码片段作为视图,并在页面上多次重用它们,或者在不同页面中使用相同的视图。
Login and User Management
You can see some information on changes to /atk4-example/lib/Frontend.php in the agiletoolkit documentation
Also, i outlined some changes to allow some pages to be public and others only visible while logged on in another post here which may be helpful
As Romans said, if you look at the Colubris example, you can see examples of using different levels of authorisation e.g. for a client, for a developer and for a manager.
Templates
You can read about agile toolkit templates here - the basics are that you define the business logic for each page in a php class. By default, these pages will use the shared.html as a template but you can change this by defining a function in the page class called defaultTemplate.
Templates can use tags to identify where code elements created in the page should be placed such as
default content here
Where the data between the tags will be replaced by the components you add in the class defined for that page. If you dont have default content, you can also use the shorthand version
If you just add elements to a page in the relevant page class ,they will be automatically added to the Content tag. If you want more control, you can create templates with all the HTML markup you want (or get a graphic designer to do it or even download one you like from a template site like templatemonster.com) and then add tags where you want your page code to be placed.
This is very flexible - you can also add snippets of html code as Views and reuse them multiple times on a page or use the same view in different pages.
我想指出两个相当重要的开源项目,您可以研究一下:
他们非常不同,但是有很多事情你可以向他们学习。
如果您不害怕 beta 文档,那么 http://new.agiletoolkit.org/ 会经常更新。
I'd like to point out two quite major open-source projects you can look into:
They are very different, however there are many things you can learn from them.
If you are not afraid of beta-documentation, then http://new.agiletoolkit.org/ has frequent updates.