我需要实现一个与我们现在使用的完全一样的标记系统。我是网络开发新手,所以我遇到了一些问题,我想从一个示例开始,但我找不到一个。
特别是我需要前端部分,我想它解析从服务器接收到的 xml 并将其打印出来,就像那些带有标签的酷方块一样。我不需要完全像这样的东西,类似的例子就足够了。
i need to implement a tagging system looking exactly like the one we are using now. I'm new to the web developing so i'm having a few problems and i would like to start from an example but i can't find one.
In particular i would need the frontend part that, i suppose, parse an xml received from the server and print it like those cool squares with the tag in it. I don't need something exactly like this, an example of something similar would suffice.
发布评论
评论(2)
您为什么使用或假设此数据以 xml 形式发送?你一开始就把它保存在xml中吗?我想你应该将数据保存在数据库中。并为每个唯一标签创建一个表,然后在帖子表和包含每个帖子及其链接的每个标签的标签表之间创建一个桥梁。
why do you use or supposed this data to be sent as xml ? do u save it in xml in the begining ? i suppose you should save your data in database . and create a table for every unique tag and then create a bridge bettween the posts table and the tag table containing every post with every tag linked to it .
您是否看过 标签插件下载/view/cakephp_tags_plugin" rel="nofollow">CakeDC?可能会节省你一些时间。
Have you looked at the Tag plugin by CakeDC? Might save you some time.