2008-11-15 35 views

回答

6

要爲您的分機轉到您的PIX/class.tx_XXX_piX.php文件並刪除以下行(下面的類聲明)禁用緩存:

var $pi_checkCHash = true; 

您還需要添加下面一行主要方法(以下$這個 - > pi_loadLL();):

$this->pi_USER_INT_obj=1; // Configuring so caching is not expected. This value means that no cHash params are ever set. We do this, because it's a USER_INT object! 
+0

我現在在其他一些項目上,並沒有環境來測試這個,但這對其他有相同問題的人來說是有用的信息。感謝您的答覆。 – avernet 2009-02-21 01:26:40

+0

這不會禁用緩存,它只會禁用對cHash參數的檢查。 – Sebs 2010-09-21 10:38:18

0

當您創建了擴展與Kickstarter的你也有去文件[yourextension] /ext_localconf.php並更改該行

t3lib_extMgm::addPItoST43($_EXTKEY,'piX/class.tx_yourextension_piX.php','_piX','list_type',0); 

這樣:

t3lib_extMgm::addPItoST43($_EXTKEY,'piX/class.tx_yourextension_piX.php','_piX','list_type',1); 
4

grunwalski它是你必須改變這種相反:

t3lib_extMgm::addPItoST43($_EXTKEY,'piX/class.tx_yourextension_piX.php','_piX','list_type',1); 

這樣:

t3lib_extMgm::addPItoST43($_EXTKEY,'piX/class.tx_yourextension_piX.php','_piX','list_type',0); 
2

的simpliest地爲您解決問題要返回Extension Maganer,請選擇您的擴展程序,從下拉菜單中選擇「在Kickstarter中編輯」 u,然後選擇相應的Frontend插件來編輯它的屬性。

選中第一個複選框,這意味着您希望將插件呈現爲USER_INT cObjects。之後,單擊查看結果按鈕,取消選中右側的所有自定義PHP文件(您自己的代碼,如模塊和插件),然後單擊WRITE按鈕。請小心。如果您沒有取消選中您自己文件的複選框,它們將被虛擬文件覆蓋。

1

正確和comlete辦法做到這一點是@arturh的答案和@Mehdi Guermazi的組合:

  1. 變化,從1 ext_localconf.php的addPItoST43()調用0
  2. 最後一個參數
  3. 從pi1類頭部的屬性定義中刪除var $pi_checkCHash = true;行。
  4. $this->pi_USER_INT_obj=1;行添加到pi1中main()函數的開頭。

這些更改與您在使用@bencuss解決方案中解釋的kickstarter方法時得到的內容相同。

0

編輯您的擴展名「myext」的文件setup.txt。將「USER」更改爲「USER_INT」。

plugin.tx_myext = USER_INT 
plugin.tx_myxt { 

此擴展將永遠不會被緩存。

相關問題