Log message #108692

# At Username Text
# Aug 7th 2008, 04:33 pgcd speed and memory usage of foreach don't worry me in this case, seeing as it's gonna be 3/4 records at most for every loop
# Aug 7th 2008, 04:33 stevieboy pgcd: cake helps with data retrival and so on. in the view it's mostly normal php with the vars
# Aug 7th 2008, 04:32 pgcd stevieboy: =) i'll use it... honestly, it's just that i'm so new to cakephp that I always expect there's a "neater" way of doing everything
# Aug 7th 2008, 04:32 JeffEmbracedDC Martz: hah really? hmm
# Aug 7th 2008, 04:31 Martz JeffEmbracedDC: i ran away from HABTM and any complex queries I'd need for them a long time ago ;) Life is too short for HABTM! ;)
# Aug 7th 2008, 04:31 stevieboy pgcd: i meant you are wrong. foreach is usefull and the right approach for that
# Aug 7th 2008, 04:31 Martz poluta1: and if you try and implement it and get any errors, please bin your code of what you have (app controller, app model, and any models using it)
# Aug 7th 2008, 04:31 JeffEmbracedDC hey martz ... you familiar with 'with' associations for join tables?
# Aug 7th 2008, 04:31 pgcd stevieboy: we belong to the church of "Everything should be on one line", probably =)
# Aug 7th 2008, 04:31 stevieboy pgcd: that's just wrong,imho
# Aug 7th 2008, 04:30 Martz poluta1: something like this - also read the comments in top. = 'foo'; would be the logic to grab whatever you want from Session::read() http://bin.cakephp.org/view/1267003022
# Aug 7th 2008, 04:30 pgcd stevieboy: somehow i feel i shouldn't have it in my views...
# Aug 7th 2008, 04:30 JeffEmbracedDC foreach is okay but it's usually not as fast as other loop methods .
# Aug 7th 2008, 04:30 stevieboy pgcd: lol, i cant see why. it's like the one with the guy who says "continue" is evil in loops
# Aug 7th 2008, 04:29 pgcd stevieboy: yep, i admit to being a bit wary of foreach...
# Aug 7th 2008, 04:29 pgcd stevieboy: well, I could certainly extract both the ids and the names, but i fail to see how combining the arrays would help...
# Aug 7th 2008, 04:29 stevieboy pgcd: do you see foreach as sth evil? you keep avoiding it
# Aug 7th 2008, 04:29 poluta1 Martz: ok thank Martz.. i'am waiting :)
# Aug 7th 2008, 04:28 JeffEmbracedDC when using 'With' associations - is it possible to set up afterSave functions?
# Aug 7th 2008, 04:28 pgcd htmlhelper->link doesn't work with arrays, does it?
# Aug 7th 2008, 04:28 stevieboy pgcd: maybe array_combine helps?
# Aug 7th 2008, 04:27 pgcd Ok, so set::extract works great to make lists - what I can't seem to do without a foreach is having the list turned into a list of links, instead of strings...
# Aug 7th 2008, 04:27 thestaff what do you use ?
# Aug 7th 2008, 04:27 poluta1 i can't modify AppModel model class attributes
# Aug 7th 2008, 04:26 batcoder-7 whats the max you guys ever got done in 5 hours ?
# Aug 7th 2008, 04:26 stevieboy *it
# Aug 7th 2008, 04:26 stevieboy i dont use the thickbox-thingy, so i cant really test is
# Aug 7th 2008, 04:25 thestaff stevieboy, what should I do ?
# Aug 7th 2008, 04:25 TheBig Martz, I'll check now, thanks
# Aug 7th 2008, 04:25 poluta1 i can't modify AppModel model class
# Aug 7th 2008, 04:25 thestaff haha
# Aug 7th 2008, 04:25 Martz poluta1: 1 sec i'll bin some sorta logic for you
# Aug 7th 2008, 04:25 stevieboy thestaff: i referred to the replace-regex
# Aug 7th 2008, 04:25 Martz TheBig: There is TextHelper::truncate - so do you mean in the query or in the view?
# Aug 7th 2008, 04:25 poluta1 Martz: failed :(
# Aug 7th 2008, 04:24 batcoder-7 fammit 4 more hours
# Aug 7th 2008, 04:24 stevieboy p
# Aug 7th 2008, 04:24 stevieboy slifox: see you next month
# Aug 7th 2008, 04:24 thestaff stevieboy, ?
# Aug 7th 2008, 04:24 stevieboy thestaff: nerd!
# Aug 7th 2008, 04:24 slifox heh cheers I'll give this manual a read