Log message #1109957

# At Username Text
# Oct 22nd 2009, 10:30 alan|macbook it's been 3 days since i'm googling around and experimenting with no luck and i would really appreicate some help. I have a tree model and i want to do something like this : http://crepitus.com/misc/ext/tree.html How the heck do i do that with cakePHP???
# Oct 22nd 2009, 10:29 nicoleG i would think cake would know to use it for that particular model in all crud operations
# Oct 22nd 2009, 10:29 Horror nicoleG: in the mysql query it is using model.id ='' - I want it to compare it with model.subId instaed
# Oct 22nd 2009, 10:28 alan|macbook hey all
# Oct 22nd 2009, 10:28 Horror nicoleG: how do i go about telling edit() to use subId once i declare that primaryKey?
# Oct 22nd 2009, 10:28 t0nic i *hate* that!!! ('fraid it will pop up again...)
# Oct 22nd 2009, 10:27 t0nic BlackIce: gd it, turned debug on and off and it went away
# Oct 22nd 2009, 10:27 nicoleG )
# Oct 22nd 2009, 10:26 Ceeram markstory: any ideas what could be causing the wrong data format on the test
# Oct 22nd 2009, 10:26 Horror nicoleG: i'll give that a try. Thanks!
# Oct 22nd 2009, 10:26 nicoleG i think that will work
# Oct 22nd 2009, 10:26 Horror t0nic: Yeah. I'm talking about the controller edit(0 function
# Oct 22nd 2009, 10:26 nicoleG var $primaryKey = 'subId'
# Oct 22nd 2009, 10:26 nicoleG horror, you can add the primary key to the model
# Oct 22nd 2009, 10:25 nicoleG is it possible to paginate $this->Model->query() results and if so, how?
# Oct 22nd 2009, 10:25 t0nic Horror: I don't quite know how but it would be done in the controller, not edit.ctp
# Oct 22nd 2009, 10:24 t0nic thanks, I'll try
# Oct 22nd 2009, 10:24 t0nic hmm... I turned them off!!
# Oct 22nd 2009, 10:24 BlackIce t0nic: with or without debug settings?
# Oct 22nd 2009, 10:23 Horror hey fellas - in the default edit.ctp generated by bake console. how do I modify the default query so takes table.subId as the primary key instead of table.id?
# Oct 22nd 2009, 10:21 t0nic I guess I'll just have to tell myself about patience
# Oct 22nd 2009, 10:21 t0nic not even you can help me :(
# Oct 22nd 2009, 10:20 t0nic ok cakebot
# Oct 22nd 2009, 10:20 t0nic ~tell t0nic about patience
# Oct 22nd 2009, 10:18 t0nic I added a couple fields to the users table but username and password are unchanged
# Oct 22nd 2009, 10:17 t0nic anything else one would recommend checking?
# Oct 22nd 2009, 10:15 t0nic my login stopped working.... I'm in auth setup, looking at where I'm getting the err. and $this->login isn't working (i'm getting loginError) but the hashed password and the username are set correctly (echoed them) so I can't figure out what's failing
# Oct 22nd 2009, 10:07 ionas I think its a good idea, esp. if you have tons of views, find and replace is nothing to rely on if it can be done with little effort/speed inside the framework - but well - would you oppose if someone external wrote a patch for this?
# Oct 22nd 2009, 10:06 ionas see I do not even completely understand that (which aliases anyway, cake does use the singelton name as the variable name by convention, doesn't it?)
# Oct 22nd 2009, 10:05 markstory override constructClasses() and move the aliases around.
# Oct 22nd 2009, 10:05 ionas $this->ModelAlias/Component-Clashing
# Oct 22nd 2009, 10:04 jcrawford nice blank white page :( http://book.cakephp.org/search/tagErrorMsg
# Oct 22nd 2009, 10:04 markstory they do.
# Oct 22nd 2009, 10:04 ionas think its better to give the user control over the namespace
# Oct 22nd 2009, 10:04 ionas it has yes
# Oct 22nd 2009, 10:04 markstory s/$this->Auth/$this->AppAuth/
# Oct 22nd 2009, 10:04 markstory does your edtior not have search + replace?
# Oct 22nd 2009, 10:03 ionas that does not make sense, yes
# Oct 22nd 2009, 10:03 markstory 'Email' => array('as' => 'Auth');
# Oct 22nd 2009, 10:03 ionas Indirect?
# Oct 22nd 2009, 10:03 markstory It makes things more indirect.