Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [symfony]skrypt nie chce wystartowac, skrypt nie chce wystartowac
big_shoes
post
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 5.01.2010

Ostrzeżenie: (0%)
-----


prosze wejsc na http://91.210.128.247/ i zobaczyc echo debugu

a kod wyglada tak
<?php
echo ('1');
require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
echo ('2');
$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'prod', true);
echo ('3');
sfContext::createInstance($configuration)->dispatch();
echo ('4');



?>
co jest zle??


Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
big_shoes
post
Post #2





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 5.01.2010

Ostrzeżenie: (0%)
-----


  1. <?php
  2.  
  3. # FROZEN_SF_LIB_DIR: /usr/share/php/symfony
  4.  
  5. require_once dirname(__FILE__).'/../lib/symfony/autoload/sfCoreAutoload.class.php';
  6. sfCoreAutoload::register();
  7.  
  8. class ProjectConfiguration extends sfProjectConfiguration
  9. {
  10.  
  11. static protected $zendLoaded = false;
  12.  
  13. public function setup()
  14. {
  15. // for compatibility / remove and enable only the plugins you want
  16.  
  17. $this->enableAllPluginsExcept(array('sfDoctrinePlugin', 'sfCompat10Plugin'));
  18. self::registerZend();
  19.  
  20. setlocale(LC_ALL, 'pl_PL.UTF-8');
  21. system('export LANG=pl_PL.UTF-8');
  22. }
  23.  
  24. static public function registerZend()
  25. {
  26. if (self::$zendLoaded)
  27. {
  28. return;
  29. }
  30.  
  31. set_include_path(sfConfig::get('sf_lib_dir').'/vendor'.PATH_SEPARATOR.get_include_path());
  32. require_once sfConfig::get('sf_lib_dir').'/vendor/Zend/Loader/Autoloader.php';
  33. Zend_Loader_Autoloader::getInstance();
  34. self::$zendLoaded = true;
  35. }
  36.  
  37. }
  38. ?>

to jest config, symfony dziala

Ten post edytował big_shoes 11.02.2010, 14:57:19
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 2.10.2025 - 18:35