• 3841阅读
  • 1回复

【phpwind应用开发教程】常见开发技巧之模板加载 [复制链接]

上一主题 下一主题
离线太史慈
 

发帖
777
金币
626
威望
556
只看楼主 倒序阅读 使用道具 楼主  发表于: 2013-04-18
模板文件的另类加载方法:
常见的模板加载就是一句
[code brush:text;toolbar:false;]$this->setTemplate('index_run');[/code]但是,也是可以加参数指定具体的模板目录的
[code brush:text;toolbar:false;]$this->setTemplatePath('TPL:weibojuhe');
$this->setTemplateExt('htm');
$this->setTemplate('index_run');[/code]自己可以尝试下。



我们用这个方法同样可以实现后台目录式的加载
比如我们有个功能的模板文件在template/admin/item_site/index.htm,我们这样写的话,windows下是没问题的,但是linux服务器下却识别不了

[code brush:text;toolbar:false;]$this->setTemplate('item_site/index');[/code]
我提供一个方法
[code brush:text;toolbar:false;]$this->setTemplatePath('EXT:fenxiang.template.admin.item_site');
$this->setTemplateExt('htm');
$this->setTemplate('index');[/code]
离线2724tjqo

发帖
53
金币
53
威望
0
只看该作者 沙发  发表于: 2013-10-17
needing suppliers
the actual media reporter opened through querying" × Lin Business Company.,Fake Oakley Holbrook, Ltd. "office telephone, surnamed Xiong woman professional, stated product sales overseer surnamed Li prior to really the customer, however he or she had been really passionate person in the actual improvement associated with brand new expense investing. For that on the internet setting associated with procedure from the organization presumably asked Ponzi plan, item high quality problems as well as difficulties associated with unnaturally higher costs,How To Spot Fake Ray Bans, Skip Xiong downright,Fake Gucci Sunglasses, unimportant solutions. Customers ought to watch out for rip-off since the CLOSED CIRCUIT "× Lin Business Company., Ltd. inch is really a e-commerce in the united kingdom although not the bodily shop, therefore concerned fooled netizens have discovered absolutely no redress. This particular media reporter approached the actual Local authority or council,Replica Designer Sunglasses, the actual personnel stated absolutely no problem had been obtained. Nevertheless, this particular setting associated with procedure might be involved with unlawful fund-raising, or even offers remnants of the Ponzi plan,Replica Chanel Sunglasses, the actual personnel suggests which customers straight to their own nearby law enforcement division statement. He or she stated the actual Ponzi plan that's the method to high-return method to appeal to much more traders,Replica Prada Sunglasses, the majority of traders begin including rip-off or even known as OP individuals might have a few crop,Cheap Fake Ray Bans, since the owner may always soak up money with regard to later on Payment associated with prior entrants, to be able to allow much more individuals think as well as sign up for, however whenever much more individuals became a member of, organizers as soon as steered clear of depart, can lead to a lot of traders within monetary deficits. Law enforcement thought associated with unlawful fund-raising the other day morning,Fake Prada Sunglasses, this particular heavy feeling associated with protection however there isn't any enticement Ng,Fake Chanel Sunglasses, associated with buddies towards the south Town law enforcement division statement, law enforcement obtained a study associated with whistleblower aspire to supply much more materials involved with this particular issue as well as connected staff. Law enforcement evaluation, depending on info supplied by the actual informants to look for the preliminary a part of unlawful fund-raising conduct. Because the amount of staff included, the problem is going to be along the way associated with Financial Analysis Detachment is actually accountable. With regard to netizens reveal this can be a standard Ponzi plan methods, media reporter discovered in the law enforcement division that,Cheap Replica Sunglasses, Ponzi strategies tend to be unlawful funding. Textual content or reporter reporter Chen Guan Wellness
Lately, their state Local authority or council Legal Matters Workplace released the actual "Measures for that Management associated with breastmilk alternatives (draft)", needing suppliers, product sales marketing will no less than six months associated with breastmilk alternatives, cannot be offered beneath the marketplace cost associated with breastmilk alternatives, or even encounter serious consequence, the most fee to become dollar thirty,Fake Oakley Radar, 000. The other day, the actual media reporter frequented the town a number of grocery stores had been amazed to locate a few grocery stores overlook "forbidden market order" continues to be on the section (0-6 months) whole milk with regard to marketing,Fake Oakley Frogskins, whilst Dangdang and several additional big electrical power provider web site the area whole milk marketing statement offers nearly total elimination. Grocery store: purchase whole milk in order to deliver playthings Based on the "Measures for that Management associated with breastmilk alternatives (Draft)" offers which suppliers, retailers might not marketing babies under six months associated with breastmilk alternatives, including decrease purchase, present items,Replica Ray Ban Wayfarer, presents, essential suggestions, share marketing supplies along with other items a number of methods; producers cannot make use of the promotion "human emulsification", "breast milk" along with other course words and phrases, infractions is going to be disciplined through 1,Fake Ray Ban Wayfarer, 000 yuan in order to thirty,Replica Ray Bans, 000 yuan good; amount to the criminal offense, will be kept criminally accountable. Reporters the other day within Jingzhou Region using the grocery store discovered how the whole milk continues to be prior to the large battle counter tops marketing greeting card.
相关的主题文章:

  
   [url=http://www.haoask.com/home.php?mod=space
快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
提到某人:
选择好友
上一个 下一个