-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Does not work with namespaces #34
Comments
Hi @rottmann, thanks for the submission! Can you clarify your use case with the namespace? |
One case is a custom autoloader, that uses namespaces. Pages / Layouts are in namespaces and the autoloader include the e.g. the layouts within pages. Only direct includes work currently. A download page could only be done, if it includes only the download functionality (header() ...) and is not allowed to respond a custom page, e.g. if the user is not allowed to download. |
@rottmann I've published a new version with a new script evaluation method. |
Cause the generated code looks like
namespace must be first.
A workaround could be a placeholder, that we can set within our code and vite-plugin-php insert (if it exists) at the placeholder.
And it would be great, if it could work with vites root parameter.
The text was updated successfully, but these errors were encountered: