/Upload/documents/handbook/developer-guide/developer-guide-view/compiler-path.html
HTML | 112 lines | 107 code | 5 blank | 0 comment | 0 complexity | cb8957add66fc1f60d7198d7191dff49 MD5 | raw file
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <html>
- <head>
- <title>The DoYouHaoBaby PHP Framework For PHP5 | ????????</title>
- <meta http-equiv="content-type" content="text/html; charset=gbk" />
- <meta name="Author" content="???Dyhb">
- <meta name="Keywords" content="DoYouHaoBaby,Framework">
- <meta name="Description" content="The DoYouHaoBaby PHP Framework | ?????????????">
- <link rel="stylesheet" type="text/css" href="./../../media/css/style.css" />
- <link rel="stylesheet" type="text/css" href="./../../media/css/highlight.css" />
- </head>
- <body style="margin:0">
- <div id="header"><img src="./../../media/images/logo.png" border="0" title="The DoYouHaoBaby PHP Framework Logo" ></div>
- <div id="content">
- <div id="version">
- The DoYouHaoBaby PHP Framework????????<br>
- Copyright(c) <a href="http://doyouhaobaby.net">DoYouHaoBaby.NET</a>
- All Rights Reserved.
- </div>
-
-
- <div class="menu">
- <table cellspacing=0 cellpadding=0 width="95%" border=0>
- <tbody>
- <tr>
- <th align=middle colspan=3>The DoYouHaoBaby PHP Framework????????</th>
- </tr>
- <tr>
- <td valign=bottom align=left width="25%">
- <a accesskey="p" href="../../index.html">??</a>?
- </td>
- <td valign=bottom align=middle width="50%">
- </td>
- <td valign=bottom align=right width="25%">
- <a accesskey="n" href="./index.html">??</a>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
-
- <div id="box">
- <div class="title">[ ???? ]</div>
- <div class="detail">
- <p>
- DoYouHaoBaby ?????????????<span style="color: rgb(0, 128, 0);"><strong>??????????</strong></span>??????
- ??????????????????????????????????????????????????????????????????</p>
- <p>
- ????????Index?????????</p>
- <p><DIV class=dp-highlighter><DIV class=bar></DIV>
- <OL class=dp-c>
- <LI class=alt><SPAN><SPAN class=keyword>public</SPAN><SPAN> </SPAN><SPAN class=keyword>function</SPAN><SPAN> index(){ </SPAN></SPAN></LI>
- <LI><SPAN> Template::in(true);</SPAN><SPAN class=comment>// ?????????? </SPAN><SPAN> </SPAN></SPAN></LI>
- <LI class=alt><SPAN> </SPAN><SPAN class=vars>$this</SPAN><SPAN>->display(DYHB_PATH.'/Resource/Template/AutoIndex/index_hello.html'); </SPAN></SPAN></LI>
- <LI><SPAN> Template::in(false);</SPAN><SPAN class=comment>// ???? </SPAN><SPAN> </SPAN></SPAN></LI>
- <LI class=alt><SPAN>} </SPAN></LI></OL></DIV></p>
- <p>
- ?????????<span style="color: rgb(0, 128, 0);"><strong>Template::in</strong></span>??????????????????????</p>
- <p>
- ??????????????? <span style="color: rgb(0, 128, 0);"><strong>DoYouHaoBaby\LibPHP\App\Package\Template\Template.class.php</strong></span>???????</p>
- <p><DIV class=dp-highlighter><DIV class=bar></DIV>
- <OL class=dp-c>
- <LI class=alt><SPAN><SPAN class=keyword>public</SPAN><SPAN> </SPAN><SPAN class=keyword>function</SPAN><SPAN> getCompiledPath(</SPAN><SPAN class=vars>$sTemplatePath</SPAN><SPAN>){ </SPAN></SPAN></LI>
- <LI><SPAN> </SPAN><SPAN class=keyword>if</SPAN><SPAN>(self::</SPAN><SPAN class=vars>$_bWithInTheSystem</SPAN><SPAN>===true){</SPAN><SPAN class=comment>// ????????? </SPAN><SPAN> </SPAN></SPAN></LI>
- <LI class=alt><SPAN> </SPAN><SPAN class=vars>$this</SPAN><SPAN>->_sCompiledFilePath=dirname(</SPAN><SPAN class=vars>$sTemplatePath</SPAN><SPAN>).'/Compiled/'.</SPAN><SPAN class=func>basename</SPAN><SPAN>(</SPAN><SPAN class=vars>$sTemplatePath</SPAN><SPAN>).'.compiled.php'; </SPAN></SPAN></LI>
- <LI><SPAN> </SPAN><SPAN class=keyword>return</SPAN><SPAN> </SPAN><SPAN class=vars>$this</SPAN><SPAN>->_sCompiledFilePath; </SPAN></SPAN></LI>
- <LI class=alt><SPAN> } </SPAN></LI>
- <LI><SPAN> </SPAN><SPAN class=vars>$sTemplatePath</SPAN><SPAN> =</SPAN><SPAN class=func>str_replace</SPAN><SPAN>('\\','/',</SPAN><SPAN class=vars>$sTemplatePath</SPAN><SPAN>);</SPAN><SPAN class=comment>// URL ????????? </SPAN><SPAN> </SPAN></SPAN></LI>
- <LI class=alt><SPAN> </SPAN><SPAN class=vars>$arrValue</SPAN><SPAN>=</SPAN><SPAN class=func>explode</SPAN><SPAN>('/' ,</SPAN><SPAN class=vars>$sTemplatePath</SPAN><SPAN>); </SPAN></SPAN></LI>
- <LI><SPAN> </SPAN><SPAN class=vars>$sFileName</SPAN><SPAN>=</SPAN><SPAN class=func>array_pop</SPAN><SPAN>(</SPAN><SPAN class=vars>$arrValue</SPAN><SPAN>); </SPAN></SPAN></LI>
- <LI class=alt><SPAN> </SPAN><SPAN class=comment>// D:\phpcondition\......???????? </SPAN><SPAN> </SPAN></SPAN></LI>
- <LI><SPAN> </SPAN><SPAN class=comment>// /home1/...... ??Linux??????????? </SPAN><SPAN> </SPAN></SPAN></LI>
- <LI class=alt><SPAN> </SPAN><SPAN class=keyword>if</SPAN><SPAN>( </SPAN><SPAN class=func>strpos</SPAN><SPAN>(</SPAN><SPAN class=vars>$sTemplatePath</SPAN><SPAN>,':/') && </SPAN><SPAN class=func>strpos</SPAN><SPAN>(</SPAN><SPAN class=vars>$sTemplatePath</SPAN><SPAN>,'/')!==0 && </SPAN><SPAN class=vars>$GLOBALS</SPAN><SPAN>['_commonConfig_']['TMPL_MODULE_ACTION_DEPR']=='_' && !</SPAN><SPAN class=func>strpos</SPAN><SPAN>(</SPAN><SPAN class=vars>$sFileName</SPAN><SPAN>,'_')){ </SPAN></SPAN></LI>
- <LI><SPAN> </SPAN><SPAN class=vars>$sFileName</SPAN><SPAN>=!</SPAN><SPAN class=func>empty</SPAN><SPAN class=keyword>empty</SPAN><SPAN>(</SPAN><SPAN class=vars>$arrValue</SPAN><SPAN>)?ucfirst(</SPAN><SPAN class=func>array_pop</SPAN><SPAN>(</SPAN><SPAN class=vars>$arrValue</SPAN><SPAN>)).'/'.</SPAN><SPAN class=vars>$sFileName</SPAN><SPAN>:'Public/'.</SPAN><SPAN class=vars>$sFileName</SPAN><SPAN>; </SPAN></SPAN></LI>
- <LI class=alt><SPAN> } </SPAN></LI>
- <LI><SPAN> </SPAN><SPAN class=vars>$this</SPAN><SPAN>->_sCompiledFilePath=APP_PATH.'/App/~Runtime/Cache/'.(</SPAN><SPAN class=vars>$this</SPAN><SPAN>->_sThemeName?ucfirst(</SPAN><SPAN class=vars>$this</SPAN><SPAN>->_sThemeName).'/':</SPAN><SPAN class=string>''</SPAN><SPAN>).(</SPAN><SPAN class=vars>$GLOBALS</SPAN><SPAN>['_commonConfig_']['TMPL_MODULE_ACTION_DEPR']=='/'?ucfirst(MODULE_NAME).'/':</SPAN><SPAN class=string>''</SPAN><SPAN>).</SPAN><SPAN class=vars>$sFileName</SPAN><SPAN>.'.compiled.php'; </SPAN></SPAN></LI>
- <LI class=alt><SPAN> </SPAN><SPAN class=keyword>return</SPAN><SPAN> </SPAN><SPAN class=vars>$this</SPAN><SPAN>->_sCompiledFilePath; </SPAN></SPAN></LI>
- <LI><SPAN>} </SPAN></LI></OL></DIV></p>
- <p>
- ????????????????<span style="color: rgb(0, 128, 0);"><strong>Template::in(true)</strong></span>??????????????????? <span style="color: rgb(0, 128, 0);"><strong>Compiled</strong></span> ???????????</p>
- <p>
- ????DoYouHaoBaby ????????????????????????????????????????????????Widget??????????</p>
- <p>
- ??????<span style="color: rgb(255, 0, 0);"><strong>DYHB.BLOG X1.1.1</strong></span>??????? <span style="color: rgb(0, 128, 0);"><strong>blog\App\Class\View\Widget</strong></span>?????</p>
- <p>
- ????????????? <span style="color: rgb(0, 128, 0);"><strong>??\App\~Runtime\Cache</strong></span>?????????????????<span style="color: rgb(0, 128, 0);"><strong> Template::in(true)</strong></span>???????????? <span style="color: rgb(0, 128, 0);"><strong>Template::in(false)</strong></span>???????????????</p>
- <p>
- <strong><em><u><span style="background-color: Yellow;">To be continue!</span></u></em></strong></p>
- </div>
- </div>
-
- <div class="menu">
- <table cellspacing=0 cellpadding=0 width="95%" border=0>
- <tbody>
- <tr>
- <td valign=top align=middle width="34%">
- <a accesskey="h" href="../../index.html">??</a>
- </td>
- </tr>
- <tr>
- <td valign=top align=middle width="34%">
- <a accesskey="u" href="./index.html">??</a>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
-
- </div>
- <div id="footer">Copyright (c) <a href="http://doyouhaobaby.net" title="The DoYouHaoBaby Framework" >DoYouHaoBaby</a> All rights reserved.?</div>
- </body>
- </html>