core_Extension_FilterChainWithPrivate

core_Extension_FilterChainWithPrivate
Maple Core's FilterChain - Load maple filter from default directory (FILTER_DIR) and private filter directory (PRIVATE_FILTER_DIR).

o Usage

(1) Download and put file to maple directory.

(2) Change FilterChain service to this class in config/base.ini.

[FilterChain]
name = Extension_FilterChainWithPrivate
path = core/Extension/FilterChainWithPrivate.class.php

(3) Define PRIVATE_FILTER_DIR. (maybe, maple.inc.php.)

define('PRIVATE_FILTER_DIR', WEBAPP_DIR . '/filters');

(4) Put your application filter to "PRIVATE_FILTER_DIR"'s directory.


o Download
- core_Extension_FilterChainWithPrivate 1.0.0


以前に紹介した、アプリケーションごとにそのアプリケーションだけに適応するような Filter を設置するディレクトリを準備する hack ですが、最近はこのように FilterChain サービスそのものを別のものに切り替えて使用しています。

名前が少々長いし、これ以上の付加要素を追加する場合の FilterChain の名称に少々困りそうな感じ。今のところないので大丈夫ですが。

トラックバック(0)

このブログ記事を参照しているブログ一覧: core_Extension_FilterChainWithPrivate

このブログ記事に対するトラックバックURL: http://hatotech.org/mt-admin/mt-tb.cgi/586

コメントする

このブログ記事について

このページは、が2006年5月16日 00:52に書いたブログ記事です。

ひとつ前のブログ記事は「Camelot Herald」です。

次のブログ記事は「超腰痛」です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。

Powered by Movable Type 4.01