Page 28 of 36,922, showing 100 records out of 3,692,143 total, starting on record 2,701, ending on 2,800
# | Username | Text | |
---|---|---|---|
# | Aug 7th 2008, 08:49 | TommyO | ACTION looks |
# | Aug 7th 2008, 08:49 | Coenraad | •picca• yea, sounds like a cake-core issue |
# | Aug 7th 2008, 08:49 | picca | Coenraad: And both username and password fields must exist in $this->data to make Auth component hash passwords |
# | Aug 7th 2008, 08:49 | pgcd | perilousapricot: if you've worked with it, maybe you can save me some time - do i have to edit the css? right now it shows the large image at the bottom of the page.. |
# | Aug 7th 2008, 08:50 | lqdice__ | TommyO: have you ever used the tree behavior but limit the items returned by some user access.. basically like I am using the Tree behavior to do a folder like system but i dont want all users to see all folders |
# | Aug 7th 2008, 08:50 | lqdice__ | ever seen anyone do this ? |
# | Aug 7th 2008, 08:50 | perilousapricot | pgcd: IIRC, you don't unless you dont like how it looks by default |
# | Aug 7th 2008, 08:51 | TommyO | lqdice__: I haven't, but it should be easy enough to limit on conditions |
# | Aug 7th 2008, 08:51 | pgcd | perilousapricot: still, there must be something wrong, as i'm getting a ton of css errors (as in declaration dropped) |
# | Aug 7th 2008, 08:51 | lqdice__ | TommyO: it seems kind of difficult when you actually do it |
# | Aug 7th 2008, 08:52 | lqdice__ | because if user has access to some node deep in the tree, he should see all of the parent nodes etc.. |
# | Aug 7th 2008, 08:52 | perilousapricot | pgcd: mmmm, i've not had that happen before |
# | Aug 7th 2008, 08:52 | perilousapricot | pbcd: sorry, budddy |
# | Aug 7th 2008, 08:52 | pgcd | ok, thanks anyway =) |
# | Aug 7th 2008, 08:54 | pgcd | there must be a rule collision somewhere, but it's kinda working now |
# | Aug 7th 2008, 09:05 | FunkyWeasel | Good afternoon. |
# | Aug 7th 2008, 09:05 | moelee | anyone awake here |
# | Aug 7th 2008, 09:06 | FunkyWeasel | I'm currently working on migrating our codebase from cakephp1.1 to cakephp1.2. I've managed to avoid most of the obvious pitfalls (.ctp, App::Import and other hillarity) but I've got something odd happening with one of our models. |
# | Aug 7th 2008, 09:07 | moelee | FunkyWeasel: just say the problem |
# | Aug 7th 2008, 09:07 | FunkyWeasel | It's got a recursive relationship defined, representing a mysql table with hierarchical records. When I don't comment out the relationships the page fails to render or drop any related info in php log, cakephp log or syslog. |
# | Aug 7th 2008, 09:08 | moelee | hah no worries |
# | Aug 7th 2008, 09:08 | FunkyWeasel | Does cakephp 1.2 support recursive model relationships? |
# | Aug 7th 2008, 09:09 | moelee | hm |
# | Aug 7th 2008, 09:09 | FunkyWeasel | E.g. In Category model: var $belongsTo = array("Parent" => array('className' => 'Category','foreignKey' => 'parent')); |
# | Aug 7th 2008, 09:09 | moelee | i've never tried it |
# | Aug 7th 2008, 09:09 | moelee | i have done recursive habtm |
# | Aug 7th 2008, 09:10 | moelee | and that seems to work successfully because there is a join table involved |
# | Aug 7th 2008, 09:10 | moelee | that makes the relations explicit |
# | Aug 7th 2008, 09:10 | FunkyWeasel | Aye, we've not done that yet with other relations because we're only just moving to 1.2 now :) |
# | Aug 7th 2008, 09:11 | FunkyWeasel | It's odd that the above code worked in 1.1 without issues though, but causes (what I assume to be) an overflow error. |
# | Aug 7th 2008, 09:11 | FunkyWeasel | causes the overflow in 1.2 rather. |
# | Aug 7th 2008, 09:12 | FunkyWeasel | My working assumption is that it's going bananas because it doesn't know when to stop recursing. |
# | Aug 7th 2008, 09:12 | ammadsaleem | Hi all |
# | Aug 7th 2008, 09:12 | moelee | hm sorry, don't have experience with this issue |
# | Aug 7th 2008, 09:13 | ammadsaleem | I have defined a function in the App Controller Class |
# | Aug 7th 2008, 09:13 | ammadsaleem | I want to call it in one of my views |
# | Aug 7th 2008, 09:13 | ammadsaleem | how can I do this |
# | Aug 7th 2008, 09:13 | ammadsaleem | ? |
# | Aug 7th 2008, 09:13 | FunkyWeasel | requestAction AFAIk |
# | Aug 7th 2008, 09:14 | FunkyWeasel | No worries, I'll keep digging around for a solution or workaround to this recursive model issue - if I find it I'll try to remember to come back here and mention it. |
# | Aug 7th 2008, 09:14 | ammadsaleem | and what is the path that I should specify in the request action? |
# | Aug 7th 2008, 09:15 | FunkyWeasel | Hmm, '/controller/method/params' I think. But definitely check out the requestAction() documentation to be sure. |
# | Aug 7th 2008, 09:28 | nymacro | ehhh |
# | Aug 7th 2008, 09:29 | nymacro | would there be any reason Auth is doing a MD5 when i create a record, but when I modify an existing record it just puts it plain-text? |
# | Aug 7th 2008, 09:29 | TommyO | ammadsaleem: what is the nature of this 'function'? are you sure it belongs in the controller if you intend on calling it from the view? sure you need to call it from the view and not have it pass values in from the controller? |
# | Aug 7th 2008, 09:29 | nymacro | ohwait |
# | Aug 7th 2008, 09:30 | nymacro | I'm silly |
# | Aug 7th 2008, 09:30 | nymacro | don't mind me |
# | Aug 7th 2008, 09:36 | moelee | how do you make the aro reflect the parent_id in the group model? |
# | Aug 7th 2008, 09:36 | Eddie_CRO | one easy question. i get "Missing argument 1 for..." warning when calling action that has defined parameter. How to call it for that parameter to be null? |
# | Aug 7th 2008, 09:36 | moelee | $var = null |
# | Aug 7th 2008, 09:36 | Eddie_CRO | and no get warning :) |
# | Aug 7th 2008, 09:37 | moelee | function action($thisvar = null) |
# | Aug 7th 2008, 09:37 | Eddie_CRO | no, from address bar, through link :) |
# | Aug 7th 2008, 09:37 | moelee | hm |
# | Aug 7th 2008, 09:37 | Eddie_CRO | \/search for example |
# | Aug 7th 2008, 09:37 | Eddie_CRO | i have it defined function search($parameter) |
# | Aug 7th 2008, 09:37 | moelee | well if it is passed through the address bar, it still is passed through the function |
# | Aug 7th 2008, 09:37 | Eddie_CRO | but |
# | Aug 7th 2008, 09:37 | moelee | i.e. |
# | Aug 7th 2008, 09:38 | moelee | http://blah.com/search/apples |
# | Aug 7th 2008, 09:38 | Eddie_CRO | yes, but i get warning |
# | Aug 7th 2008, 09:38 | moelee | will pass apples into $param |
# | Aug 7th 2008, 09:38 | moelee | function search($param) |
# | Aug 7th 2008, 09:38 | Eddie_CRO | oh |
# | Aug 7th 2008, 09:39 | Eddie_CRO | i did something and i don't get it any more |
# | Aug 7th 2008, 09:39 | moelee | so just set param default = null |
# | Aug 7th 2008, 09:39 | Eddie_CRO | don't know how |
# | Aug 7th 2008, 09:39 | Eddie_CRO | ) |
# | Aug 7th 2008, 09:39 | moelee | haha |
# | Aug 7th 2008, 09:39 | moelee | alright |
# | Aug 7th 2008, 09:39 | Eddie_CRO | ah, i know |
# | Aug 7th 2008, 09:39 | Eddie_CRO | changed link |
# | Aug 7th 2008, 09:39 | Eddie_CRO | that's no go. |
# | Aug 7th 2008, 09:39 | Eddie_CRO | ) |
# | Aug 7th 2008, 09:39 | Eddie_CRO | so, where were we |
# | Aug 7th 2008, 09:39 | Eddie_CRO | ) |
# | Aug 7th 2008, 09:39 | moelee | just set the parameter = null |
# | Aug 7th 2008, 09:39 | TommyO | function search($param = null) |
# | Aug 7th 2008, 09:39 | moelee | and that will be default if nothing is passed through url |
# | Aug 7th 2008, 09:39 | Eddie_CRO | aaaaaa |
# | Aug 7th 2008, 09:39 | Eddie_CRO | default |
# | Aug 7th 2008, 09:40 | moelee | and you can just do an if to check it and do some other action |
# | Aug 7th 2008, 09:40 | Eddie_CRO | right |
# | Aug 7th 2008, 09:40 | Eddie_CRO | moron |
# | Aug 7th 2008, 09:40 | TommyO | ACTION thinks using params, other than maybe $id, is clumsy ;) |
# | Aug 7th 2008, 09:40 | Eddie_CRO | thanks dude |
# | Aug 7th 2008, 09:40 | moelee | haha |
# | Aug 7th 2008, 09:40 | moelee | np |
# | Aug 7th 2008, 09:40 | moelee | why is that TommyO? |
# | Aug 7th 2008, 09:40 | TommyO | well, more than 1 I guess I mean |
# | Aug 7th 2008, 09:41 | TommyO | it's too rigid |
# | Aug 7th 2008, 09:41 | Eddie_CRO | yup, works like a charm |
# | Aug 7th 2008, 09:41 | Eddie_CRO | ;-) |
# | Aug 7th 2008, 09:41 | moelee | cheers, mate |
# | Aug 7th 2008, 09:41 | moelee | brb |
# | Aug 7th 2008, 09:41 | TommyO | Cake has cleaner ways, like named params, etc |
# | Aug 7th 2008, 09:41 | Eddie_CRO | what do you mean? |
# | Aug 7th 2008, 09:41 | Eddie_CRO | if so you have to use forms, right? |
# | Aug 7th 2008, 09:41 | TommyO | nope |