Hi Mauricio
The query you posted confirms that the expires date is not taken into
consideration at all which, together with your previous information
indicates that it does not use the current routing information at all.
Could you go the the command line and examine the routing? The command
should look like this:
php symfony app:routes frontend job_show_user
This will give a list with the details for this route. Have a look
there for the information regarding method_for_query. What does it say
there?
Just for testing your could also try using a different route. Rename
job_show_user to e.g. 'test_route'. So this part of the routing
information would look like this:
test_route:
url: /job/:company_slug/:location_slug/:id/:position_slug
class: sfDoctrineRoute
options:
model: JobeetJob
type: object
method_for_query: retrieveActiveJob
param: { module: job, action: show }
requirements:
id: \d+
sf_method: [GET]
Then go to the indexSuccess.php and change the line
<?php echo link_to($job->getPosition(), 'job_show_user',
$job) ?>
to this:
<?php echo link_to($job->getPosition(), 'test_route',
$job) ?>
Try to call the url again. Does the name of route in the log update
accordingly? If not this indicates that somehoe the old routing
information is cached (even though it should not be because you are in
dev environment). In this case try to clear your cache manually - just
empty the cache folder in your project.
I am also in the process of creating a public svn repos with a tag for
each completed day of the jobeet tutorial. Unfortunately it will take
at least until next weekend before I am finished with that, sorry.
Good luck
Claudia
On Aug 1, 9:43 pm, Mauricio Rivera Schneider
<[email protected]> wrote:
> Thanks Halfer, I'm gonna give a look at your code. I was thinking it
> could be a good idea to upload a zip file with the finished code to
> download at the end of each day in the tutorial, for comparison purpose.
> All that refactoring can be a little misleading :P.
>
> Regards,
>
> Mauricio Rivera Schneider
> Web Design & Development
>
> http://www.mauriciorivera.cl
> Contact Me Facebook
> <http://www.facebook.com/mauricio.rivera.schneider>Twitter
> <http://twitter.com/mauriciorivera>
> On 01/08/10 15:34, halfer wrote:
>
> > On Jul 31, 5:24 pm, Mauricio Rivera Schneider
> > <[email protected]> wrote:
> >> Hello,
>
> >> I'm working with the Jobeet tutorial and I'm having a little problem in
> >> *day 6*. Everything works fine until I get to the "Secure the Job Page"
> >> <http://www.symfony-project.org/jobeet/1_4/Doctrine/en/06#chapter_06_s...>
> >> section.
> > Unfortunately my corp firewall is blocking acccess to pastebin.com, so
> > I can't take a look at your code. But this project works for me,
> > albeit in Propel. I wonder if my tarball (in its unfinished state)
> > might be of interest, to generate some ideas to fix your issue? I know
> > this passes the unit tests. Perhaps you've missed out a forward404
> > call?
>
> >http://blog.jondh.me.uk/2010/06/my-symfony-propel-tutorial-snapshots/
--
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 [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