Code Igniter - 仅使用购物车类?
我的一个客户有一个大型 php 网站,想要添加购物车功能。是否可以使用 Code Igniter 的购物车类,而无需在 Code Igniter 框架中编写整个网站?
如何?
A client of mine has a big php website, and wants to add shopping cart functionality. Is it possible to use Code Igniter's shopping cart class, without writing the whole site in the Code Igniter framework?
How?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
没有意义。 Cart 库只是会话库的基本包装。它不会让你达到你想象的那么远。
There is no point. The Cart library is just a basic wrapper for the session library. It won't get you anywhere near as far as you think.
是的,你可以。只需更改对 CodeIgniter 的所有依赖项,尤其是会话和配置。
尽管我建议您查看 webforce cart 而不是搞乱 CI Cart 类。
Yes, you can. Just change all the dependency on CodeIgniter, especially the sessions and configs.
Although I'd recommend that you look into webforce cart instead of messing around with the CI Cart class.
是的应该没问题,只需使用购物车类构建主控制器,所以它基本上只是一个购物应用程序。构建后符合设计,也许 htaccess / 路由具有相同的 url 结构。
这完全取决于您计划的电子商务的规模/定制性质。一个可能更快的选择是 Magento http://www.magentocommerce.com/ 我不能高度评价它够了。当我从事开发工作时,这绝对是我接触电子商务的第一站。
祝你好运。
Yeah should be fine, just build your main controller using the shopping cart class, so it's basically just a shopping app. After it's built match the design, and maybe the htaccess / routes to have the same url structure.
It all depends on the scale / bespoke nature of ecommerce you are planning. A possibly quicker option would be Magento http://www.magentocommerce.com/ which I can't speak highly enough of. It's definitely my first port of call for ecommerce when I'm doing development jobs.
Good luck.