How do I use Symfony? Print

  • 57

All our servers have Symfony pre-installed.

On shared hosting accounts, we recommend that you use Maestro to setup your Symfony project in our shared hosting servers.

Look at the following list of versions and their locations:

Symfony version Library path
Symfony 1.0.x /usr/local/php/symfony10/lib
Symfony 1.1.x /usr/local/php/symfony11/lib
Symfony 1.2.x /usr/local/php/symfony12/lib
Symfony 1.3.x /usr/local/php/symfony13/lib
Symfony 1.4.x /usr/local/php/symfony14/lib

For Symfony 2, you will need to include the framework files within your project or site. Read the configuration and installation section of the Symfony 2 manual.


Maestro

ServerGrove has an easy to use interface to help install and deploy symfony applications on shared hosting accounts. Learn more about Maestro here.


Symfony 1.4.x configuration sample

 

 

 

config/ProjectConfiguration.class.php:

 

require_once '/usr/local/php/symfony14/lib/autoload/sfCoreAutoload.class.php';
sfCoreAutoload::register();

class ProjectConfiguration extends sfProjectConfiguration
{
public function setup()
{
// for compatibility / remove and enable only the plugins you want
$this->enableAllPluginsExcept(array('sfPropelPlugin', 'sfCompat10Plugin'));
}
}

?>


Symfony 1.2.x configuration sample

 

 

 

config/ProjectConfiguration.class.php:

 

require_once '/usr/local/php/symfony12/lib/autoload/sfCoreAutoload.class.php';
sfCoreAutoload::register();

class ProjectConfiguration extends sfProjectConfiguration
{
public function setup()
{
// for compatibility / remove and enable only the plugins you want
$this->enableAllPluginsExcept(array('sfDoctrinePlugin', 'sfCompat10Plugin'));
}
}

?>


Symfony 1.1.x configuration sample

 

 

 

 


config/ProjectConfiguration.class.php:


require_once '/usr/local/php/symfony11/lib/autoload/sfCoreAutoload.class.php';
sfCoreAutoload::register();

class ProjectConfiguration extends sfProjectConfiguration
{
public function setup()
{
}
}

?>


Symfony 1.0.x configuration sample

 

 

 

 


config/config.php:

 

// symfony directories
$sf_symfony_lib_dir  = '/usr/local/php/symfony10/lib';
$sf_symfony_data_dir = '/usr/local/php/symfony10/data';

?>


Was this answer helpful?

« Back