Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Is there a resource_path equivalent?#369

Answeredbyowenvoke
bilogic asked this question inQ&A
Discussion options

Hi,

I was wondering if there is aresources equivalent that gets bundled into the standalonephar as well?
I'm trying to create a tool to generate config files etc, looking for a place to store the stub files, which I want included in thephar eventually.

Thank you.

You must be logged in to vote

Theresource_path() function should exist, and will point to theresources/ directory. However, you'll need to create this and add it to yourbox.json directories list.

Replies: 2 comments 1 reply

Comment options

What I did was to create aresources class and used heredocs to return content of the various files. Works at the moment, but even better if there was an official way. Thank you.

You must be logged in to vote
0 replies
Comment options

Theresource_path() function should exist, and will point to theresources/ directory. However, you'll need to create this and add it to yourbox.json directories list.

You must be logged in to vote
1 reply
@bilogic
Comment options

Ok, let me read up onbox.json. Thank you.

Answer selected bybilogic
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@bilogic@owenvoke

[8]ページ先頭

©2009-2025 Movatter.jp