<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
require FCPATH.'branch/fqb/D_Admin_Home.php';
class Home extends D_Admin_Home {
/**
* 構(gòu)造函數(shù)
*/
public function __construct() {
parent::__construct();
$this->content_model->where = "dianshu=10";
}
}
可以用上面的檢索功能 來檢索呀
初始數(shù)據(jù)顯示讓只滿足條件的顯示
【九天網(wǎng)絡(luò)(JiuDay)】1樓
直接模板里 去判斷下
{if $dianshu=10}
..
{/if}
用了這個但是分頁的時候數(shù)據(jù)不正常條數(shù)也不對
【九天網(wǎng)絡(luò)(JiuDay)】3樓
那你是無解了,不建議去修改核心代碼
請問這個怎么更改啊 怎么才能正常顯示
【九天網(wǎng)絡(luò)(JiuDay)】5樓
不用改核心代碼,用我的方法不影響升級,news模塊為例
/diy/module/news/controllers/admin/Home.php
改成:
請問表單模塊怎么用構(gòu)造函數(shù)
【功能插件開發(fā)】7樓