PHP code example of uraankhayayaal / yii2-page
1. Go to this page and download the library: Download uraankhayayaal/yii2-page library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
uraankhayayaal / yii2-page example snippets
'controllerMap' => [
...
'migrate' => [
...
'migrationPath' => [
...
'@uraankhayayaal/page/src/migrations',
...
],
],
],
return [
/* ... */
'domain' => 'https://yourdomain.example',
];
Url::toRoute('/page/back/index');
'custom_view_for_modules' => [
'page_front' => [
'view' => '@frontend/views/front_page/view',
],
],
sh
php yii migrate
sh
php yii fixture PageMenuItem --namespace='uraankhayayaal\page\tests\fixtures'
sh
php yii fixture PageBlockChart --namespace='uraankhayayaal\page\tests\fixtures'
sh
php yii fixture PageBlock --namespace='uraankhayayaal\page\tests\fixtures'
sh
php yii fixture PageMenuItem --namespace='uraankhayayaal\page\tests\fixtures' --interactive=0
sh
php yii fixture PageBlockChart --namespace='uraankhayayaal\page\tests\fixtures' --interactive=0
sh
php yii fixture PageBlock --namespace='uraankhayayaal\page\tests\fixtures' --interactive=0