Hi, I just started to use Symfony 1.1 under linux box. I have been following My First Project tutorial [1] and I am stuck in the middle of it.
First of all, .htaccess were giving out errors, so I renamed it temporarily. but it wasn't a major problem. Creating tables from yaml, creating models forms were very straight. However, after clearing caches, I visited http://internal-host/control_dev.php/customer [2], it looked as I expected. Clicked on create, filled out the form clicked on save button. It went to a blank page [3]. I checked the database (mysql), and there was no record. Then I went back to [2], it showed a blank page. I checked the log file, it doesn't show much... It seems if I want to see a page, I need to clear cache. Help will be appreciated. Thanks in advance! Calvin Version: symfony version 1.1.6 (/usr/share/php/symfony) PHP 5.2.3-1ubuntu6.4 (cli) (built: Jul 23 2008 06:20:11) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies with Xdebug v2.0.2, Copyright (c) 2002-2007, by Derick Rethans Log: Dec 19 17:22:39 symfony [info] {sfPatternRouting} Connect "/" Dec 19 17:22:39 symfony [info] {sfPatternRouting} Connect "/ symfony/:action/*" Dec 19 17:22:39 symfony [info] {sfPatternRouting} Connect "/:module" Dec 19 17:22:39 symfony [info] {sfPatternRouting} Connect "/:module/:action/*" Dec 19 17:22:39 symfony [info] {sfFrontWebController} Initialization Dec 19 17:22:39 symfony [info] {sfPatternRouting} Match route [default_index] for "/:module" Dec 19 17:22:39 symfony [info] {sfWebRequest} Request parameters array ( 'action' => 'index', 'module' => 'customer',) Dec 19 17:22:39 symfony [info] {myUser} Automatic user logout due to timeout Dec 19 17:22:39 symfony [info] {myUser} User is not authenticated Dec 19 17:22:39 symfony [info] {sfContext} Initialization Dec 19 17:22:39 symfony [info] {sfFrontWebController} Dispatch request Dec 19 17:22:39 symfony [info] {sfFilterChain} Executing filter "sfRenderingFilter" Dec 19 17:22:39 symfony [info] {sfFilterChain} Executing filter "sfCommonFilter" Dec 19 17:22:39 symfony [info] {sfFilterChain} Executing filter "sfExecutionFilter" Dec 19 17:22:39 symfony [info] {customerActions} Call "customerActions->executeIndex()" Dec 19 17:22:39 symfony [info] {sfDebugConnection} connect(): DSN: array ( 'compat_assoc_lower' => NULL, 'compat_rtrim_string' => NULL, 'database' => 'control-o', 'encoding' => NULL, 'hostspec' => 'localhost', 'password' => 'calvin-pma', 'persistent' => NULL, 'phptype' => 'mysql', 'port' => NULL, 'protocol' => NULL, 'socket' => NULL, 'username' => 'calvin-pma', ), FLAGS: 0 Dec 19 17:22:39 symfony [info] {sfDebugConnection} prepareStatement (): SELECT customer.ID, customer.COMPANY, customer.CONTACT_PERSON, customer.PHONE, customer.MOBILE, customer.EMAIL, customer.BILLING1, customer.BILLING2, customer.BILLING3, customer.TERM, customer.PLAN_TYPE, customer.STATUS, customer.CREATED_AT FROM customer Dec 19 17:22:39 symfony [info] {sfDebugConnection} executeQuery(): [0.78 ms] SELECT customer.ID, customer.COMPANY, customer.CONTACT_PERSON, customer.PHONE, customer.MOBILE, customer.EMAIL, customer.BILLING1, customer.BILLING2, customer.BILLING3, customer.TERM, customer.PLAN_TYPE, customer.STATUS, customer.CREATED_AT FROM customer Dec 19 17:22:39 symfony [info] {sfPHPView} Initialize view for "customer/index" Dec 19 17:22:39 symfony [info] {sfPHPView} Render "/home/calvin/ sandbox/control-o/apps/control/modules/customer/templates/ indexSuccess.php" Dec 19 17:22:39 symfony [info] {sfPHPView} Decorate content with "/ home/calvin/sandbox/control-o/apps/control/templates/layout.php" Dec 19 17:22:39 symfony [info] {sfPHPView} Render "/home/calvin/ sandbox/control-o/apps/control/templates/layout.php" Dec 19 17:22:39 symfony [info] {sfRenderingFilter} Render to the client Dec 19 17:22:39 symfony [info] {sfWebResponse} Send status "HTTP/1.1 200 OK" Dec 19 17:22:39 symfony [info] {sfWebResponse} Send header "Content- Type": "text/html; charset=utf-8" Dec 19 17:22:39 symfony [info] {sfWebDebugLogger} Configuration 17.07 ms (9) Dec 19 17:22:39 symfony [info] {sfWebDebugLogger} Action "customer/ index" 70.34 ms (1) Dec 19 17:22:39 symfony [info] {sfWebDebugLogger} Database 0.77 ms (1) Dec 19 17:22:39 symfony [info] {sfWebDebugLogger} View "Success" for "customer/index" 45.19 ms (1) Dec 19 17:22:40 symfony [info] {sfWebResponse} Send content (128322 o) Dec 19 17:22:43 symfony [info] {sfPatternRouting} Connect "/" Dec 19 17:22:43 symfony [info] {sfPatternRouting} Connect "/ symfony/:action/*" Dec 19 17:22:43 symfony [info] {sfPatternRouting} Connect "/:module" Dec 19 17:22:43 symfony [info] {sfPatternRouting} Connect "/:module/:action/*" Dec 19 17:22:43 symfony [info] {sfFrontWebController} Initialization Dec 19 17:22:43 symfony [info] {sfPatternRouting} Match route [default] for "/:module/:action/*" Dec 19 17:22:43 symfony [info] {sfWebRequest} Request parameters array ( 'module' => 'customer', 'action' => 'create',) Dec 19 17:22:43 symfony [info] {sfContext} Initialization Dec 19 17:22:43 symfony [info] {sfFrontWebController} Dispatch request Dec 19 17:22:43 symfony [info] {sfFilterChain} Executing filter "sfRenderingFilter" Dec 19 17:22:43 symfony [info] {sfFilterChain} Executing filter "sfCommonFilter" Dec 19 17:22:43 symfony [info] {sfFilterChain} Executing filter "sfExecutionFilter" Dec 19 17:22:43 symfony [info] {customerActions} Call "customerActions->executeCreate()" Dec 19 17:22:43 symfony [info] {customerActions} Change template to "CURRENT/edit" Dec 19 17:22:43 symfony [info] {sfPHPView} Initialize view for "customer/create" Dec 19 17:22:43 symfony [info] {sfPHPView} Render "/home/calvin/ sandbox/control-o/apps/control/modules/customer/templates/ editSuccess.php" Dec 19 17:22:43 symfony [info] {sfPHPView} Decorate content with "/ home/calvin/sandbox/control-o/apps/control/templates/layout.php" Dec 19 17:22:43 symfony [info] {sfPHPView} Render "/home/calvin/ sandbox/control-o/apps/control/templates/layout.php" Dec 19 17:22:43 symfony [info] {sfRenderingFilter} Render to the client Dec 19 17:22:43 symfony [info] {sfWebResponse} Send status "HTTP/1.1 200 OK" Dec 19 17:22:43 symfony [info] {sfWebResponse} Send header "Content- Type": "text/html; charset=utf-8" Dec 19 17:22:43 symfony [info] {sfWebDebugLogger} Configuration 16.97 ms (9) Dec 19 17:22:43 symfony [info] {sfWebDebugLogger} Action "customer/ create" 71.27 ms (1) Dec 19 17:22:43 symfony [info] {sfWebDebugLogger} View "Success" for "customer/create" 305.05 ms (1) Dec 19 17:22:44 symfony [info] {sfWebResponse} Send content (110874 o) Dec 19 17:23:05 symfony [info] {sfPatternRouting} Connect "/" Dec 19 17:23:05 symfony [info] {sfPatternRouting} Connect "/ symfony/:action/*" Dec 19 17:23:05 symfony [info] {sfPatternRouting} Connect "/:module" Dec 19 17:23:06 symfony [info] {sfPatternRouting} Connect "/:module/:action/*" Dec 19 17:23:06 symfony [info] {sfFrontWebController} Initialization Dec 19 17:23:06 symfony [info] {sfPatternRouting} Match route [default] for "/:module/:action/*" Dec 19 17:23:06 symfony [info] {sfWebRequest} Request parameters array ( 'module' => 'customer', 'action' => 'update', 'customer' => array ( 'company' => 'Monsters Inc', 'contact_person' => 'Dr Who', 'phone' => '539291', 'mobile' => '299391', 'email' => 'f...@cc.com', 'billing1' => 'a', 'billing2' => 'b', 'billing3' => 'c', 'term' => '12', 'plan_type' => 'aa', 'status' => 'on', 'created_at' => array ( 'month' => '1', 'day' => '6', 'year' => '2006', 'hour' => '1', 'minute' => '2', ), 'id' => '', ),) Dec 19 17:23:06 symfony [info] {sfContext} Initialization Dec 19 17:23:06 symfony [info] {sfFrontWebController} Dispatch request Dec 19 17:23:06 symfony [info] {sfFilterChain} Executing filter "sfRenderingFilter" Dec 19 17:23:06 symfony [info] {sfFilterChain} Executing filter "sfCommonFilter" Dec 19 17:23:06 symfony [info] {sfFilterChain} Executing filter "sfExecutionFilter" Dec 19 17:23:06 symfony [info] {customerActions} Call "customerActions->executeUpdate()" Dec 19 17:23:06 symfony [info] {sfDebugConnection} connect(): DSN: array ( 'compat_assoc_lower' => NULL, 'compat_rtrim_string' => NULL, 'database' => 'control-o', 'encoding' => NULL, 'hostspec' => 'localhost', 'password' => 'calvin-pma', 'persistent' => NULL, 'phptype' => 'mysql', 'port' => NULL, 'protocol' => NULL, 'socket' => NULL, 'username' => 'calvin-pma', ), FLAGS: 0 Dec 19 17:23:06 symfony [info] {sfDebugConnection} prepareStatement (): SELECT customer.ID, customer.COMPANY, customer.CONTACT_PERSON, customer.PHONE, customer.MOBILE, customer.EMAIL, customer.BILLING1, customer.BILLING2, customer.BILLING3, customer.TERM, customer.PLAN_TYPE, customer.STATUS, customer.CREATED_AT FROM customer WHERE customer.ID IS NULL Dec 19 17:25:04 symfony [info] {sfPatternRouting} Connect "/" Dec 19 17:25:04 symfony [info] {sfPatternRouting} Connect "/ symfony/:action/*" Dec 19 17:25:04 symfony [info] {sfPatternRouting} Connect "/:module" Dec 19 17:25:04 symfony [info] {sfPatternRouting} Connect "/:module/:action/*" Dec 19 17:25:04 symfony [info] {sfFrontWebController} Initialization Dec 19 17:25:04 symfony [info] {sfPatternRouting} Match route [default_index] for "/:module" Dec 19 17:25:04 symfony [info] {sfWebRequest} Request parameters array ( 'action' => 'index', 'module' => 'customer',) Dec 19 17:25:04 symfony [info] {sfContext} Initialization Dec 19 17:25:04 symfony [info] {sfFrontWebController} Dispatch request Dec 19 17:25:04 symfony [info] {sfFilterChain} Executing filter "sfRenderingFilter" Dec 19 17:25:04 symfony [info] {sfFilterChain} Executing filter "sfCommonFilter" Dec 19 17:25:04 symfony [info] {sfFilterChain} Executing filter "sfExecutionFilter" Dec 19 17:25:04 symfony [info] {customerActions} Call "customerActions->executeIndex()" Dec 19 17:25:04 symfony [info] {sfDebugConnection} connect(): DSN: array ( 'compat_assoc_lower' => NULL, 'compat_rtrim_string' => NULL, 'database' => 'control-o', 'encoding' => NULL, 'hostspec' => 'localhost', 'password' => 'calvin-pma', 'persistent' => NULL, 'phptype' => 'mysql', 'port' => NULL, 'protocol' => NULL, 'socket' => NULL, 'username' => 'calvin-pma', ), FLAGS: 0 Dec 19 17:25:04 symfony [info] {sfDebugConnection} prepareStatement (): SELECT customer.ID, customer.COMPANY, customer.CONTACT_PERSON, customer.PHONE, customer.MOBILE, customer.EMAIL, customer.BILLING1, customer.BILLING2, customer.BILLING3, customer.TERM, customer.PLAN_TYPE, customer.STATUS, customer.CREATED_AT FROM customer [1]: http://www.symfony-project.org/tutorial/1_1/my-first-project [3]: http://internal-host/control_dev.php/customer/update --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---