/jobeet/apps/frontend/config/routing.yml

# default rules
category:
  url:      /category/:slug.:sf_format
  class:    sfPropelRoute
  param:    { module: category, action: show, sf_format: html }
  options:  { model: JobeetCategory, type: object }
  requirements:
    sf_format: (?:html|atom)

job:
  class:   sfPropelRouteCollection
  options:
    model:          JobeetJob
    column:         token
    object_actions: { publish: put, extend: PUT }
  requirements:
    token: \w+

job_show_user:
  url:     /job/:company_slug/:location_slug/:id/:position_slug
  class:   sfPropelRoute
  options:
    model: JobeetJob
    type:  object
    method_for_criteria: doSelectActive
  param:   { module: job, action: show }
  requirements:
    id: \d+
    sf_method: [get]

api_jobs:
  url:     /api/:token/jobs.:sf_format
  class:   sfPropelRoute
  param:   { module: api, action: list }
  options: { model: JobeetJob, type: list, method: getForToken }
  requirements:
    sf_format: (?:xml|json|yaml)

affiliate:
  class:   sfPropelRouteCollection
  options:
    model: JobeetAffiliate
    actions: [new, create]
    object_actions: { wait: get }

default_index:
  url:   /:module
  param: { action: index }

default:
  url:   /:module/:action/*

# default rules
homepage:
  url:   /
  param: { module: job, action: index }

I have  checked routing and it seems ok. I found some other people have
similar problem and I try with  sfPropelRouteCollection insted of
sfPropelRoute .... no result. :(

On Tue, Feb 3, 2009 at 10:10 PM, Kris Wallsmith <
[email protected]> wrote:

> It looks like you have an error in your application's routing.yml file.
> Revisit that part of the tutorial and double check you've included a
> "class:" entry under the appropriate route.
> Kris
>
> --
>
> *Kris Wallsmith* | Community Manager
> [email protected]
> Portland, Oregon USA
>
> http://twitter.com/kriswallsmith
>
> On Feb 3, 2009, at 11:29 AM, krassswr krasssswr wrote:
>
> Hi. I start to follow jobeet tutorial and I'm now on 16-th day.
> When I try to get Web Service to work I get error and I don't know how to
> solve my problem.
>
> The testing file maked for testing web service trough day 16, when I start
> it it works ok only first run. After each successful test run I need to make
> symfony propel:data-load and to recreate my testing admin user.
>
> http://localhost.jobeet.dev/frontend_dev.php/api/list/sensio_labs/jobs.xml
>
> Fatal error: Call to undefined method sfRoute::getObjects() in
> C:\xxx\htdocs\workspace\jobeet\apps\frontend\modules\api\actions\actions.class.php
> on line 15
> Call Stack
> #    Time    Memory    Function    Location
> 1    0.0258    62784    {main}( )    ..\frontend_dev.php:0
> 2    6.0707    7402120    sfContext->dispatch( )    ..\frontend_dev.php:13
> 3    6.0707    7402248    sfFrontWebController->dispatch( )
> ..\sfContext.class.php:159
> 4    6.0830    7418992    sfController->forward( )
> ..\sfFrontWebController.class.php:48
> 5    6.4541    7805776    sfFilterChain->execute( )
> ..\sfController.class.php:245
> 6    6.4560    7813824    sfRenderingFilter->execute( )
> ..\sfFilterChain.class.php:53
> 7    6.4560    7814216    sfFilterChain->execute( )
> ..\sfRenderingFilter.class.php:33
> 8    6.4581    7819360    sfCommonFilter->execute( )
> ..\sfFilterChain.class.php:53
> 9    6.4581    7820304    sfFilterChain->execute( )
> ..\sfCommonFilter.class.php:29
> 10    6.4602    7825752    sfExecutionFilter->execute( )
> ..\sfFilterChain.class.php:53
> 11    6.4606    7826840    sfExecutionFilter->handleAction( )
> ..\sfExecutionFilter.class.php:42
> 12    6.4607    7827328    sfExecutionFilter->executeAction( )
> ..\sfExecutionFilter.class.php:76
> 13    6.4608    7827672    sfActions->execute( )
> ..\sfExecutionFilter.class.php:90
> 14    6.4639    7836232    apiActions->executeList( )
> ..\sfActions.class.php:53
>
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to