我成功地创建了laravel5.3应用程序。这是一个简单的登录应用程序。最初我对应用程序使用刀片式服务器模板,后来我使用extjs4
现在我想使用extjs6。0。
我正在处理下面的问题。
我在Laravel公共文件夹中创建了ExtJS应用程序。从路由中,我想要加载索引页面。

在laravel路径中:
Route::get('/extshow', function(){
return View::make('extjspage');
});Extjspage.php
<!-- The line below must be kept intact for Sencha Cmd to build your application -->
<script id="microloader" data-app="feecee0f-b576-4366-967e-78fffdbb1023" type="text/javascript" src="../myapps/see/myapp6/bootstrap.js"></script>在浏览器中:localhost/extshow
错误:

本地主机指向/public目录
如果我在本地主机上更改/see/myapp6/,那么它可以工作,但是,它将成为laravel初始加载和路由的问题。
在上述情况下,如何使用laravel加载extjs6索引?
我的apache配置如下:
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/simple-laravel-login-authentication-master/public
<Directory /var/www/html/simple-laravel-login-authentication-master/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>并在/ ExtJS /myapp6中创建了公共应用程序。
当从PHP加载ExtJS时。
因为缺少/myapp6路径,所以无法获取文件,那么如何以正确的方式引用该文件?
发布于 2016-09-22 22:00:44
首先使用sencha命令创建一个独立的ExtJS应用程序。创建应用程序后,只需复制所有创建的文件夹并将其粘贴到公共的laravel folder.Then中,我们就可以从php加载extjs应用程序。
https://stackoverflow.com/questions/39471605
复制相似问题