Hi hi,
I'm looking for a easy to learn php library to use for my coming web app project.
I've recently finished a web app with fully handwritten raw php code and it's absolutely hard to be done again for another project.
even though I have the recent project code snippets to be used again, but due to their non-structural arrangement (not object oriented), i have no passion to use 'em again.
I have no experience with common frameworks like ZF, CakePhp, CodeIgniter, so I think to get my hands on a multipurpose OO library for my web app and the framework learning will be the next step! any suggestion?
UPDATE:
Many thanks guys, I have not enough time to get through the depth of every lib or framework you have kindly introduced. Since I'm going one step further I'm going to use ZF as famous framework which could provide me more job opportunities perhaps. thankssss :)
Hi, I'm trying to query a set of buldings listed on a table, these buildings are linked with tags. I'm able to do it, but my problem is how limit the number of tags to see:
table buildings
id building_name style
1 Pompidou bla
2 Alcatraz bla
3 etc. etc.
table tags // they can be 50 or more per building
id tag_name
1 minimal
2 gothic
3 classical
4 modern
5 etc.
table buildings_tags
id building_id tag_id
I though to do something like this to retrieve the list, but this isn't compplete:
SELECT DISTINCT(tag), bulding_name
FROM buldings
INNER JOIN buildings_tags
ON buildings.id = buildings_tags.building_id
INNER JOIN tags
ON tags.id = buildings_tags.tag_id
LIMIT 0, 20
// result
building tag
Pompidou great
Pompidou france
Pompidou paris
Pompidou industrial
Pompidou renzo piano <= How to stop at the 5th result?
Pompidou hi-tech
Pompidou famous place
Pompidou wtf
etc.. etc...
this query loads the buildings, but this query loads all the tags linked for the building, and not only 5 of them?
Hi folks,
I my application I have one large PNG file containg hi-res image. Depending on situation I would like to use this image either as icon or as placeholder for ImageView.
For MenuItem this image is too large, so I need to scale-down it to suitable size. I mean if it has to be displayed on large enough device like Samsung Galaxy Tab - I need to use one scale, for in small ones another, etc. I just noticed that for small-sized devices MenuItem icon is not scaled just cut - which is ugly.
So the question is how should detect which is preferred size?