belisoful/prado-composer-extension
最新稳定版本:v1.0.0
Composer 安装命令:
composer require belisoful/prado-composer-extension
包简介
The Base example PRADO Composer Extension
README 文档
README
This is a Minimal base composer extension for PRADO Framework. This automatically adds the Pages directory to the TPageService::onAdditionalPagePaths and loads the errorMessages.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist pradosoft/prado-composer-extension "*"
or add
"pradosoft/prado-composer-extension": "*"
to the require section of your composer.json file.
Setup
Once the extension is installed, load the extension in your Prado application config by specifying the extension name as a module id.
Add the module to the application configuration without the class. For example, like this:
<modules> <module id="pradosoft/prado-composer-extension" PropertyA='value1' /> </module>
Usage
Add the following Application Parameter to your application configuration: PluginContentId. for example like this:
<parameters> <parameter id="PluginContentId" value='my-layout-content-id' /> </parameters>
Set the PluginContentId to the name of the main TPlaceholderContent ID of your layout so the plugins can be loaded properly.
Follow the panel link to http://application/web/index.php?page=Example On the index page you'll see extension specific content.
Extension
The composer.json uses a "type" of "prado4-extension" and will load the class from ["extra"]["bootstrap"] for the module id/package name. Use these specific parameters and values to designate and use your own prado composer extension.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2022-11-30