Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: No hint path defined for [backpack] #79

Closed
DennisCraandijk opened this issue Jul 29, 2016 · 7 comments
Closed

Error: No hint path defined for [backpack] #79

DennisCraandijk opened this issue Jul 29, 2016 · 7 comments

Comments

@DennisCraandijk
Copy link

I'm getting the following error

No hint path defined for [backpack]. (View: /var/www/laravel/vendor/backpack/crud/src/resources/views/list.blade.php)

it seems when laravel is trying to load the view, it can't find the backspace hint when trying to load layout trough @extends('backpack::layout')
I tried to debug the process. There I found it did find the crud hint. So some hints do get loaded, except for backspace.

I found some stackoverflow issues related to similar problems, which stated the hints are declared in the ServiceProvider. I tried clearing the config:cache to avoid conflicts. However, I couldn't find the issue

I'm installing Backpack/CRUD on an existing project. I tried to reïnstalling CRUD and made sure I completed all the steps, including publishing all the files as remmended in #32.

Laravel 5.2.41
I'm on Docker for Windows with Laradock as container
PHP-FPM 7.0
NGINX

@DennisCraandijk
Copy link
Author

So I found the issue.
The backpack hint and the blade templates it is calling, are from backpack/base. I only installed the CRUD, so I was missing the files and the necessary service provider.

So the instructions for the crud install guide are incorrect. The steps are explained how to only install CRUD. So you miss the backpack/base layout files it is calling.

So in my opninion there are two options:

  • one should edit the view files, to use their own layout. This should be documented for the crud-only users
  • one has to install and publish the base files. this should also be documented

@tabacitu
Copy link
Member

Damn... you're totally right @Dennisc1 , if you're only looking at Backpack\CRUD and not the online documentation, you have no idea you need to do the steps in Backpack\Base too, for it to work.

I've updated the documentation to mention that. Thanks a lot! I think this might have been turning a lot of people down.

Cheers!

@DennisCraandijk
Copy link
Author

DennisCraandijk commented Jul 30, 2016

@tabacitu thanks for the quick reply and update of the docs.
However, does this mean the Backpack\CRUD package should always be used in combinations with Backpack\Base. I love the combination of the two for my current project. However, the Backpack\CRUD package is a very useful and powerful package on itself. In my opinion people should be able to use this package without having to use the Backpack\Base. The CRUD package can already of great use without the AdminLTE etc. of the Base package.

I think it is still possible to change the published view files, so it doesn't use the backpack:layout but your own layout. However, this isn't very clear for the users.
So my advice. Either somehow decouple the packages, or document how the CRUD package can be used as standalone package..

Anyway, great package. Well maintained and you can clearly see progress in this repository. Keep up the good work!

@tabacitu
Copy link
Member

Hi @Dennisc1 ,

I'm not gonna lie - the only reason it's not decoupled is because the packages have gotten a lot more attention than I expected. So now I'm rushing to deliver all major features, to please the users that are already using it, rather than appeal to new users that would like to use it without the AdminLTE front-end. But in a few months things will probably settle and we'll have time to think this through. And yes, decoupling is on the roadmap, it's just not anywhere close right now.

I'm sorry if this lets you down, but I don't want you to use it in the hope that it gets decoupled anytime soon and then be disappointed.

Thank you for your contribution. Cheers!

@DennisCraandijk
Copy link
Author

No problem. I can see the work your putting in to it right now and it's becoming a great package. So I understand that you put on the roadmap for later.

@poseso
Copy link

poseso commented Apr 16, 2017

I'd love to see it as a standalone package, I don't really like AdminLTE

@tabacitu
Copy link
Member

@poseso , themes will come in a few months. You'll be able to use different premium themes on ThemeForest & similar, by just dragging&dropping some folders in your package. Subscribe to the newsletter if you haven't already, and you'll find out as soon as it's launched.

Cheers!

This was referenced Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants