thx :)
On 20 Wrz, 08:38, Jeremy Thomerson <[email protected]> wrote:
> Because you're not using url_for. You should write your link like:
>
> <a href="<?php echo url_for('profile/change_avatar') ?>">some text</a>
>
> That will automatically handle the adding of the correct path for you.
> You're currently writing a relative link to a child folder named profile
> when you are already thought to be in a folder named profile.
>
> Jeremy Thomerson
>
> On Fri, Sep 18, 2009 at 12:12 PM, mini_alexander <[email protected]>wrote:
>
>
>
> > 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 <[email protected]> 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 <[email protected]>
> > wrote:
>
> > > > I don't understand. My nation language isn't English. what did you
> > > > got ?
>
> > > > On 18 Wrz, 17:51, Sid Ferreira <[email protected]> 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 <[email protected]>
> > > > 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 <[email protected]> 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 <[email protected]> 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 [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
-~----------~----~----~----~------~----~------~--~---