Sid - yes you good understand me.
url_for("users/index") in forms works.
But in links I also don't need to add '/backend.php' at the
beginning ?

So why when I have url in browser: http://localhost/backend.php/profile/index
And click on the link: <a href="profile/change_avatar" >
I see in url of browser second time word 'profile':
http://localhost/backend.php/profile/profile/change_avatar
It should be: http://localhost/backend.php/profile/change_avatar

?? Why ??



On 18 Wrz, 18:49, Sid Ferreira <sid....@gmail.com> wrote:
> You mean that you want to know if you need write "backend_dev.php" in your
> links, is it?Well, the answer is NO. Symfony it self does that for you.
>
>
>
> On Fri, Sep 18, 2009 at 13:31, mini_alexander <aoohra...@gmail.com> wrote:
>
> > I don't understand. My nation language isn't English. what did you
> > got ?
>
> > On 18 Wrz, 17:51, Sid Ferreira <sid....@gmail.com> wrote:
> > > Ok, I think I got it.
> > > See, backend will add the file name for ya
>
> > > On Fri, Sep 18, 2009 at 12:48, mini_alexander <aoohra...@gmail.com>
> > wrote:
>
> > > > Rather not ;] I am new and I simply would like to know it is normal
> > > > that I must add to each link in backend application at the beginning:
> > > > '/backend.php'  ? I think yes because frontend is default application,
> > > > not backend but maybe I am wrong ?
>
> > > > On 18 Wrz, 17:39, Sid Ferreira <sid....@gmail.com> wrote:
>
> >http://www.symfony-project.org/cookbook/1_2/en/cross-application-links
>
> > > > > Is this what you want?
>
> > > > > On Sep 18, 12:02 pm, mini_alexander <aoohra...@gmail.com> wrote:
>
> > > > > > As I understand in backend application in files I must everywhere
> > in
> > > > > > each link
> > > > > > write at the beginning /backend.php - for example:
> > > > > > <a href="/backend.php/start/index" >home</a>
> > > > > > or
> > > > > > <form action="<?php echo url_for('/backend.php/users/index') ?>" />
>
> > > > > > yes ???????????
>
> > > > > > Because generated links by symfony look for example:
> > > > > > url_for('/users/index')
>
> > > > > > so I must everything change by myself adding /backend.php ??????
> > > > > > yes or not ? xD I would like to know because maybe I am loosing
> > time
> > > > > > for that ? or maybe not ? :)
>
> > > --
> > > Sidney G B Ferreira
> > > Desenvolvedor Web
>
> --
> Sidney G B Ferreira
> Desenvolvedor Web
--~--~---------~--~----~------------~-------~--~----~
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