如何在我的网站中同时使用Laravel和Drupal? [英] How can I use both Laravel and Drupal in my website?

查看:300
本文介绍了如何在我的网站中同时使用Laravel和Drupal?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Drupal 7中建立了一个网站.由于某些页面的复杂性,我想在Laravel之类的框架中构建这些页面! 我可以那样做吗? 我想保持用户登录和Drupal的某些节点功能,并将使用Drupal的数据库!

I have a website build in Drupal 7. Due to complexity of some pages I want to build those pages in framework like Laravel! Can I do that? I want to keep user login and some node functionality of Drupal and will use Drupal's db!

推荐答案

可以,但不能. Drupal和Laravel都是后端框架.通过保留Drupal的一部分和Laravel的另一部分,将为您以后带来麻烦(如果不是现在的话).仅举例来说,您将必须同步两个系统的会话管理才能保持同步!

You can but you shouldn't. The Drupal and Laravel are both back-end frameworks. By keeping some part of Drupal and another from Laravel will create problems for you later if not now. Just for example, you will have to sync session management of both systems to keep things synced!

相反,我建议您选择一些诸如BackBone,Angular等的前端框架.由于Drupal提供了REST API支持,因此可以有效地与Drupal一起使用.

Rather, I would suggest you go for some Front-End frameworks like BackBone, Angular etc. It'll effectively work with Drupal, as Drupal provides the REST API support.

这篇关于如何在我的网站中同时使用Laravel和Drupal?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆