2014-02-10 47 views
0

第一次在這裏發佈喜歡的網站。codeigniter tank_auth無法查看默認表格

所以我開始使用CodeIgniter,並希望將acl添加到我的網站。 搜索並閱讀了很多,並決定與坦克認證一起去。使用

: 笨2.1.4

罐權威性主

IIS

下載一切跑到連接到數據庫,並沒有什麼...

我無法查看腳本在視圖/ auth文件夾中的register_form.php或任何視圖,所有我得到的是一個空白頁面沒有錯誤或任何東西。我認爲它的路由問題,我嘗試了100個不同的東西,並無法得到任何東西旁邊的空白頁。

任何想法如何解決這個問題?

您的幫助將不勝感激。

$route['default_controller'] = 'auth/view'; 
$route['404_override'] = ''; 

編輯: 你有什麼我至今不....

  1. ,所以我改成這樣的路線: $路線[ 'default_controller'] = '認證/登錄'; $ route ['404_override'] ='';

  2. 全部啓用日誌記錄沒有任何顯示有

  3. 在開發利用策略模式 仍然沒有空白頁

編輯確信IM:

so sloved the problem it was with the database load ($this->ci->load->database();) 
no error were showen only thing in log of CI was (Database Driver Class Initialized) 
problem was that php 5.5 doesnt come enable , need to enable it. 
locate the php.ini (cmd->run c:\php\php.exe --ini for location) 
edit the next stuff in file: 
extension=php_mysql.dll 
extension=php_mysqli.dll 
extension_dir = "C:\PHP\ext" 

then make sure that in apachee httd.conf u have it ponted to the location of the right php.ini 
PHPIniDir "C:\php\PHP.ini" 

hopes this help some one in the future :) 
+0

檢查日誌的問題。如果需要更改日誌配置記錄一切。 – enapupe

+0

只是沒有得到警告日期()在日誌庫中修復它,仍然沒有... – user3294177

回答

0

所以sloved它與數據庫負載

($this->ci->load->database();) 
no error were showen only thing in log of CI was (Database Driver Class Initialized) 
problem was that php 5.5 doesnt come enable , need to enable it. 
locate the php.ini (cmd->run c:\php\php.exe --ini for location) 
edit the next stuff in file: 
extension=php_mysql.dll 
extension=php_mysqli.dll 
extension_dir = "C:\PHP\ext" 

then make sure that in apachee httd.conf u have it ponted to the location of the right php.ini 
PHPIniDir "C:\php\PHP.ini" 

希望這有助於一些人在未來:)

0
$route['default_controller'] = 'auth/login'; //there is no such method in auth like you are suggesting 

這需要您直接登錄!作爲auth/register的錨點來查看註冊視圖。

+0

沒有發生任何事情,仍然得到空白頁 – user3294177

0

我想,有些東西是錯誤的,我想沒人想讓默認控制器被登錄。 (所以你有問題,你無法打開認證/註冊或登錄,你想通過路線解決它)

我使用tank_auth。從未改變路線設置。 確保配置文件,庫,模型在那裏,我也建議你打開error_reporting來獲取所有警告。

打開索引php,在此代碼行38。

case 'development': 
error_reporting(E_ALL^(E_NOTICE)); 
break; 
+0

我同意我不希望作爲我的默認登錄,但現在它檢查它作品並沒有。 好吧,所以我的壞處應該說,我已經配置爲發展工作。這就是爲什麼我打開這個案例, – user3294177

+0

爲什麼沒有第一個登錄頁面?例如管理? – Kyslik

+0

即時通訊嘗試使用默認的坦克auth註冊頁面,並從那裏註冊生病移動與我的網站一起工作 – user3294177