CmsType1Test03
構成
$MT_DIR/
|__ plugins/
| |__ CmsType1Test03/
| |__ config.yaml
| |__ lib/
| | |__ CmsType1Test03
| |__ ListAction.pm
ソース
config.yaml
id: cmstype1test03
key: CmsType1Test03
name: CmsType1Test03
version: 0.00
# アプリケーション
applications:
# CMS管理画面
cms:
# リストアクション
list_actions:
# ページ
page:
test_lists:
label: TestView2
order: 1000
handler: $CmsType1Test03::CmsType1Test03::ListAction::hdlr_func
lib/CmsType1Test03/Callback.pm
package CmsType1Test03::ListAction;
use strict;
use MT::FileMgr;
use Data::Dumper;
sub hdlr_func{
# パラメータ取得
my ($app) = @_;
}
sub debug{
my ($data) = @_;
$Data::Dumper::Terse = 1;
$Data::Dumper::Indent = 1;
my $dump = Dumper($data);
my $file = "/home/httpd/cgi-bin/mt/aaa.txt";
my $fmgr = MT::FileMgr->new('Local');
$fmgr->put_data($dump, $file);
}
1;
結果
変更
最終更新:2012年02月05日 13:07