How can I use both Laravel and Drupal in my website?

橙三吉。 提交于 2019-12-11 01:15:19

问题


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!


回答1:


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!

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.



来源:https://stackoverflow.com/questions/35765616/how-can-i-use-both-laravel-and-drupal-in-my-website

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!