"Silex"의 두 판 사이의 차이

12번째 줄: 12번째 줄:
$app->get('/', function() use($app) {  
$app->get('/', function() use($app) {  
     return 'Hello World!';
     return 'Hello World!';
});
$app->get('/hello/{name}', function($name) use($app) {
    return 'Hello '.$app->escape($name);
});
});



2016년 4월 16일 (토) 18:52 판

1 개요

Silex
실렉스
$app = new Silex\Application();

$app->get('/', function() use($app) { 
    return 'Hello World!';
});

$app->get('/hello/{name}', function($name) use($app) { 
    return 'Hello '.$app->escape($name); 
});

$app->run();

2 같이 보기

3 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}