paginate

    0熱度

    1回答

    我想使用複合查詢與paginate()。這裏是我的代碼: // PhasesController.php public function manage($id = null) { $this->loadModel('ProjectDomainPhasesUser'); $this->ProjectDomainPhasesUser->recursive = 0; $t

    0熱度

    2回答

    你好如何從 array(2=>'test',5=>'bla',333=>'finish') 到 array(0=>'test',1=>'bla',2=>'finish')

    0熱度

    1回答

    我正在使用可包含行爲來查看多個表。 $this->paginate = array( 'contain' => array( 'Co' => array('fields' => array('ref')), 'CoItemType' => array('fields' => array('name')), 'Casing' => array(

    0熱度

    1回答

    仍然是一個新手,但我與分頁器​​爭取將我的視圖限制爲10個記錄[屬性]並將其排序在屬性模型的字段中。我在做什麼錯或錯過我的代碼讓paginator來控制我的觀點? 我有2個模式,地區和屬性,一個區域具有許多性質,例如,我的觀點是/區域/視圖/ 13這示出了用於區域的所有屬性13. 該分頁程序時顯示正確的量的屬性,設置頁面正確,所有似乎都是正確的,但paginator不限制我的看法,它只顯示該區域的

    1熱度

    1回答

    3天前我問了這個問題,但沒有回答。 以下是其他信息的鏈接:how to get paginate to work instead of getting redirected to 'public/index.html'?。 我會在這裏澄清/簡化問題。 我使用public/index.html作爲我的訪問者主頁。用戶登錄後,新主頁位於'/ home'。在這個'/家',有一個飼料。我使用此視圖在我的視

    0熱度

    1回答

    到目前爲止,我已經遵循了幾個教程而沒有運氣。我正在使用ajax_pagination。當我點擊第二頁的鏈接時,這就是服務器日誌所示: 已啓動GET「/?page = 2 & = 1367953277288」for 127.0.0.1 at 2013-05-07 14:05:49-0500 AddressController#index as JS 參數:{「page」=>「2」,「」=>「1367

    2熱度

    1回答

    我有這個在我接觸模型: public static function contacts($perPage = 10) { $order_type = '.desc'; $order = Session::get('contact.order', 'first_name' . $order_type); // Set the default order to created_a

    0熱度

    1回答

    我不太理解wordpress。也許這是一個愚蠢的問題。 我創建了一個自定義頁面,我的博客名稱。所有博客文章進入。 我想問的是如何創建像這樣的分頁< < Pre [1] [2] [3] ...下一頁>>和帖子號碼從設置>閱讀>博客頁面顯示至多確定... 。post。 這是我的代碼。 <div class="page-content"> <?php $paged = (get_qu

    -1熱度

    1回答

    我申請分頁,但它顯示一個頁面上全部結果,或者如果我在我的查詢則顯示在每個頁面上相同的20個結果與極限 應用它.... plz幫助我 這是控制文件: public function hhh($offset = 0) { $sql_query = "select username from valenth_user where banned=1 limit 0,20"; $que

    0熱度

    1回答

    我有一個返回我想要的結果的SQL語句,但是我需要分頁這些reults並已遇到問題在過去幾天試圖讓轉換爲$這個 - 查詢>分頁 我正在與兩個有關係的表合作;項目和item_owns。 item_owns表包含3列:id,item_id和user_id,而items表包含id,collection_id和name。 SQL返回結果我需要: SELECT it.id, it.name, COALESCE