|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-07-26 14:44 UTC] rhofmeyr at gmail dot com
[2012-07-26 15:12 UTC] laruence@php.net
[2012-07-29 09:30 UTC] laruence@php.net
-Assigned To:
+Assigned To: laruence
[2017-10-24 07:59 UTC] kalle@php.net
-Status: Assigned
+Status: Open
-Assigned To: laruence
+Assigned To:
[2021-08-18 12:18 UTC] cmb@php.net
[2021-08-18 12:18 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2021-08-29 04:22 UTC] pecl-dev at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 14:00:01 2025 UTC |
Description: ------------ Yaf example not working. I am testing default controler. My PHP: 5.3.3-7+squeeze13 with Suhosin-Patch (cli) (built: Jun 10 2012 09:35:18) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with Xdebug v2.1.2, Copyright (c) 2002-2011, by Derick Rethans with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH Test script: --------------- class IndexController extends Yaf_Controller_Abstract { /* default action */ public function indexAction() { $this->view->word = "hello world"; } } Expected result: ---------------- <html> <head> <title>Hello World</title> </head> <body>hello world</body> </html> Actual result: -------------- PHP Notice: Undefined variable: word in /var/www/localhost/re27/app/application/views/index/index.phtml on line 6 PHP Stack trace: PHP 1. {main}() /var/www/localhost/re27/app/index.php:0 PHP 2. Yaf_Application->run() /var/www/localhost/re27/app/index.php:9 PHP 3. Yaf_View_Simple->render() /var/www/localhost/re27/app/index.php:0 <html> <head> <title>Hello World</title> </head> <body></body> </html>