The url_for() helper is environment-aware - it means that it will echo
the correct url for your current environment. In your case, you echoed
a link for the 'user' application in the 'dev' environment, that's why
the url included the user_dev.php filename. If that was your first
application in the project, the 'prod' environment would not include a
filename, and let .htaccess handle the redirection to index.php.

You should always use symfony's Url helpers, that include url_for()
and link_to(). You can find more information about them here:
http://www.symfony-project.org/api/1_4/UrlHelper

I'm afraid I do not understand your other question.

On Thu, Sep 23, 2010 at 15:42, Nova Lina <[email protected]> wrote:
> hi dear all....
> im a junior programer and first time using symfony framework 1.4
> i have a trouble with link.....somebody can help me to explain what diferent
> source when i coding like this...
>              1) <a href="<?php echo url_for('main/home'); ?>">Home</a></li>
>  with
>              2) <a
> href="http://localhost/sf_sandbox/web/user_dev.php/login/Login";
> title="login">Log in
>
> but i have a lot of trouble with the first sourcecode.....when I can use the
> number one source code? and when I can use the source code number two?
>
>         I made many categories of products in my web, for example when my
> cursor is pointing to over the product category, it will show a list from
> the menu, such as women's shoes, men's shoes, sandals children.
> I think, would require many pages to display multiple images on each of
> these categories, but I want to display only one page, but one page that can
> display multiple images, if you like it, whether I should do the coding in
> the database? or whether symfony has an execute queries that can be easier
> for me in doing it in symfony 1.4? please repp from all of u  who
> understand  my problems.... for my final project ... thanks ... by nova
> Simak
> Baca secara fonetik
>
>
>
> --
> 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
>

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

Reply via email to