Download the PHP package noking50/module_single_page without Composer
On this page you can find all versions of the php package noking50/module_single_page. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package module_single_page
Module single page
single page
Installing
1. Install from composer
2. Publish resoure
It would generate below files config/module_single_page.php resources/lang/vendor/module_single_page/ resources/views/vendor/module_single_page/ resources/enum/module_single_page-content_type.php
3. configure file config/module_single_page.php
-
set data table name
-
set available attach file extension
- set each using single page configure
4. migration
create single page database table, table name will be config file settings above
Usage
Package method
- get data detail
$output is an array contains key: 'dataRow_module_single_page' - Model data from given id 'form_choose_lang' - list of all avaliable language and indicate each language has setting value 'module_group' - $group value
- get data detail and other required data for edit page
$output is an array contains key: 'dataRow_module_single_page' - Model data from given $group 'form_choose_lang' - list of all avaliable language and indicate each language has setting value 'module_group' - $group value
- get data detail frontend
$output is an array contains key: 'dataRow_module_single_page' - Model data from given $group 'module_group' - $group value
- edit data
$output is an array contains key: 'msg' - success message
default controller
using a default controller in Module\Controllers\ModuleSinglePageController
- set Route like below
'single_group' is which group setting in config will be used
- set view set views in resources/views/vendor/module_single_page/