Show
Ignore:
Timestamp:
10/03/08 17:45:22 (3 months ago)
Author:
anatoo
Message:

bug fix

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • events/phpframework/plain_php/trunk/index.php

    r20339 r20610  
    33 
    44 
     5$c = new ApplicationContext; 
     6$c->setBasePath(dirname(__FILE__)) 
     7  ->setBaseUrl('http://localhost/phwittr') 
     8  ->setTemplateBasePath(dirname(__FILE__) . '/resource') 
     9  ->setTemplateBaseUrl('http://localhost/phwittr/resource') 
     10  ->setDsn('mysql:dbname=phwittr;host=127.0.0.1') 
     11  ->setDbUser('phwittr') 
     12  ->setCookieDomain('localhost') 
     13  ->setCookiePath('/phwittr') 
     14  ->setDbPassword('phwittr'); 
     15ObjectBuilder::setApplicationContext($c); 
     16 
     17 
    518$response = ref(new PhwittrFront)->process(new Request('UTF-8'), $c, new RendererBuilder($c)); 
    6 /* TODO 例外handlerをつける */