书栈网 · BookStack 本次搜索耗时 0.011 秒,为您找到 889 个相关结果.
  • 3. Application

    870 2019-09-21 《Slim 3 中文文档》
    Application Application 配置 获取 Settings Slim 的默认设置 Application Application ,(或者 Slim\App ) 是你的 Slim 应用程序的入口,它被用于注册那些链接到回调和控制器的路由。 // 实例化 App 对象 $app = new \Slim\App (...
  • GET Routes

    399 2019-09-21 《Slim 2 Document》
    GET GET Use the Slim application’s get() method to map a callback function to a resource URI that is requested withthe HTTP GET method. <? php $app = new \Slim\Slim ();...
  • Middleware

    481 2019-09-21 《Slim 3 Document》
    Middleware What is middleware? How does middleware work? How do I write middleware? Closure middleware example. Invokable class middleware example How do I add middleware? App...
  • Retrieving Current Route

    496 2019-09-21 《Slim 3 Document》
    Retrieving Current Route Retrieving Current Route If you ever need to get access to the current route within your application all you have to do is call the request class’ getA...
  • CSRF Protection

    467 2019-09-21 《Slim 3 Document》
    CSRF Protection Installation Usage Fetch the CSRF token name and value CSRF Protection Slim 3 uses the optional standalone slimphp/Slim-Csrf PHP component to protect your ap...
  • Overview

    431 2019-09-21 《Slim 2 Document》
    Overview Overview Heads Up! Flash messages require sessions. If you do not use the \Slim\Middleware\SessionCookie middleware, you must start a native PHP session yourself. S...
  • Custom

    390 2019-09-21 《Slim 2 Document》
    Custom Custom Custom hooks may be created and invoked in a Slim application. When a custom hook is invoked with applyHook() , it willinvoke all callables assigned to that hook....
  • Cook book

    803 2019-09-21 《Slim 3 Document》
    Trailing / in routes Retrieving IP address Retrieving Current Route Using Eloquent with Slim Using Doctrine with Slim Using Atlas with Slim Enabling CORS Getting and Mocki...
  • POST Routes

    355 2019-09-21 《Slim 2 Document》
    POST POST Use the Slim application’s post() method to map a callback function to a resource URI that is requested withthe HTTP POST method. <? php $app = new \Slim\Slim...
  • Overview

    402 2019-09-21 《Slim 2 Document》
    Overview Overview A Slim application delegates rendering of templates to its view object. A Slim application view is a subclassof \Slim\View that implements this interface: <...