maiconpinto / cakephp-adminlte-theme

CakePHP AdminLTE Theme
http://maiconpinto.github.io/cakephp-adminlte-theme/
MIT License
174 stars 111 forks source link

CakePHP 3.7.7 Asset files failing to load #84

Open niel opened 5 years ago

niel commented 5 years ago

The href links to style sheets, JavaScript, etc. all start with href="/admin_l_t_e/... Unsurprisingly, they do not seem to load as that location doesn't exist. Is this expected behaviour or another new bug with 3.7.7?

niel commented 5 years ago

Seems that they are supposed to be that way. However, they're definitely not working as using the URL directly produces a 404 error

niel commented 5 years ago

Still cannot get this working through the dispatcher. For now I have sym-linked to the AdminLTE/webroot directory. That's probably not going to work in production though.

dcoturel commented 5 years ago

Hi! This happened to me too. Did you find any workaround to solve this? Saludos

niel commented 5 years ago

Only the workaround mentioned above. Symlink the directories using bake.

dcoturel commented 5 years ago

Hi niel, thanks for your answer

maiconpinto commented 5 years ago

Hi @niel and @dcoturel

I didn't understand what is happening.

Let me know more information.

I testing in this link

dcoturel commented 5 years ago

Hi @maiconpinto

The thing was, after an update, the template failed to load the assets. This are the assets failing to load:

This is the error I was receiving: 2019-08-06 16:32:42 Error: [Cake\Routing\Exception\MissingControllerException] Controller class Admin_l_t_e could not be found. Then, I didn't had much time to test, so I went for a very "hard" solution.