ecshop系統,分頁文章分類調用

來源:互聯網
上載者:User
http://wenku.baidu.com/link?url=wh_I9dJVofR8uVRPVY_cS9Dt8nQf_tZJb4HB6zv1Yt0FQ6786MlZro-5CAxIwNGFGXbIcoDCZH46rRg2IxEAjkUaHYPl-WNb7D8cOmd-pFe
剛按照它的方法只能在index.dwt頁面調用出來。。。
我想在article.dwt分頁面調用文章分類,用上面的方法不行,求大神指點


回複討論(解決方案)

article對應的控制器檔案裡寫了調用資料和調用函數了嗎?

article對應的控制器檔案裡寫了調用資料和調用函數了嗎?



  • 加到調用庫檔案裡面不顯示,直接加到article也不行,就首頁沒問題。。。。。

    不是article.dwt裡面
    是article.php裡面有沒有像index.php裡面那樣的調用和函數

    不是article.dwt裡面
    是article.php裡面有沒有像index.php裡面那樣的調用和函數
    article.php裡面沒有$smarty->assign('new_articles', index_get_new_articles()); // 最新文章,應該沒調用和函數,不會加

    沒有資料範本檔案是調用不出來的 article.php和index.php裡面加的是一樣的

    沒有資料範本檔案是調用不出來的 article.php和index.php裡面加的是一樣的 article.php加那個$smarty->assign('new_articles', index_get_new_articles()); // 最新文章 就會報錯,很明顯那個方法只適用首頁,文章內容範本不能用

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.