WordpressBundle icon indicating copy to clipboard operation
WordpressBundle copied to clipboard

Installation path syntax

Open rvanlaak opened this issue 13 years ago • 4 comments

I've deployed my application to my test-environment, but now I'm stuck on the configuration of the hypebeast_wordpress - wordpress_path. Can you please let me know or this path can be relative or not?

rvanlaak avatar Jan 23 '13 15:01 rvanlaak

I figured it out by searching the correct path in the phpinfo() file. Shouldn't it be better to make this path dependent on the Symfony root directory? Or, maybe easier: add examples, like:

%kernel.root_dir%/../web %kernel.root_dir%/../../public_html/test

rvanlaak avatar Jan 23 '13 16:01 rvanlaak

How does Symfony handle paths like this as standard? Relative to the root directory? The config file? The current script file? We should follow that convention if we don't already.

Using the %kernel.root_dir% with a relative path appended should work as-is.

The readme example suggests using an absolute path, but if you think it is unclear feel free to send a pull request.

mrtorrent avatar Jan 23 '13 17:01 mrtorrent

Should't a relative path always be in favor of an absolute path? In my opinion it does..

rvanlaak avatar Feb 16 '13 23:02 rvanlaak

We're a Symfony bundle, so we should follow whatever their convention is. On Feb 16, 2013 6:25 PM, "Rvanlaak" [email protected] wrote:

Should't a relative path always be in favor of an absolute path? In my opinion it does..

— Reply to this email directly or view it on GitHubhttps://github.com/kayue/WordpressBundle/issues/14#issuecomment-13676958.

mrtorrent avatar Feb 17 '13 00:02 mrtorrent