This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Jobeet day 14 affiliate route does not work!

Discussion around this tutorial for symfony 1.2-1.4

Jobeet day 14 affiliate route does not work!

by ereallstaff » Wed Jul 20, 2011 1:02 pm

routing yml:

Code: Select all
  class:   sfDoctrineRouteCollection
    model: JobeetAffiliate
    actions: [new, create]
    object_actions: { wait: get }


Code: Select all
<a href="<?php echo url_for('affiliate_new') ?>">Become an affiliate</a>

Generated link:


Error stack:
Code: Select all
Unable to find a matching route to generate url for params "array ( 'action' => 'index', 'module' => 'affiliate',)".

Why it searches for action index, in the affiliate module?
Junior Member
Posts: 6
Joined: Wed Jul 20, 2011 12:11 pm