обработчик смены шаблона для страницы Подробнее...
Переменные | |
if(!($row=Wrong\Models\Pages::find($_POST['id']))) if($user->access() ->is_system($row)) if(! $user->access() ->write($row)) if(!in_array($_POST['template_id'], array_column(Wrong\Models\Templates::all_available(), 'id'))) | $sth = $dbh->prepare("UPDATE `pages` SET `template_id` = :template_id WHERE `id` = :id") |
обработчик смены шаблона для страницы
См. определение в файле edit-template.php
if (!( $row=Wrong\Models\Pages::find( $_POST[ 'id']))) if ( $user->access() ->is_system( $row)) if (! $user->access() ->write( $row)) if (!in_array( $_POST[ 'template_id'], array_column(Wrong\Models\Templates::all_available(), 'id'))) $sth = $dbh->prepare("UPDATE `pages` SET `template_id` = :template_id WHERE `id` = :id") |
См. определение в файле edit-template.php строка 28