在使用smarty模板的文章網站上,我需要截斷主要內容以創建預告片。我可以通過字符截斷,但第一段的長度是完全未知的文章。 我想要的東西更聰明,只是表明第一段: 內容: This is my first paragraph and I want to display this and only this.
This the rest of the content and it is very l
我在我的calendar.tpl文件中有smarty數組。我嘗試將該數組發送到javascript.but但我不知道該怎麼做。 PHP文件 public function hookDisplayCarrierExtraContent()
{
$DeliveryWeek=new DeliveryWeek();
$resul=$DeliveryWeek->getweekday();
$