Ethna_Plugin_Debugtoolbar 0.9.1 ããªãªã¼ã¹
Try & Feedback ãããã¨ããããã¾ãã
ããã¦ãè²ã
åé¡ã®ãããã¼ã¸ã§ã³ãã¤ã³ã¹ãã¼ã«ããã¦ãã¾ã£ã¦ãã¿ã¾ããã
ã¨ãããã¨ã§ãã¡ããã¡ããfixãã 0.9.1 ããªãªã¼ã¹ãã¾ããã
Fixed & Featuerd
- smarty_debug.tpl ãå梱ãã¾ããã
- template ãã£ã¬ã¯ããªç´ä¸ã«ãã·ã³ããªãã¯ãªã³ã¯ãå¼µã£ã¦ãã ãããï¼ãã¡ã¤ã«ã®å®ä½ãããã¦ãããã§ããï¼ããã¡ã¤ã«ãåå¨ããªãå ´åãE_USER_WARNING ãåãã¾ããï¼å¾è¿°ï¼
- preview 5 ã§ã® Ethna_ViewClass ã®å®è£ ã«ããããã«ã has_default_header ã®ãã§ãã¯ãããããã«ãã¾ããã(Filter, Logwriterå ±ã«)
- ActionForm ã®æ¡ä»¶ã«ãã£ã¦ã¯ Filter èªä½ã Warning ãåãã¦ãã¾ãåé¡ãä¿®æ£ãã¾ãã
- ãã©ã°ã¤ã³ã®ãã¼ã¸ã§ã³ãè¦ããããã«ãªãã¾ãã
ã»ããã¢ãã
åºæ¬çã«ååã¨åãã§ãããsmarty_debug.tpl ã«ãã·ã³ããªãã¯ãªã³ã¯ãå¼µãã¾ãã
% cd PROJECT_DIR å¿ è¦ãªæ¹ã¯ä»¥ä¸ã®2è¡ãå®è¡ããlib以ä¸ã«Ethnaãè¨ç½®ãã¦ãã ããã % ehtna pear-local channel-discover pear.ethna.jp % ethna pear-local install http://pear.ethna.jp/pear/Ethna-2.5.2009062201.tgz % ethna pear-local channel-discover openpear.org % ethna pear-local install openpear/Ethna_Plugin_Debugtoolbar downloading Ethna_Plugin_Debugtoolbar-0.9.1.tgz ... Starting to download Ethna_Plugin_Debugtoolbar-0.9.1.tgz (13,640 bytes) .....done: 13,640 bytes install-all ok: channel://openpear.org/Ethna_Plugin_Debugtoolbar-0.9.1 % cd www % ln -s ../lib/.pear/data/Ethna_Plugin_Debugtoolbar/data/www ./Debugtoolbar % cd ../template % ln -s ../lib/.pear/data/Ethna_Plugin_Debugtoolbar/data/lib/smarty_debug.tpl ./
How to Use
ä¸å¿ååãåããã¨ãæ¸ãã¦ããã¾ãã
app/PROJECT_Controller.php ããã£ã«ã¿ã§ãDebugtoolbarããå©ç¨ãã¾ãã
<?php // ...(snip)... var $filter = array( /* * TODO: when you use filter, write filter plugin name here. * (If you specify class name, Ethna reads filter class in- * filter directory) * * Example: * * 'ExecutionTime', */ 'Debugtoolbar', ); // ...(snip)...
etc/project-ini.phpããã°åºåã®æ¹æ³ãå¤æ´ãã¾ãã
<?php $config = array( $url = 'http://example.com/', // ã¢ããªã±ã¼ã·ã§ã³ã®URLãè¨å®ãã¦ãã ãããè¨å®ããªãã¨ãcssãªã©ã®ãã¡ã¤ã«ãæ£å¸¸ã«å©ç¨ã§ããªããã¨ãããã¾ãã // ...(snip)... // log // sample-1: sigile facility 'log_facility' => 'debugtoolbar', 'log_level' => 'debug', 'log_option' => 'pid,function,pos', 'log_filter_do' => '', 'log_filter_ignore' => 'Undefined index.*%%.*tpl', // ...(snip)...
ãããã¦ãã ãã£ã¦ãããã¨ããããã¾ã
ãã¹ãä¸è¶³ã§ãã¿ã¾ããï¼ï¼
ã§ããã£ã¼ãããã¯ããã ããã¨ãèªåã§æ°ã¥ãã¦ãªããã¹ã¨ãç´ãããã®ãç´ããããæ¬å½ã«å©ããã¾ãã
ã¾ã試ãã¦ããã ããã¨å¹¸ãã§ãï¼