Check your loginform's template to see if it echoes the correct url in
the action property, also check if you have no_script_name disabled in
the backend's settings.yml

On Mon, Mar 22, 2010 at 01:24, Jose San Gil <jsangi...@gmail.com> wrote:
> Hi everybody,
>
> I'm working in a project with frontend and backend application. The
> index.php of the project points to the frontend app and all the
> actions work great in this app over the production server
>
> However, when I try to use the backend application, the problems
> start. If I try to login (sfGuardDoctrine), the following error is
> displayed:
>
> The template "_login.php" does not exist or is unreadable in "".
>
> So, it looks like a routing problem, because when I press the submit
> button of the login form, the url:
>
> http://mydom.com/backend.php/
>
> changes to this one:
>
> http://mydom.com/login
>
> Due to that change, symfony is trying to execute the action in the
> frontend app, but that action doesn't exist and an error 500 is
> displayed.
>
> If I try to access to the dev server instead of prod, the actions are
> executed perfectly.
>
> i.e: http://mydom.com/backend_dev.php
>
> This is my routing.yml file:
>
> ##############################
> /apps/backend/config/routing.yml
>
> sf_guard_user:
>  class: sfDoctrineRouteCollection
>  options:
>    model:               sfGuardUser
>    module:              sfGuardUser
>    prefix_path:         usuarios
>    segment_names: { new: crear, edit: editar, delete: eliminar }
>    column:               id
>    with_wildcard_routes: true
>
> sf_guard_signin:
>  url:   /login
>  param: { module: sfGuardAuth, action: signin }
>
> sf_guard_signout:
>  url:   /logout
>  param: { module: sfGuardAuth, action: signout }
>
> sf_guard_password:
>  url:   /request_password
>  param: { module: sfGuardAuth, action: password }
>
> ajax_getstates:
>  url:   /getStates
>  param:  { module: sfGuardUser, action: getStates }
>
> ajax_getcities:
>  url: /getCities
>  param: {module: sfGuardUser, action: getCities}
>
> ajax_gettalleres:
>  url: /getTalleres
>  param: {module: siniestro, action: getTalleres}
>
> # default rules
> homepage:
>  url:   /
>  param: { module: poliza, action: index }
>
> default_index:
>  url:   /:module
>  param: { action: index }
>
> default:
>  url:   /:module/:action/*
> ###################################
>
> I will appreciate if you could help me.
>
> Thanks.
>
> --
> 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
>
> To unsubscribe from this group, send email to 
> symfony-users+unsubscribegooglegroups.com or reply to this email with the 
> words "REMOVE ME" as the subject.
>

-- 
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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to