On 7/20/07, minglee <[EMAIL PROTECTED]> wrote:

I created a registerAction in VisitorController.php which is in
/wwwroot/application/controllers, and I set its as follows:
$this->view->visitor = new stdClass();
$this->view->visitor->username='';
$this->view->visitor->password='';
....
It render /wwwroot/application/views/scripts/visitor/register.phtml, worked!

But when I created another loginAction in MemberController.php which is also
in /wwwroot/application/controllers, and I set its as follows:
$this->view->member = new stdClass();
$this->view->member->username='';
$this->view->member->password='';
....
And I did create login.phtml in /wwwroot/application/views/scripts/member/.
But failed on the following errors:
Uncaught Exception 'Zend_View_Exception' with message 'script
'member/login.phtml' not found in path ('./application/views/scripts/')' in
/Zend/View/Abstract.php:856

Doublecheck setScriptPath().

Hope that helps,
Til

Reply via email to