doucong6884 2019-01-11 09:15
浏览 75

在html中返回数据(firebase和php - 用于PHP的Firebase Admin SDK)

I'm confused about the routing system in the Firebase Admin SDK for PHP, I want to display html pages, and have and direct users to different pages like like home, about, account, profile and ect but I don't know how to.

for instance, with laravel, you have your controllers, routes(web.php), and views(blade template) in your resources/views folder, all helping you to create html pages through blade templating

I have noticed something though, there are two predefined routes that already came with the project(git clone https://github.com/jeromegamez/firebase-php-examples), the urls for these routes are http://127.0.0.1:8000/users and http://127.0.0.1:8000/database, for instance, when I go to /users I get json data /users data in json format

in a way this is out of context because I just want to have and be able to view html within this project(even if it returns no data from the database), but in the future i would like to retrieve similar data i showed on the image and place it on my html pages, through php, or even json to html however possible

the following is my project files structure project files structure

really hope you understand where i'm trying to go with this, your help will be appreciated

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号
    • ¥15 基于单片机的靶位控制系统
    • ¥15 AT89C51控制8位八段数码管显示时钟。
    • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
    • ¥15 下图接收小电路,谁知道原理
    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
    • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
    • ¥15 手机接入宽带网线,如何释放宽带全部速度
    • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测