zen cart教程的右側欄目文件調用分析,zencart教程

今天的 zencart教程 是 zen cart系統的右側欄目


zen cart系統的右側欄目
zen cart系統的右側欄目也左側欄目運行的機制一樣,都是先從數據庫中讀出欄目文件.然後根據文件名稱來顯示對應的欄目塊.


右邊的搜索模塊.includes/templates/template_default/common /tpl_box_default_right.php,這個是顯示右邊欄目子模塊的內容的。每個模塊的內容,都是通過他來顯示的。裏面主要有兩個參 數,$box_id,$content.
$box_id,$content來自includes/modules/column_right.php中,通 過$column_right_display= $db->Execute(“select layout_box_name from ” . TABLE_LAYOUT_BOXES . ” where layout_box_location=1 and layout_box_status=1 and layout_template =’” . $template_dir . “‘” . ‘ order by layout_box_sort_order’);查詢顯示出來的。
比如查詢模塊,他就是通過includes/modules/sidebox/search.php文件來處理的,他包含了tpl_search.php

今天的 zencart教程 zen cart系統的右側欄目 就講完了 http://zencart.me/archives/158
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章