Logs for #cakephp

Page 7 of 36,430, showing 100 records out of 3,642,926 total, starting on record 601, ending on 700

# At Username Text
# Aug 6th 2008, 17:23 Tom_M_ $trivia = $this->paginate('Questionset'); $trivia = $trivia[0]; --- was what i did and worked
# Aug 6th 2008, 17:23 Tom_M_ maybe im just being anal for an extra simple line of code
# Aug 6th 2008, 17:24 evo__ hello, whats the finest image and resize, well explained and documented component
# Aug 6th 2008, 17:24 evo__ hello, whats the finest image and resize, well explained and documented image upload component*
# Aug 6th 2008, 17:25 Tom_M_ evo__ i use a behavior
# Aug 6th 2008, 17:25 Tom_M_ that i wrote and need to polish up, but does the trick
# Aug 6th 2008, 17:25 evo__ where is it Tom_M_ ?
# Aug 6th 2008, 17:26 Tom_M_ ill paste to pastebin in a sec
# Aug 6th 2008, 17:26 ADmad evo__: there are a couple of image upload and resize behaviors on the bakery.. check them out
# Aug 6th 2008, 17:28 zmonteca can somebody help me better understand the error model and handling in cake? I don't think i'm dealing with errors properly.
# Aug 6th 2008, 17:28 evo__ ok ADmad
# Aug 6th 2008, 17:29 Tom_M_ bleh i didnt realize how clunky it is
# Aug 6th 2008, 17:29 Tom_M_ http://bin.cakephp.org/view/115579865
# Aug 6th 2008, 17:29 Tom_M_ and pretty specific to what i needed
# Aug 6th 2008, 17:29 Tom_M_ but maybe worth a look
# Aug 6th 2008, 17:31 francky06l gwoo: I wrote about an Auth extended in bakery (about several groups/roles) ... good, bad, wrong way, did not check ? I'd like to have your opinion ...
# Aug 6th 2008, 17:43 gwoo francky06l: i have not looked at it yet
# Aug 6th 2008, 17:43 gwoo whats the link?
# Aug 6th 2008, 17:44 francky06l gwoo: http://bakery.cakephp.org/articles/view/authext-a-small-auth-extension-to-set-permission-on-user-belonging-to-several-groups-roles no emergency thougth..
# Aug 6th 2008, 17:46 seghezzi hi, how do i validate that an entry is unique in the database, using the model?
# Aug 6th 2008, 17:47 francky06l seghezzi: validation isUnique
# Aug 6th 2008, 17:47 seghezzi D
# Aug 6th 2008, 17:47 mitnavn_ Can I make a function in the controller work without a view without make it private?
# Aug 6th 2008, 17:47 renan_saddam seghezzi: http://manual.cakephp.org/view/472/isunique
# Aug 6th 2008, 17:47 gwoo francky06l: looks pretty good
# Aug 6th 2008, 17:48 gwoo there are some other things you might have done but it would not have saved you much more code
# Aug 6th 2008, 17:48 seghezzi Thank you very much
# Aug 6th 2008, 17:49 loki_racer what is the correct way to use the form help to build a set of radio buttons
# Aug 6th 2008, 17:49 loki_racer i can't seem to figure out how to assign the value of the radio buttons
# Aug 6th 2008, 17:49 francky06l gwoo: do not know, I could have done the inherintance, but was scared to loose people in there ..Anyway, I use it in prod ...(with also inheritance) ... and wanted to share it ..
# Aug 6th 2008, 17:51 francky06l loki_racer: as an array .. (value => 'label1', ,value2 =>' label2')
# Aug 6th 2008, 17:52 loki_racer francky061: Polls and it has many PollAnswer and I find the Poll with recursive getting all its PollAnswer, do I have to loop that and rebuild that array to have what you are saying
# Aug 6th 2008, 17:52 francky06l gwoo: for the other things, .. feel free to amend, suggest ... (I wanted to avoid N user Aro
# Aug 6th 2008, 17:53 francky06l loki_racer: you can builld up your array using set::extract
# Aug 6th 2008, 17:53 loki_racer never used it.....guess I will look into it
# Aug 6th 2008, 17:53 loki_racer is that used in the controller or view
# Aug 6th 2008, 17:54 francky06l loki_racer: check the cookbook and google groups, quite straight froward
# Aug 6th 2008, 17:54 renan_saddam loki_racer: anywhere
# Aug 6th 2008, 17:54 loki_racer cool.....thanks guys
# Aug 6th 2008, 17:55 nymacro lol, that is weird
# Aug 6th 2008, 17:56 nymacro mysql_connect would connect to 127.0.0.1, but wouldn't connect to localhost using a local socket
# Aug 6th 2008, 17:57 francky06l nymacro: under windows ?
# Aug 6th 2008, 17:57 nymacro Mac OS X/Darwin
# Aug 6th 2008, 17:57 shabba hey guys
# Aug 6th 2008, 17:57 nymacro took me ages to set up.. because i got distracted
# Aug 6th 2008, 17:57 shabba do vendors go in app/vendors or cake_path/vendors ?
# Aug 6th 2008, 17:57 gwoo francky06l: the acl setup is nice
# Aug 6th 2008, 17:57 francky06l nymacro: well mac/Os are not my cup of tee
# Aug 6th 2008, 17:58 renan_saddam shabba: /vendors or /app/vendors
# Aug 6th 2008, 17:58 gwoo francky06l: good use of roles etc
# Aug 6th 2008, 17:58 shabba so there both the same
# Aug 6th 2008, 17:58 nymacro francky06l: the problem was: it should work, but it didn't. Cake wouldn't connect using local socket, but CocoaMySQL would (using localsocket)
# Aug 6th 2008, 17:58 francky06l gwoo: get pretty heavy in case of lot's of controllers/actions ... but I have variants :0
# Aug 6th 2008, 17:58 renan_saddam shabba:
# Aug 6th 2008, 17:58 shabba yes?
# Aug 6th 2008, 17:58 renan_saddam shabba: yes, that is
# Aug 6th 2008, 17:59 shabba okay p
# Aug 6th 2008, 17:59 francky06l gwoo: could be groups .... and so on ...
# Aug 6th 2008, 17:59 gwoo yup
# Aug 6th 2008, 18:00 francky06l Why so many many get stuck in ACL ? once you got it ...gets obvious ...
# Aug 6th 2008, 18:00 nymacro francky06l: turns out it was the DBO
# Aug 6th 2008, 18:00 francky06l gwoo: if I can ask, one thing missing is a way to avoid the sutomic login ...
# Aug 6th 2008, 18:03 nymacro oh well. That is what I get for being stubborn
# Aug 6th 2008, 18:03 francky06l gwoo: what I mean, is to be able to to call Auth: login ..wihtout tweaking the beforeFilter..
# Aug 6th 2008, 18:03 gwoo francky06l: you set the authenticate
# Aug 6th 2008, 18:03 gwoo that was one of my suggestions
# Aug 6th 2008, 18:04 gwoo you could set the $this->Auth->authenticate = $this->AuthExt; and $this->Auth->authorize = $this->AuthExt;
# Aug 6th 2008, 18:04 gwoo francky06l: in that case you would not extend Auth component
# Aug 6th 2008, 18:05 gwoo but would have a separate object for Auth to plug into
# Aug 6th 2008, 18:06 francky06l gwoo: I though about this, but consider that having to replace Auth by AuthExt was not too much a problem wiht a good editor
# Aug 6th 2008, 18:08 gwoo also true
# Aug 6th 2008, 18:09 francky06l gwoo: anyway, the goal was to show than Auth can be used also for group.roles not inheriting parents .. and keep it quite "minimal" .. I have seen many "strange" solutions
# Aug 6th 2008, 18:10 gwoo yup
# Aug 6th 2008, 18:10 gwoo i think it does a nice job of that
# Aug 6th 2008, 18:12 francky06l gwoo: yes, and not only for this ... I use it for model.record ACL, but what is scaring users is the number of Aro/Acos you could possibly write .. Also, the indexation of the ACL tables should be in the core ...
# Aug 6th 2008, 18:13 TommyO yo prince_jammys
# Aug 6th 2008, 18:24 francky06l Bye bakers:-)
# Aug 6th 2008, 18:25 francky06l gwoo: you can post a comment :-)
# Aug 6th 2008, 18:32 nymacro hmm
# Aug 6th 2008, 18:33 nymacro using $actsAs = array('Acl'=>'controlled') should automagically set up CRUX for the model right?
# Aug 6th 2008, 18:33 nymacro *CRUD
# Aug 6th 2008, 18:39 thestaff hi all
# Aug 6th 2008, 18:39 thestaff what is the difference between default.thtml and default.ctp ?
# Aug 6th 2008, 18:39 renan_saddam priority
# Aug 6th 2008, 18:40 thestaff which one is first >
# Aug 6th 2008, 18:40 thestaff ?
# Aug 6th 2008, 18:41 renan_saddam custom ext, .ctp and .thtml
# Aug 6th 2008, 18:41 renan_saddam and ctp is new convetion over thtml
# Aug 6th 2008, 18:41 thestaff so this is in the 1.2
# Aug 6th 2008, 18:41 thestaff how about in the 1.1 ?
# Aug 6th 2008, 18:41 renan_saddam CakeTemPlate, is not?
# Aug 6th 2008, 18:44 renan_saddam thestaff: 1.1 doest not has .ctp, I guess
# Aug 6th 2008, 18:45 thestaff yeah i fugured out
# Aug 6th 2008, 18:46 TommyO 1.2 really only supports .thtml for backwards compat with 1.1
# Aug 6th 2008, 18:47 TommyO .ctp is the wave of the future ;)
# Aug 6th 2008, 18:48 polerin anyone know if there is a way to augment what a model contains() rather than replace it?
# Aug 6th 2008, 18:57 snizwickit for some reason when I do $form-input(...) on a field that is a TINYINT(1), it's showing a textbox instead of a checkbox
# Aug 6th 2008, 18:57 snizwickit what would be causing this behavior?
# Aug 6th 2008, 18:58 renan_saddam snizwickit: because default input type is text
# Aug 6th 2008, 18:58 renan_saddam and formhelper does not check column type