On Tue, Dec 29, 2009 at 7:15 AM, Daniel Lohse
<annismcken...@googlemail.com> wrote:
> Can you show us your complete routing.yml?

You've already got most of it (it's a pretty simple situation). In
addition to the page_show route, I've got this for the homepage route:

homepage:
  url:   /
  class: sfPropelRoute
  param: { module: page, action: show, domain_slug: portal, slug: dashboard ) }
  options:
    model: Page
    type: object
    method: doSelectByDomain

> Additionally, I'd like you to clear the development log file 
> (log/frontend_dev.log) and point your browser to one of the URLs that produce 
> an error and also paste the content of the log file here. You can delete 
> things you know are irrelevant.

Here is my log dump when attempting to load the homepage (the only
page that throws an error). As you can see, the domain_slug and slug
parameters simply aren't getting passed along:

Dec 29 09:49:23 symfony [info] {sfPatternRouting} Match route
"homepage" (/) for / with parameters array (  'module' => 'page',
'action' => 'show',  'domain_slug' => 'portal',  'slug' => 'dashboard
)',)
Dec 29 09:49:23 symfony [info] {sfFilterChain} Executing filter
"sfRenderingFilter"
Dec 29 09:49:23 symfony [info] {sfFilterChain} Executing filter
"sfExecutionFilter"
Dec 29 09:49:23 symfony [info] {pageActions} Call "pageActions->executeShow()"
Dec 29 09:49:23 symfony [notice] {sfWebDebugLogger}  Notice at
/Users/rwilkerson/Development/vaudeville/lib/model/PagePeer.php on
line 23 (Undefined index:  domain_slug)
Dec 29 09:49:23 symfony [notice] {sfWebDebugLogger}  Notice at
/Users/rwilkerson/Development/vaudeville/lib/model/PagePeer.php on
line 24 (Undefined index:  slug)
Dec 29 09:49:23 symfony [debug] {sfPropelLogger} time:  0.000 sec |
slow:  NO | mem:    8.3 MB | mempeak:    8.3 MB | memdelta:      0.0 B
| SET NAMES 'utf8'
Dec 29 09:49:23 symfony [debug] {sfPropelLogger} time:  0.000 sec |
slow:  NO | mem:    8.5 MB | mempeak:    8.5 MB | memdelta:      0.0 B
| SELECT page.ID, page.ENTITY_TYPE_ID, page.NAME, page.SLUG,
page.ACTIVE, page.CREATED_AT, page.UPDATED_AT FROM `page` CROSS JOIN
`nav_menu` LEFT JOIN entity_type ON
(page.ENTITY_TYPE_ID=entity_type.ID) WHERE nav_menu.NAME IS NULL  AND
page.SLUG IS NULL  LIMIT 1
Dec 29 09:49:23 symfony [err] {sfError404Exception} Unable to find the
PagePeer object with the following parameters "array ()").
Dec 29 09:49:23 symfony [info] {sfWebResponse} Send status "HTTP/1.1
404 Not Found"
Dec 29 09:49:23 symfony [info] {sfWebResponse} Send header
"Content-Type: text/html; charset=utf-8"
Dec 29 09:49:23 symfony [info] {sfWebDebugLogger} Configuration 0.91 ms (8)
Dec 29 09:49:23 symfony [info] {sfWebDebugLogger} Factories 27.97 ms (1)
Dec 29 09:49:23 symfony [info] {sfWebDebugLogger} Action "page/show"
40.63 ms (1)

-- 
Rob Wilkerson
http://robwilkerson.org
@robwilkerson

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@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.


Reply via email to