[symfony-users] Re: url's in backend application

2009-09-20 Thread Jeremy Thomerson
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 aoohra...@gmail.comwrote:


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



[symfony-users] Re: url's in backend application

2009-09-20 Thread mini_alexander

thx :)

On 20 Wrz, 08:38, Jeremy Thomerson jeremythomer...@gmail.com 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 aoohra...@gmail.comwrote:



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



[symfony-users] Re: url's in backend application

2009-09-19 Thread mini_alexander

Sorry for long time with no answer but I had to upload everything and
check - so now I know the answer.
In backend we should really use link_to(), then Symfony automatic
adds /backend.php at the beginning of the link:
link_to('Change avatar', 'profile/change_avatar')
Or we can create link yourselver then we must add at the beginning '/
backend' by yourself:
a href=/backend.php/profile/change_avatar Change avatar /a

:



On 18 Wrz, 19:36, Sid Ferreira sid@gmail.com wrote:
 I think his backend is with 'no_script_name' on



 On Fri, Sep 18, 2009 at 14:30, Eno symb...@gmail.com wrote:

  On Fri, 18 Sep 2009, mini_alexander 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 ??

  Remember you can't have more than one controller in a directory. Usually
  index.php is your default application and your .htaccess rules redirect to
  that controller by default. But mod-rewrite knows nothing about your
  routing in your application so it can't selectively route to your backend
  controller.

  You could of course, but your backend controller in its own folder with
  its own .htaccess file - that might look better.

  --

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



[symfony-users] Re: url's in backend application

2009-09-19 Thread mini_alexander

And one more thing - thx all for help. :)



On 19 Wrz, 08:38, mini_alexander aoohra...@gmail.com wrote:
 Sorry for long time with no answer but I had to upload everything and
 check - so now I know the answer.
 In backend we should really use link_to(), then Symfony automatic
 adds /backend.php at the beginning of the link:
 link_to('Change avatar', 'profile/change_avatar')
 Or we can create link yourselver then we must add at the beginning '/
 backend' by yourself:
 a href=/backend.php/profile/change_avatar Change avatar /a

 :

 On 18 Wrz, 19:36, Sid Ferreira sid@gmail.com wrote:

  I think his backend is with 'no_script_name' on

  On Fri, Sep 18, 2009 at 14:30, Eno symb...@gmail.com wrote:

   On Fri, 18 Sep 2009, mini_alexander 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 ??

   Remember you can't have more than one controller in a directory. Usually
   index.php is your default application and your .htaccess rules redirect to
   that controller by default. But mod-rewrite knows nothing about your
   routing in your application so it can't selectively route to your backend
   controller.

   You could of course, but your backend controller in its own folder with
   its own .htaccess file - that might look better.

   --

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



[symfony-users] Re: url's in backend application

2009-09-19 Thread Alexandru-Emil Lupu
I would recomend you to use link_to( ) way. You may need to change the
Dispatcher name (let's say from backend to admin), then the whole links must
be replaced ... instead, symfony will do it automatically
A.

On Sat, Sep 19, 2009 at 9:39 AM, mini_alexander aoohra...@gmail.com wrote:


 And one more thing - thx all for help. :)



 On 19 Wrz, 08:38, mini_alexander aoohra...@gmail.com wrote:
  Sorry for long time with no answer but I had to upload everything and
  check - so now I know the answer.
  In backend we should really use link_to(), then Symfony automatic
  adds /backend.php at the beginning of the link:
  link_to('Change avatar', 'profile/change_avatar')
  Or we can create link yourselver then we must add at the beginning '/
  backend' by yourself:
  a href=/backend.php/profile/change_avatar Change avatar /a
 
  :
 
  On 18 Wrz, 19:36, Sid Ferreira sid@gmail.com wrote:
 
   I think his backend is with 'no_script_name' on
 
   On Fri, Sep 18, 2009 at 14:30, Eno symb...@gmail.com wrote:
 
On Fri, 18 Sep 2009, mini_alexander 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 ??
 
Remember you can't have more than one controller in a directory.
 Usually
index.php is your default application and your .htaccess rules
 redirect to
that controller by default. But mod-rewrite knows nothing about your
routing in your application so it can't selectively route to your
 backend
controller.
 
You could of course, but your backend controller in its own folder
 with
its own .htaccess file - that might look better.
 
--
 
   --
   Sidney G B Ferreira
   Desenvolvedor Web
 



-- 
As programmers create bigger  better idiot proof programs, so the universe
creates bigger  better idiots!
I am on web:  http://www.alecslupu.ro/
I am on twitter: http://twitter.com/alecslupu
I am on linkedIn: http://www.linkedin.com/in/alecslupu
Tel: (+4)0748.543.798

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



[symfony-users] Re: url's in backend application

2009-09-19 Thread mini_alexander

thx for advice  :)

On 19 Wrz, 08:45, Alexandru-Emil Lupu gang.al...@gmail.com wrote:
 I would recomend you to use link_to( ) way. You may need to change the
 Dispatcher name (let's say from backend to admin), then the whole links must
 be replaced ... instead, symfony will do it automatically
 A.



 On Sat, Sep 19, 2009 at 9:39 AM, mini_alexander aoohra...@gmail.com wrote:

  And one more thing - thx all for help. :)

  On 19 Wrz, 08:38, mini_alexander aoohra...@gmail.com wrote:
   Sorry for long time with no answer but I had to upload everything and
   check - so now I know the answer.
   In backend we should really use link_to(), then Symfony automatic
   adds /backend.php at the beginning of the link:
   link_to('Change avatar', 'profile/change_avatar')
   Or we can create link yourselver then we must add at the beginning '/
   backend' by yourself:
   a href=/backend.php/profile/change_avatar Change avatar /a

   :

   On 18 Wrz, 19:36, Sid Ferreira sid@gmail.com wrote:

I think his backend is with 'no_script_name' on

On Fri, Sep 18, 2009 at 14:30, Eno symb...@gmail.com wrote:

 On Fri, 18 Sep 2009, mini_alexander 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 ??

 Remember you can't have more than one controller in a directory.
  Usually
 index.php is your default application and your .htaccess rules
  redirect to
 that controller by default. But mod-rewrite knows nothing about your
 routing in your application so it can't selectively route to your
  backend
 controller.

 You could of course, but your backend controller in its own folder
  with
 its own .htaccess file - that might look better.

 --

--
Sidney G B Ferreira
Desenvolvedor Web

 --
 As programmers create bigger  better idiot proof programs, so the universe
 creates bigger  better idiots!
 I am on web:  http://www.alecslupu.ro/
 I am on twitter:http://twitter.com/alecslupu
 I am on linkedIn:http://www.linkedin.com/in/alecslupu
 Tel: (+4)0748.543.798
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[symfony-users] Re: url's in backend application

2009-09-18 Thread Sid Ferreira

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 ? :)
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[symfony-users] Re: url's in backend application

2009-09-18 Thread mini_alexander

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 ? :)
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[symfony-users] Re: url's in backend application

2009-09-18 Thread Sid Ferreira
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

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



[symfony-users] Re: url's in backend application

2009-09-18 Thread mini_alexander

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



[symfony-users] Re: url's in backend application

2009-09-18 Thread Gábor Fási

You can simply use `url_for(users/index)`, symfony will add
backed.php, if neccesary.

On Fri, Sep 18, 2009 at 18: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
 


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



[symfony-users] Re: url's in backend application

2009-09-18 Thread Sid Ferreira
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
-~--~~~~--~~--~--~---



[symfony-users] Re: url's in backend application

2009-09-18 Thread mini_alexander

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



[symfony-users] Re: url's in backend application

2009-09-18 Thread Sid Ferreira
it's probably something misconfigured...
Can you paste your settings.yml and show us?

On Fri, Sep 18, 2009 at 14:12, mini_alexander aoohra...@gmail.com 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 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
 



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



[symfony-users] Re: url's in backend application

2009-09-18 Thread Eno

On Fri, 18 Sep 2009, mini_alexander 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 ??

Remember you can't have more than one controller in a directory. Usually 
index.php is your default application and your .htaccess rules redirect to 
that controller by default. But mod-rewrite knows nothing about your 
routing in your application so it can't selectively route to your backend 
controller.

You could of course, but your backend controller in its own folder with 
its own .htaccess file - that might look better.



-- 



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



[symfony-users] Re: url's in backend application

2009-09-18 Thread Sid Ferreira
I think his backend is with 'no_script_name' on

On Fri, Sep 18, 2009 at 14:30, Eno symb...@gmail.com wrote:


 On Fri, 18 Sep 2009, mini_alexander 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 ??

 Remember you can't have more than one controller in a directory. Usually
 index.php is your default application and your .htaccess rules redirect to
 that controller by default. But mod-rewrite knows nothing about your
 routing in your application so it can't selectively route to your backend
 controller.

 You could of course, but your backend controller in its own folder with
 its own .htaccess file - that might look better.



 --



 



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