I want to use the following directory strucure:

home
---xx
------private_html
---------api
------------apps
------------cache
------------config
------------...
------public_html
---------api
------------index.php
------------frontend_dev.php
------------...

But i don't know what files i need to edit to get it work.

ProjectConfiguration.class.php
<?php
//require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/
sfCoreAutoload.class.php';
require_once '../../private_html/api/lib/vendor/symfony/lib/autoload/
sfCoreAutoload.class.php';
sfCoreAutoload::register();

class ProjectConfiguration extends sfProjectConfiguration
{
  public function setup()
  {
    $this->setWebDir($this->getRootDir().'../../public_html/api');
    $this->enablePlugins('sfDoctrinePlugin');
  }
}


frontend_dev.php
<?php

// this check prevents access to debug front controllers that are
deployed by accident to production servers.
// feel free to remove this, extend it or make something more
sophisticated.
if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')) &&
false)
{
  die('You are not allowed to access this file. Check
'.basename(__FILE__).' for more information.');
}

//require_once(dirname(__FILE__).'/config/
ProjectConfiguration.class.php');
require_once('../../private_html/api/config/
ProjectConfiguration.class.php');

$configuration =
ProjectConfiguration::getApplicationConfiguration('frontend', 'dev',
true);
sfContext::createInstance($configuration)->dispatch();


I get an php error:

Warning: require(/home/xx/public_html/api/lib/vendor/symfony/lib/
plugins/sfDoctrinePlugin/lib/database/sfDoctrineDatabase.class.php)
[function.require]: failed to open stream: No such file or directory
in /home/xx/private_html/api/lib/vendor/symfony/lib/autoload/
sfAutoload.class.php on line 188

Fatal error: require() [function.require]: Failed opening required '/
home/xx/public_html/api/lib/vendor/symfony/lib/plugins/
sfDoctrinePlugin/lib/database/
sfDoctrineDatabase.class.php' (include_path='.:/usr/lib/php:/usr/local/
lib/php') in /home/xx/private_html/api/lib/vendor/symfony/lib/autoload/
sfAutoload.class.php on line 188

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to