К
Size: a a a
К
SV
К
К
К
SV
SV
К
RewriteRule ^(.*)/(.*)$ $1.html?q=$2 [L,S,QSA]
К
К
SV
К
SV
SV
ON
core/custom/packages/vendorname/packagename/src/Test.class.php
где<?php
namespace Vendorname\Packagename;
class Test
{
public function __construct()
{
}
public function checkIt()
{
return 'hello';
}
}
core/custom/packages/vendorname/packagename/composer.json
где:bla bla bla
"autoload": {
"psr-4": {
"Vendorname\\Packagename\\": "src/"
}
},
bla bla bla
core/custom/composer.json
где bla bla bla
"autoload": {
"psr-4": {
"EvolutionCMS\\Main\\": "packages/main/src/",
"Vendorname\\Packagename\\": "packages/vendorname/packagename/src/"
}
}
bla bla bla
bla bla bla
$t = new Test();
$this->data['test] = $t->checkIt();
bla bla bla
Class 'EvolutionCMS\Main\Controllers\Test' not found
use Vendorname\Packagename\Test;
Class 'Vendorname\Packagename\Test' not found
SV
К
К
К