tetsunosukeのnotebook

tetsunosukeのメモです

PHPのPear::Authの代わりは・・・?

CGI::Application::Plugin::AuthenticationでOK?

[note]CGI::Applicationで、run_modesに含まれないmodeが来たときの挙動は・・・?

No such run mode 'XXXX' になってしまう。これをカスタムエラーページ(404)にする方法は?

[note] デフォルトのテンプレート名

This method takes the name of a template file, a reference to template data or a FILEHANDLE and returns an HTML::Template object. If the filename is undefined or missing, CGI::Application will default to trying to use the current run mode name, plus the extension ".html".

デフォルトのテンプレート名はrun mode + ".html"だそうだ。