Z
Size: a a a
Z
АХ
Z
Z
АХ
АХ
АХ
O
EB
onRun
и onRender
public function onRun()Не до конца понимаю зачем так сделано, ведь если пост не найден на этапе onRun, то он и не будет найден на onRender, тем более выдаст 404 с onRun. Предполагаю что в каких-то сценариях так надо, но в каких?
{
$this->categoryPage = $this->page['categoryPage'] = $this->property('categoryPage');
$this->post = $this->page['post'] = $this->loadPost();
if (!$this->post) {
$this->setStatusCode(404);
return $this->controller->run('404');
}
}
public function onRender()
{
if (empty($this->post)) {
$this->post = $this->page['post'] = $this->loadPost();
}
}
NK
onRun
и onRender
public function onRun()Не до конца понимаю зачем так сделано, ведь если пост не найден на этапе onRun, то он и не будет найден на onRender, тем более выдаст 404 с onRun. Предполагаю что в каких-то сценариях так надо, но в каких?
{
$this->categoryPage = $this->page['categoryPage'] = $this->property('categoryPage');
$this->post = $this->page['post'] = $this->loadPost();
if (!$this->post) {
$this->setStatusCode(404);
return $this->controller->run('404');
}
}
public function onRender()
{
if (empty($this->post)) {
$this->post = $this->page['post'] = $this->loadPost();
}
}
EB
Schema::table(self::TABLE_NAME, function ($table) {
$table->json('content')->change();
});
Unknown column type "json" requested. Any Doctrine type that you use has to be registered with \Doctrine\DBAL\Types\Type::addType(). You can get a list of all the known types with \Doctrine\DBAL\Types\Type::getTypesMap(). If this error occurs during database i
ntrospection then you might have forgot to register all database types for a Doctrine Type. Use AbstractPlatform#registerDoctrineTypeMapping() or have your custom types implement Type#getMappedDatabaseTypes(). If the type name is empty you might have a problem
with the cache or forgot some mapping information.
EB
EB
Schema::table(self::TABLE_NAME, function ($table) {
$table->text('content_json')->nullable();
});
my
Schema::table(self::TABLE_NAME, function ($table) {
$table->text('content_json')->nullable();
});
EB
E
АХ
S
S
АХ