ctx()->__stash['vars'];
$app_args = $app->ctx()->__stash['bootstrapper']->mt->get_args;
if($app->param('c') > 0 && is_numeric($app->param('c'))) {
$cVal = htmlspecialchars($app->param('c'));
} else {
$cVal = $app_stash['items_per_page'];
}
$itemsIncrement = $app_stash['items_per_page'];
$filename = dirname($app_args['file']) . '/index.json';
$obj = array();
try {
$items = file_get_contents($filename);
$obj = json_decode($items,true);
//配列の最後は空のダミーデータのため削除
array_pop($obj);
$jsonItemCount = count($obj);
} catch(Exception $e) {
error_log("JSONファイルが見つかりません:" . $filename . $e->getMessage(), 0);
}
?>
[イベント] 2021年4月 | ファン!ファン!JAXA!