On Thu, 23 Sep 2010, Nova Lina wrote:

> 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

url_for() uses your routing rules to generate the URL.

The second doesn't.

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

You should always try to use routing to generate URLs for you.

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

You just need one page to display products - the only difference is the 
queries you run to generate the page. You will probably need to also use 
one of the pager classes if you have too many products to display on a 
single page.



-- 


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