Skip to content

Instantly share code, notes, and snippets.

@atsu666
Created August 9, 2014 09:51
Show Gist options
  • Save atsu666/b9ba07fd95de971b5321 to your computer and use it in GitHub Desktop.
Save atsu666/b9ba07fd95de971b5321 to your computer and use it in GitHub Desktop.
ループのネスト a-blog cms - テンプレートエンジン
<?php
class ACMS_GET_CustomModule extends ACMS_GET
{
function get()
{
$Tpl = new Template($this->tpl, new ACMS_Corrector());
// 中略
foreach ( $entryAry as $row ) {
foreach ( $tagAry as $tag ) {
$Tpl->add(array('tag:loop', 'entry:loop'), $tag);
}
$Tpl->add('entry:loop', $row);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment