CmlPHP v2.x 开发手册
//如果想使用第三方的调试台只要简单封装一个服务。实现 \Cml\Interfaces\Debug接口即可/当然直接修改模板也可以。配置 项 'debug_page' => CML_CORE_PATH.'/Tpl/debug.tpl', // debug调试信息模板 Cml::getContainer()->singleton('cml_debug', \Cml\Debug::class); 'html_exception' => CML_CORE_PATH.'/Tpl/cmlException.tpl', // 默认成功跳转 对应的模板文件 '404_page' => CML_CORE_PATH.'/Tpl/404.tpl', // 404跳转页 'debug_page' => CML_CORE_PATH.'/Tpl/debug.tpl', // LL_PATH、 CML_RUNTIME_PATH、CML_RUNTIME_CACHE_PATH、 CML_RUNTIME_LOGS_PATH、CML_APP_MODULES_PATH、 CML_IS_MULTI_MODULES这几相常量并用相应的方法替代。 参考 常用常量 Route::$urlParams。改为私有。不允许外部方法。可使用以下方法 替换。具体参考api手册 Cml0 码力 | 245 页 | 720.67 KB | 1 年前3
CmlPHP v2.x 开发手册
//如果想使用第三方的调试台只要简单封装一个服务。实现\Cml\Interfaces\Debug接口即可/当然直接 修改模板也可以。配置项 'debug_page' => CML_CORE_PATH.'/Tpl/debug.tpl', // debug调试信息模板 Cml::getContainer()->singleton('cml_debug', \Cml\Debug::class); 'html_exception' => CML_CORE_PATH.'/Tpl/cmlException.tpl', // 默认成功跳转对应的模板 文件 '404_page' => CML_CORE_PATH.'/Tpl/404.tpl', // 404跳转页 'debug_page' => CML_CORE_PATH.'/Tpl/debug.tpl', // debug调试信息模板 ULL_PATH、CML_RUNTIME_PATH、 CML_RUNTIME_CACHE_PATH、CML_RUNTIME_LOGS_PATH、 CML_APP_MODULES_PATH、CML_IS_MULTI_MODULES这几相常量并用相应的方法替代。 参 考 常用常量 Route::$urlParams。改为私有。不允许外部方法。可使用以下方法替换。具体参考api手册 Cml::0 码力 | 143 页 | 1.54 MB | 1 年前3
CmlPHP v2.x 开发手册
//如果想使用第三方的调试台只要简单封装一个服务。实现\Cml\Interfaces\Debug接口即可/当然直接 修改模板也可以。配置项 'debug_page' => CML_CORE_PATH.'/Tpl/debug.tpl', // debug调试信息模 板 Cml::getContainer()->singleton('cml_debug', \Cml\Debug::class); /*系统模板定义*/ 'html_exception' => CML_CORE_PATH.'/Tpl/cmlException.tpl', // 默认成功跳转对应的模板 文件 '404_page' => CML_CORE_PATH.'/Tpl/404.tpl', // 404跳转页 'debug_page' => CML_CORE_PATH.'/Tpl/debug.tpl', // debug调试信息模板 CML_APP_FULL_PATH 、 CML_RUNTIME_PATH 、 CML_RUNTIME_CACHE_PATH 、 CML_RUNTIME_LOGS_PATH 、 CML_APP_MODULES_PATH 、 CML_IS_MULTI_MODULES这几相常量并用相应的方法替代。 参考 常用 常量 Route::$urlParams。改为私有。不允许外部方法。可使用以下方法替换。 具体参考api手册 Cml0 码力 | 251 页 | 973.37 KB | 1 年前3
《Slides Dev Web》02. Introduction aux frameworks PHP
popularité est liée au fait qu’il est simple à mettre en œuvre, gratuit et libre. Tout un tas de modules est fourni avec pour faire de l’imagerie, des bases de données, du XML, etc. Et plus encore sur 27https://httpd.apache.org/docs/current/mod/mod_rewrite.html 28http://nginx.org/en/docs/http/ngx_http_core_module.html#try_files 18 // 04-routes/index.php $uri = $_SERVER['REQUEST_URI'], $matches = [];0 码力 | 24 页 | 1.03 MB | 1 年前3
Falcon v3.0.0 Documentationapplicable. Let’s start by adding an additional import statement to test_app.py. We need to import two modules from unittest.mock: from unittest.mock import mock_open, call Now add the following test: # "monkeypatch" mocks, but they are more localized and do not # have to be monkey-patched into standard library modules (always a # risky business). mock_file_open = mock_open() fake_uuid = '123e4567-e89b-12d3-a456-426655440000' Falcon’s docstrings are quite extensive, and so you can learn a lot just by poking around Falcon’s modules from a Python REPL, such as IPython or bpython. Also, don’t be shy about pulling up Falcon’s source0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.1 Documentationapplicable. Let’s start by adding an additional import statement to test_app.py. We need to import two modules from unittest.mock: from unittest.mock import mock_open, call Now add the following test: # "monkeypatch" mocks, but they are more localized and do not # have to be monkey-patched into standard library modules (always a # risky business). mock_file_open = mock_open() fake_uuid = '123e4567-e89b-12d3-a456-426655440000' Falcon’s docstrings are quite extensive, and so you can learn a lot just by poking around Falcon’s modules from a Python REPL, such as IPython or bpython. Also, don’t be shy about pulling up Falcon’s source0 码力 | 344 页 | 1.16 MB | 1 年前3
The Laravel Handbook
Node.js first. This command will create a package.json file, a package-lock.json and a node_modules folder. Then run this: npx tailwindcss init -p This will create the tailwind.config.js and fan of investing some money and saving time instead. Forge in particular is official, made by the core team of Laravel, lots and lots of people use it (they claim over 500,000 sites are powered by Forge)0 码力 | 111 页 | 14.25 MB | 1 年前3
Learning Laravelexisting third-party packages. Main Features MVC Laravel uses the MVC model, therefore there are three core-parts of the framework which work https://riptutorial.com/ 2 together: models, views and controllers option. The path is relative to the application's base path. php artisan make:migration --path=app/Modules/User/Migrations Inside a database migration Each migration should have an up() method and a down() app directory to src. Override Application class The directories name app is hardcoded into the core Application class, so it has to be overridden. Create a new file Application.php. I prefer to keep0 码力 | 216 页 | 1.58 MB | 1 年前3
Falcon v3.1.1-b3 Documentationapplicable. Let’s start by adding an additional import statement to test_app.py. We need to import two modules from unittest. mock: from unittest.mock import mock_open, call Now add the following test: # "monkeypatch" mocks, but they are more localized and do not # have to be monkey-patched into standard library modules (always a # risky business). mock_file_open = mock_open() fake_uuid = '123e4567-e89b-12d3-a456-426655440000' Falcon’s docstrings are quite extensive, and so you can learn a lot just by poking around Falcon’s modules from a Python REPL, such as IPython or bpython. Also, don’t be shy about pulling up Falcon’s source0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-b1 Documentationapplicable. Let’s start by adding an additional import statement to test_app.py. We need to import two modules from unittest. mock: from unittest.mock import mock_open, call Now add the following test: # "monkeypatch" mocks, but they are more localized and do not # have to be monkey-patched into standard library modules (always a # risky business). mock_file_open = mock_open() fake_uuid = '123e4567-e89b-12d3-a456-426655440000' Falcon’s docstrings are quite extensive, and so you can learn a lot just by poking around Falcon’s modules from a Python REPL, such as IPython or bpython. Also, don’t be shy about pulling up Falcon’s source0 码力 | 378 页 | 1.29 MB | 1 年前3
共 65 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7













