[symfony-es] Problema Proyecto Jobeet (dia 7)

30 views
Skip to first unread message

César Hernández

unread,
Apr 26, 2010, 5:53:16 PM4/26/10
to symfo...@googlegroups.com
Saludos, al grano :)

estaba haciendo las tareas del dia 7 del proyecto Jobeet
y cai en la siguiente situación

500 | Internal Server Error | sfConfigurationException

The route "category" does not exist.

stack trace

  • at ()
    in SF_ROOT_DIR/lib/vendor/symfony/lib/routing/sfPatternRouting.class.php line 313 ...
      1.       // named route
      2.       if (!isset($this->routes[$name]))
      3.       {
      4.         throw new sfConfigurationException(sprintf('The route "%s" does not exist.'$name));
      5.       }
      6.       $route $this->routes[$name];      $this->ensureDefaultParametersAreSet();
      7.     }
  • at sfPatternRouting->generate('category', array('sf_subject' => object('sfOutputEscaperIteratorDecorator')), )
    in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/sfWebController.class.php line 74 ...

Agradezco sus orientaciones para resolver este problema de configuracion
Gracias


--
César Hernández
Anzoátegui - Venezuela
dpc...@gmail.com

LinuxCounter: 285.345  
CIV: 122.539

--
Has recibido este mensaje porque estás suscrito al grupo "symfony-es" de Grupos de Google.
Para publicar una entrada en este grupo, envía un correo electrónico a symfo...@googlegroups.com.
Para anular tu suscripción a este grupo, envía un correo electrónico a symfony-es+...@googlegroups.com
Para tener acceso a más opciones, visita el grupo en http://groups.google.com/group/symfony-es?hl=es.

ReynierPM

unread,
Apr 27, 2010, 8:13:51 AM4/27/10
to symfo...@googlegroups.com
On 4/26/2010 5:53 PM, César Hernández wrote:

> 500 | Internal Server Error | sfConfigurationException

> The route "category" does not exist.

Hombre, más claro ni el agua !!! La ruta a la cual estás intentando
acceder no existe !!!, tienes q definirla en el fichero routing.yml.

--
Saludos
ReynierPM

Mario J. Inga Cahuana

unread,
Apr 27, 2010, 10:54:12 AM4/27/10
to symfo...@googlegroups.com
O quizas solo necesites ejecutar: ./symfony cc

2010/4/27 ReynierPM <reyn...@vnz.uci.cu>



--
##########################################

  Desarrollador y Consultor de Soluciones Web
  Administrador de Sistemas GNU/Linux
  D-Link Professional Resseller for Wireless
  Twitter: http://twitter.com/mario21ic
  Blog: http://blog.mario21ic.com/
  Linux Registered User: #467476
  Diario digital: http://reportajeperu.com

##########################################

César Hernández

unread,
Apr 27, 2010, 11:25:23 AM4/27/10
to symfo...@googlegroups.com
Buenas, si es cierto es claro, pero confuso

Aqui esta mi archivo routing.yml

# You can find more information about this file on the symfony website:
# http://www.symfony-project.org/reference/1_4/en/10-Routing

# apps/frontend/config/routing.yml

job:
  class:   sfDoctrineRouteCollection
  options: { model: JobeetJob }
 
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]
 
# default rules
homepage:
  url:   /
  param: { module: job, action: index }
 
default_index:
  url:   /:module
  param: { action: index }
 
default:
  url:   /:module/:action/*


Yo revise los días anteriores al día 7 del proyecto Jobeet pero
aun así, no comprendo bien la naturaleza del error
eso es porque me muestra ese mensaje cuando accedo a la pagina principal
--
César Hernández
Anzoátegui - Venezuela
dpc...@gmail.com

LinuxCounter: 285.345  
CIV: 122.539

Mario J. Inga Cahuana

unread,
Apr 27, 2010, 11:28:10 AM4/27/10
to symfo...@googlegroups.com
Esta bien claro.. ahi en tu routing no figura la ruta: category, agrega:
category:
  url:      /category/:slug
  class:    sfDoctrineRoute
  param:    { module: category, action: show }
  options:  { model: JobeetCategory, type: object }

2010/4/27 César Hernández <dpc...@gmail.com>

--
##########################################

  Desarrollador y Consultor de Soluciones Web
  Administrador de Sistemas GNU/Linux
  D-Link Professional Resseller for Wireless
  Twitter: http://twitter.com/mario21ic
  Blog: http://blog.mario21ic.com/
  Linux Registered User: #467476
  Diario digital: http://reportajeperu.com

##########################################

César Hernández

unread,
Apr 27, 2010, 11:33:11 AM4/27/10
to symfo...@googlegroups.com
Gracias, problema resuelto,
ahora podre continuar avanzado
Reply all
Reply to author
Forward
0 new messages