1. nainstalovat modulcomposer require --ignore-platform-req=php luyadev/luya-module-errorapi
2. ./vendor/bin/luya migrate
3. ./vendor/bin/luya import
4. confighttps://it-tools.tech/token-generator
'modules' => [
// ...
17 views
<?phpuse luya\cms\models\NavItemPage;$page = NavitemPage::find()->where(['nav_item_id' => 128])->one(); if($page)echo $page->renderPlaceholder('content'); ?>
15 views
vychází z https://mojetisky.cebin.net
Nyní je v app/modules viz. mojetisky.cz
nutno vždy odebrat newslettery a aux container v SitemapController.php ř. 102
případně přidat články
33 views
Řešeno pomocí modulu trailer
Nastaveno např. na frankuv-dvur.cz a revel-pex.com.
Popis:
Blok, který chci nastavit jako widget připravím jako samostatnou stránku. Vhodné je
13 views
./luya conversion/import/import-accounts /var/www/boftisk.cebin.info/web/firmy.xlsx
https://developpaper.com/yii2-0-framework-to-upload-excel-files-and-import-them-into-the-database/
./luya conversion/import/import-accounts /var/www/www.boftisk.cebin.info/web/firmy.xslx
composer require --prefer-dist moonlandsoft/yii2-phpexcel "*"
composer require phpoffice/phpexcel
15 views
How to Run Tests
./vendor/bin/phpunit
Check Coding Standard
In project is used PSR2 Standard
Check coding Standard
vendor/bin/phpcs --standard=PSR2 assets/ configs/ messages/ migrations/ modules/ views/
18 views
vendor/luyadev/yii-helpers/Inflector.php
ve starších verzích: vendor/luyadev/luya-core/helpers/Inflector.php
//$string = preg_replace('/[`%\+=\{\}\|\\\.<>\/\_]+/u', '', $string); // replace those chars with nothing$string = preg_replace('/[`%\+=\{\}\|\\<>\/\_]+/u', '', $string); // replace
25 views
Formuláře (vzor web vosika.cz)1. nainstalovat forms https://luya.io/packages/luyadev/luya-module-forms2. nainstalovat recaptcha https://github.com/himiklab/yii2-recaptcha-widget3. nastavit google kódy site key a secret key https://www.google.com/recaptcha/admin/create4. upravit
34 views
Config Variables
admin settings: System->Config Variables
in code:
use luya\admin\models\Config;
<?php $zobrazitcenik = Config::find()->where(['name' =>'zobrazitcenik'])->one()->value;?>
Image Filters
./vendor/bin/luya admin/filter
https://luya.io/guide/app-filters
Flush cache
./yii cache/flush-schema./luya cache/flush-schema
28 views
composer global require "fxp/composer-asset-plugin:~1.4"
composer create-project luyadev/luya-kickstarter-bootstrap4
composer create-project luyadev/luya-kickstarter:^1.0
mv luya-kickstarter/ web
cd webcd configscp env.php.dist env.php
nastavit databazi:mysql -u root -pcreate database xxx;grant
49 views