ok I found on google code project jobeet
and saw that the routing file

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


has the class sfDoctrineRoute

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

it works! and also the url is ok
http://localhost:8888/frontend_dev.php/job/extreme-sensio/paris-france/4/web-designer

can anyone tell me why?
thank you very much
giuseppe








On 11 Mag, 17:51, Giuseppe <giuseppe.rub...@gmail.com> wrote:
> Hello everyone,
> are at the point where the tutorial tells me to open the
> the 
> urlhttp://localhost:8888/frontend_dev.php/job/sensio-labs/paris-france/1...
>
> and here i have my error:
>
> stack trace
> at ()
> in SF_SYMFONY_LIB_DIR\config\sfRoutingConfigHandler.class.php line
> 37 ...
>     $data = array();
>
>     foreach ($this->parse($configFiles) as $name => $routeConfig)
>
>     {
>
>       $r = new ReflectionClass($routeConfig[0]);
>
>       $route = $r->newInstanceArgs($routeConfig[1]);
>
>       $routes = $route instanceof sfRouteCollection ? $route :
> array($name => $route);
>
> I realized that the class Jobeet.class.php
>
> class JobeetJob extends BaseJobeetJob
> {
>
> public function getCompanySlug()
> {
>   return Jobeet::slugify($this->getCompany());
>
> }
>
> public function getPositionSlug()
> {
>   return Jobeet::slugify($this->getPosition());
>
> }
>
> public function getLocationSlug()
> {
>   return Jobeet::slugify($this->getLocation());
>
> }
> }
>
> is not as it says in the tutorial
>
> //lib/model /JobeetJob.php
>
> but in //lib/model/doctrine/JobeetJob.php
>
> this could be the problem?
> sorry for my English
> thank you very much
> Hello everyone
> Giuseppe

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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

Reply via email to