Page 13 of 36,922, showing 100 records out of 3,692,143 total, starting on record 1,201, ending on 1,300
# | Username | Text | |
---|---|---|---|
# | Aug 6th 2008, 23:10 | poluta1 | moelee: i don't have field named id in my table |
# | Aug 6th 2008, 23:10 | poluta1 | just that two fields |
# | Aug 6th 2008, 23:10 | poluta1 | should i add 'id' field ? |
# | Aug 6th 2008, 23:11 | moelee | um |
# | Aug 6th 2008, 23:11 | moelee | you need an id field in your join table i believe |
# | Aug 6th 2008, 23:11 | moelee | auto incremented |
# | Aug 6th 2008, 23:12 | poluta1 | ok.. maybe 'id' field is the requirement for convention |
# | Aug 6th 2008, 23:12 | moelee | yea |
# | Aug 6th 2008, 23:12 | moelee | i've had an id field in all fo my tables |
# | Aug 6th 2008, 23:12 | moelee | of* |
# | Aug 6th 2008, 23:12 | moelee | once you do that, it'll probably work with just create |
# | Aug 6th 2008, 23:14 | poluta1 | moelee: hooray it works! . no need to set $this->Listener->ArtistsFan->id=null |
# | Aug 6th 2008, 23:14 | poluta1 | just add 'id' field :D |
# | Aug 6th 2008, 23:14 | moelee | yep |
# | Aug 6th 2008, 23:16 | freebox | / |
# | Aug 6th 2008, 23:16 | freebox | moelee: you use sluggable behavior? |
# | Aug 6th 2008, 23:16 | freebox | i'm trouble with duplicate slugs |
# | Aug 6th 2008, 23:17 | freebox | im using the title field to slug, then the first record with tile "Foo Bar" have slug foo-bar |
# | Aug 6th 2008, 23:17 | mrConfused | does any1 have a recommendation between xamp and wamp? |
# | Aug 6th 2008, 23:17 | freebox | the second "Foo Bar" have slug foo-bar-1 |
# | Aug 6th 2008, 23:17 | freebox | the third have foo-bar-1 too |
# | Aug 6th 2008, 23:17 | freebox | / |
# | Aug 6th 2008, 23:17 | moelee | haven't played around with that, no |
# | Aug 6th 2008, 23:18 | thestaff | moelee, do you know about modalbox ? |
# | Aug 6th 2008, 23:18 | moelee | hm nope |
# | Aug 6th 2008, 23:19 | moelee | sorry |
# | Aug 6th 2008, 23:19 | thestaff | crap, i did their tuto line for line and don't get the same result |
# | Aug 6th 2008, 23:19 | thestaff | no error tho! |
# | Aug 6th 2008, 23:22 | freebox | uhm |
# | Aug 6th 2008, 23:22 | freebox | the line 121 of sluggable.php must changed to $conditions = array($Model->alias . '.' . $this->__settings[$Model->alias]['slug'] . ' LIKE '=> $slug . '%'); |
# | Aug 6th 2008, 23:22 | batcoder-7 | polerin: you still up ? |
# | Aug 6th 2008, 23:24 | moelee | night all |
# | Aug 6th 2008, 23:24 | batcoder-7 | or anyone else here who has made dynamic menus with cakephp ? |
# | Aug 6th 2008, 23:29 | benni | batcoder-7: I did, kind of... what's the question? |
# | Aug 6th 2008, 23:29 | batcoder-7 | im just having a real time with it |
# | Aug 6th 2008, 23:29 | Jezek | how can i get the current url as a variable in the beforeSave function |
# | Aug 6th 2008, 23:30 | batcoder-7 | benni: i have 5 top level tops and i want whem those are clicked to be like maybe 5 other nested links uner each top level |
# | Aug 6th 2008, 23:31 | julien_re_ | mmm $_SERVER['REQUEST_URI'] ? |
# | Aug 6th 2008, 23:31 | Jezek | or the action name actually |
# | Aug 6th 2008, 23:33 | benni | So what's the question? How to do that? |
# | Aug 6th 2008, 23:35 | cl0s_ | if i set $this->contain(array('Model'))... and then $this->contain(array('Model2')) somewhere else later on.. will the second one override or add on to what will be contained? |
# | Aug 6th 2008, 23:35 | batcoder-7 | benni: everyone seems ot have a different method |
# | Aug 6th 2008, 23:36 | batcoder-7 | i am looking for the easiest but yet cleanest and best method |
# | Aug 6th 2008, 23:36 | joorus | cl0s_, override |
# | Aug 6th 2008, 23:37 | benni | I've seen a very nice way to do this in the cake-powered wildflower-cms - the navigation-data is stored in a tree-behaviour-table |
# | Aug 6th 2008, 23:37 | cl0s_ | is there anyway to check if there is already something set.. and possibly what it is? |
# | Aug 6th 2008, 23:41 | batcoder-7 | benni: what a 2 tier menu system ? |
# | Aug 6th 2008, 23:44 | joorus | cl0s_, i don't know. Sure someones else does... Meanwhile why not looking the ContainableBehavior class reference? http://api.cakephp.org/class_containable_behavior.html |
# | Aug 6th 2008, 23:48 | benni | batcoder-7: yap, kind of... with some jquery-magic I did that, see vernonlee.com |
# | Aug 6th 2008, 23:48 | batcoder-7 | eeek |
# | Aug 6th 2008, 23:48 | batcoder-7 | yeai just saw that |
# | Aug 6th 2008, 23:48 | batcoder-7 | no JS allowed here atm |
# | Aug 6th 2008, 23:48 | cl0s_ | yea already looks all through there... thanks though.. |
# | Aug 6th 2008, 23:50 | tomas- | i thought i came across some documentation that said there are some convenient variables for the current date/time/etc available? or am i just imagining things? |
# | Aug 6th 2008, 23:50 | polywog | can someone help with this: $this->Client->Incident->find('all', array('conditions' => array('Incident.modified' => '>='.$chartTimes))); $this->Client->Incident->find('all', array('conditions' => array('Incident.modified' => '>='.$chartTimes))); |
# | Aug 6th 2008, 23:51 | polywog | woops i meant jus tone of those |
# | Aug 6th 2008, 23:51 | polerin | I'm still up |
# | Aug 6th 2008, 23:51 | polerin | busy, but up |
# | Aug 6th 2008, 23:51 | polerin | I need a third screen |
# | Aug 6th 2008, 23:51 | polerin | or 4th almost |
# | Aug 6th 2008, 23:51 | polerin | heh |
# | Aug 6th 2008, 23:51 | tomas- | polywog, is the >= supposed to be in the key (iIncident.modified) instead of the value? |
# | Aug 6th 2008, 23:51 | batcoder-7 | every example i look at for dynamic menus uses a comeltely different method |
# | Aug 6th 2008, 23:51 | batcoder-7 | completely* |
# | Aug 6th 2008, 23:52 | polerin | as I said |
# | Aug 6th 2008, 23:52 | polerin | there's like 50 gazillion ways to do it |
# | Aug 6th 2008, 23:52 | batcoder-7 | yea i see that now |
# | Aug 6th 2008, 23:52 | polywog | tomas-: no, greater than or equal to but i guess it's getting late on my end |
# | Aug 6th 2008, 23:52 | polerin | so, do you have that array that I suggested, or did you go with a different path? |
# | Aug 6th 2008, 23:52 | polywog | ugh |
# | Aug 6th 2008, 23:52 | polywog | n/m |
# | Aug 6th 2008, 23:52 | polywog | well |
# | Aug 6th 2008, 23:52 | polywog | that didn't work either |
# | Aug 6th 2008, 23:53 | polerin | if you decided to do it that way, bin your element or section of code in your layout that does the menu building |
# | Aug 6th 2008, 23:53 | batcoder-7 | polerin: yea i will do it with an array seems like the best way, i wa just looking at other examples |
# | Aug 6th 2008, 23:53 | polywog | the '>' keeps getting lumped in (quoted) with the date |
# | Aug 6th 2008, 23:53 | tomas- | polywog, I mean something like this: $this->Client->Incident->find('all', array('conditions' => array('Incident.modified >= ' => $chartTimes)) |
# | Aug 6th 2008, 23:53 | polerin | yeah, what tomas- said. put the >= in the field, not the value |
# | Aug 6th 2008, 23:53 | polywog | ahhh, it's to the LEFT of the quote, is this new for RC@? |
# | Aug 6th 2008, 23:53 | polywog | rc2 |
# | Aug 6th 2008, 23:53 | polerin | polywog: Not sure, |
# | Aug 6th 2008, 23:54 | polerin | I think it's been around a bit |
# | Aug 6th 2008, 23:54 | Raphael | Noise98, ? |
# | Aug 6th 2008, 23:54 | tomas- | polywog, because the value is either quoted or put as a placeholder, etc... |
# | Aug 6th 2008, 23:54 | Raphael | Fuck, my IRC client buffer is over... |
# | Aug 6th 2008, 23:54 | Raphael | If you gave me the solution, I lost it... |
# | Aug 6th 2008, 23:55 | Raphael | It will be for this evening |
# | Aug 6th 2008, 23:55 | Raphael | ciao |
# | Aug 6th 2008, 23:55 | polywog | yeah, it's gotta be, cause all the docs I have here have the '>' to the right (as part of the value) |
# | Aug 6th 2008, 23:55 | batcoder-7 | polerin: actually i dont see how to exactly do it with an array, i can see hwo that would be bthe best option but i just dont know what i have to do |
# | Aug 6th 2008, 23:55 | polywog | yup |
# | Aug 6th 2008, 23:55 | polerin | I'll bin a quickie, but it's not going to be perfect |
# | Aug 6th 2008, 23:56 | polerin | and it's not going to be functional... i'm getting tired and have a bunch of work left tonight |
# | Aug 6th 2008, 23:56 | polywog | tomas-: thanks, it's time for bed now |
# | Aug 6th 2008, 23:56 | batcoder-7 | polerin: anything would help |
# | Aug 7th 2008, 00:02 | polerin | sorry, needed to make some tea |
# | Aug 7th 2008, 00:02 | loki_racer | why does cake sometimes now save the created field |
# | Aug 7th 2008, 00:03 | polerin | loki_racer: what do you mean? It's autosaved the created field for a good while now |
# | Aug 7th 2008, 00:03 | polerin | as long as it's a datetime |
# | Aug 7th 2008, 00:03 | loki_racer | rather, why does cake not sometimes populate the created field automatically when the save method is used |