/**
* @property FileCache $cache
*/
class App {}
Inil::$app = new App();
Inil::$app->cache = new FileCache;
interface ICache {
public function method1();
}
class App {
public ?ICache $cache = null;
}
class FileCache implements ICache {
public function method1() {
echo '1';
}
}
$app = new App();
$app->cache = new FileCache();
https://disk.yandex.ru/d/FnVL7mf8VzUdQA
<?php if ($content = get_content() ) { ?>
<div class="my">
<div class="content">
<?= $content ?>
</div>
</div>
<?php }
if ($content = trim(get_content()) )
Хотите сделать видимое - type=text