Changeset 20667

Show
Ignore:
Timestamp:
10/04/08 11:12:10 (3 months ago)
Author:
anatoo
Message:

細かいところの修正、設置方法の追加

Location:
events/phpframework/plain_php/trunk
Files:
2 added
1 modified

Legend:

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

    r20610 r20667  
    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'); 
     5$c = ref(new ApplicationContext) 
     6        ->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        ->setDbPassword('phwittr'); 
    1513ObjectBuilder::setApplicationContext($c); 
    1614