【问题标题】:Laravel using alternative path for viewsLaravel 使用替代路径进行视图
【发布时间】:2022-01-01 22:15:27
【问题描述】:

我正在尝试从备用文件夹返回视图

  • 项目名称
    • 主题
      • 管理员
        • 观看次数
        • manage_users.blade.php

我试过了

View::addLocation('/themes/admin/views');

View::addNamespace('theme', 'themes/admin/views');

return View::make('theme::manage_users');

但我不断收到错误

View [manage_users] not found.

【问题讨论】:

    标签: laravel view routes themes


    【解决方案1】:

    我通过删除关键字theme 解决了我的问题,所以它变成了return View::make('manage_users');

    【讨论】:

    • 酷,请将您的答案标记为正确答案以关闭问题。
    猜你喜欢
    • 1970-01-01
    • 2017-01-06
    • 2019-01-27
    • 2016-02-09
    • 2018-03-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-06
    相关资源
    最近更新 更多