2009年10月8日星期四

[fw-mvc] Problem with zend framework tutorial of Akrabat

Hello All, I have asked this question earlier today but I didn't provide enough information and therefore it was migrated to the serverfault forum. Well since I think it's not really a server releated problem rather a php related problem i woul lik to ask it here again and ask it properly. ### My environment > Xampp installation > PHP 5.2.8 > Windows xp > ZF version 1.9.+ ### The problem As I was going to [this][1] tutorial. At a certain point (on page 13 of the pdf) my server crashes. And I think these are the few lines of code where it goes wrong: This is the indexAction of my index controller public function indexAction() { $this->view->title = "My Albums"; $this->view->headTitle($this->view->title, 'PREPEND'); $albums = new Model_DbTable_Albums(); $this->view->albums = $albums->fetchAll(); } If I take away the last line: $this->view->albums = $albums->fetchAll(); My site doesn't crash but as soon as i add this line it crashes (apache crashes). There is no info in the error.log which seems valuebale to me. Here are the last line of my error log: http://pastebin.com/m67fdca85 ### Prossibe cause *I have the idea that it might have something to do with the mysql-pdo driver but I am not sure.* And I also don't know how to trigger this. All the dll's in my php.ini are enabled and are in the extenstion directory. Does anyone have an idea how to solve this problem? I hope I have provided enough info and with enough detail. Thanks anyway! [1]: http://akrabat.com/wp-content/uploads/getting-started-with-zend-framework-163.pdf


没有评论: