If you use shared hosting, you probably have public_html directory instead web that symfony projects uses.
if you want to change default folder simply rename web directory to desired name and add following line of code to config/ProjectConfiguration.class.php file
$this->setWebDir($this->getRootDir().'/public_html');
file should look something like that:
/* file config/ProjectConfiguration.class.php */
require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php';
sfCoreAutoload::register();
class ProjectConfiguration extends sfProjectConfiguration
{
public function setup()
{
$this->setWebDir($this->getRootDir().'/public_html');
$this->enablePlugins('sfDoctrinePlugin');
$this->enablePlugins('sfFormExtraPlugin');
}
}
Comments:1
Dodaj komentarz