1
這是催化劑權威指南的第8章中的一個例子,本書中的例子或者源代碼來自Apress網站的例子實際上工作。 我對新手催化劑太新了,甚至猜測這是什麼意思,因爲我試過了我能想到的一切,沒有任何工作。任何想法將不勝感激。無法呈現模板「ideas/share.tt:file error - site/wrapper:not found」
[info] SneakyCat powered by Catalyst 5.80029
You can connect to your server at http://linux-0lwf:3000
[debug] "GET" request for "/" from "127.0.0.2"
[debug] Path is "/"
[debug] Rendering template "ideas/share.tt"
[error] Couldn't render template "ideas/share.tt: file error - site/wrapper: not found"
[error] Caught exception in SneakyCat::Controller::Ideas->share "Can't call method "search" on an undefined value at /home/atomic/SneakyCat/script/../lib/SneakyCat/Controller/Ideas.pm line 48."
[error] Couldn't render template "ideas/share.tt: file error - site/wrapper: not found"
[debug] Response Code: 500; Content-Type: text/html; charset=utf-8; Content-Length: 9615
[info] Request took 0.038715s (25.830/s)
在您的視圖中,您定義了WRAPPER =>'site/wrapper',但文件名最有可能是site/wrapper.tt – 2011-01-05 10:38:57