I want to rename the "web" folder to "html" in symfony 1.4, unfortunately searching for documentation on this has lead me nowhere except for how this would be accomplished in 1.0, which does not seem to be working.
Firstly, you don't have to rename it. You can just create a symbolic link (unless you're running windows):
ln -s web html
If you still want to change the web folder name than you could do it in your project's ProjectConfiguration class by overloading setRootDir():
class ProjectConfiguration extends sfProjectConfiguration
{
public function setRootDir($rootDir)
{
parent::setRootDir($rootDir);
$this->setWebDir($rootDir . DIRECTORY_SEPARATOR . 'html');
}
}
kuba's answer is along the right lines, but I think it is cleaner to use setWebDir
within setup
:
class ProjectConfiguration extends sfProjectConfiguration
{
public function setup()
{
$this->setWebDir($this->rootDir . '/html');
}
}
I would generally prefer not to use a symlink, because it clutters up the root folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With