2008-12-18

More on masterhost

I use symfony framework for my web development. I'm very glad that this one doesn't enforce you to use the directory structure it creates by default. So, if your shared host public directory is not "web" (symfony default), but something like "www" or "public_html", just call setWebDir method from your project confirugation's setup method, just like this:
class ProjectConfiguration extends sfProjectConfiguration
{
  public function setup()
  {
    $this->setWebDir(sfConfig::get('sf_root_dir').'/www');
    // Change "www" to your public directory name
  }
}

Комментариев нет: