当我运行以下查询时:
select convert(int, getdate())
Run Code Online (Sandbox Code Playgroud)
我得到了结果:
-----------
41238
(1 row(s) affected)
Run Code Online (Sandbox Code Playgroud)
有谁知道这是什么意思?
我无处可寻.所以我问:在silex上,为什么我们使用bind()?例如,在静态页面的这种路由上:
$pages = array(
'/' => 'index',
'/blog' => 'blog',
'/about' => 'about',
);
foreach($pages as $route => $view) {
$api->get($route, function(Silex\Application $app) use($view) {
return $app['twig']->render($view.'.html');
})->bind($view);
}
Run Code Online (Sandbox Code Playgroud)