Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Using $this when not in object context #2

Open
ScullWM opened this issue Oct 9, 2013 · 0 comments
Open

Using $this when not in object context #2

ScullWM opened this issue Oct 9, 2013 · 0 comments

Comments

@ScullWM
Copy link

ScullWM commented Oct 9, 2013

Hi thanks for this nice ServiceProvider!

Seem that the last update generate a Fatal error:
"Fatal error: Using $this when not in object context in" on Line 60.

Seems that the boot method can't access the jsContent method, probably bescause it's call in a lamba function.

Personnaly I've use a big content var to set the javascript content and replace elements.

Finaly (if i can help you) I won't use this ServiceProvider on my actual project because of all admin's url are available in a simple javascript file (I don't like this):
admin/user-{id}.html, admin/edit-user-{id}.html, admin/spy-user-{id}.html, admin/report-to-nsa-user-{id}.html, admin/engage-kill-for-user-{id}.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant