Pre&Post コントローラー
/app/addons/attachments/controllers/backend/products.post.php[controller名].[pre/post].php<?php
...
if ($mode == 'update') {
// Assign attachments files for products
$attachments = fn_get_attachments('product', $_REQUEST['product_id'], 'M', DESCR_SL);
Registry::set('navigation.tabs.attachments', array (
'title' => __('attachments'),
'js' => true
));
Registry::get('view')->assign('attachments', $attachments);
}最終更新