AA
Size: a a a
AA
AS
AI
ТК
composer cc
composer create-project evolutioncms/evolution:2.1.x-dev .
/*
Ставим пока в ручном режиме, потому что следующая строчка вызывает ошибку
//php install/cli-install.php --database_server=localhost --database=sushi --database_user=wp --database_password=wp --table_prefix=evo_ --cmsadmin=admin --cmsadminemail=tim0ffey@mail.ru --cmspassword=admin --language=ru --mode=new --installData=n --removeInstall=y
Template Variables:
PHP Fatal error: Uncaught Error: Class 'EvolutionCMS\Models\Category' not found in /srv/www/sushi/public_html/install/src/functions.php:668
Stack trace:
#0 /srv/www/sushi/public_html/install/cli-install.php(1053): getCreateDbCategory('SEO', Object(SqlParser))
#1 {main}
thrown in /srv/www/sushi/public_html/install/src/functions.php on line 668
*/
printf "<?php\nreturn true;" > custom/config/app/debug.php
mkdir custom/config/tracy
printf "<?php\nreturn 'manager';" > custom/config/tracy/active.php
php artisan package:create main
php artisan package:installrequire zeeyn/evocms-custom-template "*"
php artisan ect:install
EvolutionCMS\\Main\\Controllers\\
"/core/custom/packages/BaseController.php"
<?php
namespace EvolutionCMS\Main\Controllers;
use Illuminate\Support\Facades\Cache;
//Базовый класс который занимается обработкой/кэшированием и прочими вещами.
class BaseController
{
public $data = [];
public function __construct()
{
$this->evo = EvolutionCMS();
ksort($_GET);
$cacheid = md5(json_encode($_GET));
if ($this->evo->getConfig('enable_cache')) {
$this->data = Cache::rememberForever($cacheid, function () {
$this->globalElements();
$this->render();
return $this->data;
});
} else {
$this->globalElements();
$this->render();
}
$this->noCacheRender();
$this->sendToView();
}
public function render()
{
}
public function noCacheRender()
{
}
public function globalElements()
{
}
public function sendToView()
{
$this->evo->addDataToView($this->data);
}
}
E
composer cc
composer create-project evolutioncms/evolution:2.1.x-dev .
/*
Ставим пока в ручном режиме, потому что следующая строчка вызывает ошибку
//php install/cli-install.php --database_server=localhost --database=sushi --database_user=wp --database_password=wp --table_prefix=evo_ --cmsadmin=admin --cmsadminemail=tim0ffey@mail.ru --cmspassword=admin --language=ru --mode=new --installData=n --removeInstall=y
Template Variables:
PHP Fatal error: Uncaught Error: Class 'EvolutionCMS\Models\Category' not found in /srv/www/sushi/public_html/install/src/functions.php:668
Stack trace:
#0 /srv/www/sushi/public_html/install/cli-install.php(1053): getCreateDbCategory('SEO', Object(SqlParser))
#1 {main}
thrown in /srv/www/sushi/public_html/install/src/functions.php on line 668
*/
printf "<?php\nreturn true;" > custom/config/app/debug.php
mkdir custom/config/tracy
printf "<?php\nreturn 'manager';" > custom/config/tracy/active.php
php artisan package:create main
php artisan package:installrequire zeeyn/evocms-custom-template "*"
php artisan ect:install
EvolutionCMS\\Main\\Controllers\\
"/core/custom/packages/BaseController.php"
<?php
namespace EvolutionCMS\Main\Controllers;
use Illuminate\Support\Facades\Cache;
//Базовый класс который занимается обработкой/кэшированием и прочими вещами.
class BaseController
{
public $data = [];
public function __construct()
{
$this->evo = EvolutionCMS();
ksort($_GET);
$cacheid = md5(json_encode($_GET));
if ($this->evo->getConfig('enable_cache')) {
$this->data = Cache::rememberForever($cacheid, function () {
$this->globalElements();
$this->render();
return $this->data;
});
} else {
$this->globalElements();
$this->render();
}
$this->noCacheRender();
$this->sendToView();
}
public function render()
{
}
public function noCacheRender()
{
}
public function globalElements()
{
}
public function sendToView()
{
$this->evo->addDataToView($this->data);
}
}
DL
ТК
php artisan package:installrequire zeeyn/evocms-custom-template "*"
The "wikimedia/composer-merge-plugin" plugin was skipped because it requires a Plugin API version ("^1.1") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires wikimedia/composer-merge-plugin dev-master -> satisfiable by wikimedia/composer-merge-plugin[dev-master].
- wikimedia/composer-merge-plugin dev-master requires composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
You are using a snapshot build of Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report an issue to them to ask them to support Composer 2. To work around this you can run Composer with --ignore-platform-req=composer-plugin-api, but this may result in broken plugins and bigger problems down the line.
DL
В
К
К
К
В
ВМ
ВМ
Н
DL