Home >Backend Development >PHP Tutorial >Thinkphp filter js failure_PHP tutorial

Thinkphp filter js failure_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:17:27928browse

<?<span php
</span><span class</span> AdsModel <span extends</span><span  CommonModel {    
    </span><span //</span><span  自动验证设置</span>
    <span protected</span> <span $_validate</span>     =     <span array</span><span (
 
        );
    </span><span //</span><span  自动填充设置</span>
    <span protected</span> <span $_auto</span>     =     <span array</span><span (
            </span><span array</span>('ad_code','getCode',1,'callback'), <span //</span><span  对name字段在新增的时候回调getName方法</span>
<span         );
 
    </span><span protected</span> <span function</span> getCode(<span $ad_code</span><span ){
        </span><span return</span> <span htmlspecialchars</span>(<span $ad_code</span><span );
    }
}</span>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/626605.htmlTechArticle? AdsModel = = ('ad_code','getCode',1,'callback'), getCode( (. ..
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn