Log message #114909

# At Username Text
# Aug 10th 2008, 07:10 paramS working now , thanks :)
# Aug 10th 2008, 07:10 paramS even though it was under MusicAlbumController, i had to mention that again if i used $uses variable
# Aug 10th 2008, 07:10 kaotisch Iqdice: yes i have it in one controller
# Aug 10th 2008, 07:09 paramS kaotisch << just noticed that when i declare var $uses = ('MusicSong'); ( in the MusicAlbum ) ... the error was coming on $this->MusicAlbum->findAllByAlbumId($id) ...... that error was taken care of when i used ... var $uses = ('MusicAlbum','MusicSong');
# Aug 10th 2008, 07:08 lqdice__ did you include the request handling component?
# Aug 10th 2008, 07:08 lqdice__ hmmm
# Aug 10th 2008, 07:07 kaotisch no I just checked again after you asked, its not used in any controller
# Aug 10th 2008, 07:06 lqdice__ cause security can cause those problems
# Aug 10th 2008, 07:06 lqdice__ you dont have var $components = array('Security') anywhere?
# Aug 10th 2008, 07:06 kaotisch Well I dont call any Security functions by hand then
# Aug 10th 2008, 07:05 lqdice__ nah auth doesnt use security
# Aug 10th 2008, 07:05 kalileo paramS: Assuming that you have set up an associaltion between the MusicAlbum model and the MusicSong Model you do not need the $uses, simply say $this->MusicAlbum->MusicSong->findAllByAlbumId($id)
# Aug 10th 2008, 07:05 kaotisch Iqdice: i'm using the Auth comp. that (I think) uses the Security comp
# Aug 10th 2008, 07:05 paramS yeah it has field ( album_id )
# Aug 10th 2008, 07:05 paramS "Call to undefined method stdClass::findAllByAlbumId()" .... i am sure the problem is between chair and keyboard :p
# Aug 10th 2008, 07:04 kaotisch paramS: if the MusicSong table has a Albumid field of course
# Aug 10th 2008, 07:04 lqdice__ kaotisch: are you using the security component?
# Aug 10th 2008, 07:04 kaotisch paramS: should work
# Aug 10th 2008, 07:03 paramS kaotisch << and after that i would be able to use it like this {{ $songs = $this->MusicSong->findAllByAlbumId($albumId); }}
# Aug 10th 2008, 07:03 kaotisch Iqdice, I'm still investigating, under Firefox its kind of a random problem, under IE the session is lost after every ajax call
# Aug 10th 2008, 07:02 lqdice__ kaotisch: is this a problem where the ajax is not getting the session properly? you can pass the session manually.. but if it works 'sometimes' and not others than thats a bit strange and i would think its the session timing out
# Aug 10th 2008, 07:00 kaotisch no problem :)
# Aug 10th 2008, 07:00 paramS lemme try that , thank you very much :)
# Aug 10th 2008, 07:00 paramS thanks , you just posted that at the same time
# Aug 10th 2008, 06:59 kaotisch ;)
# Aug 10th 2008, 06:59 paramS oh okie :)
# Aug 10th 2008, 06:59 paramS like ... var $uses = array('MusicSong');
# Aug 10th 2008, 06:59 kaotisch like var $uses = array('MusicSong');
# Aug 10th 2008, 06:59 kaotisch paramS make sure you have the MusicSong Controller set in the "uses" array in MusicAlbumController
# Aug 10th 2008, 06:57 paramS hi all, i am little stuck while coding my first cakephp application... I have two controllers ( MusicSong and MusicAlbum ) and from my MusicAlbumController i want to call $this->MusicSong->findAllByAlbumId($id) .. but i am not able to do that, any idea on how to achieve this ?
# Aug 10th 2008, 06:56 kaotisch from the google group i assume it is an ajax issue, but has anyone solved it?
# Aug 10th 2008, 06:56 kaotisch i have the session timeout in core long enough, session is set to php (also happens with it set to 'cake')
# Aug 10th 2008, 06:56 kaotisch I'm using the basic Auth comp, and thanks to the help of some of you, it works fine :) Now I'm loading some controller actions in ajax windows, and every now and then it assumes I'm not logged in and shows the login view in the ajax window. If I close it and open it again, it shows the normal view and accepts that i'm logged in. Is that a known problem, and can I solve it?
# Aug 10th 2008, 06:55 kaotisch hi Iqdice, sure i will
# Aug 10th 2008, 06:54 lqdice__ kaotisch: can you repeat your problem, i just got here
# Aug 10th 2008, 06:53 kaotisch from the google group i assume it is an ajax issue, but has anyone solved it?
# Aug 10th 2008, 06:51 kaotisch i have the session timeout in core long enough, session is set to php (also happens with it set to 'cake')
# Aug 10th 2008, 06:49 kaotisch Hello! I'm using the basic Auth comp, and thanks to the help of some of you, it works fine :) Now I'm loading some controller actions in ajax windows, and every now and then it assumes I'm not logged in and shows the login view in the ajax window. If I close it and open it again, it shows the normal view and accepts that i'm logged in. Is that a known problem, and can I solve it?
# Aug 10th 2008, 06:48 darki how can i sort date in a combobox? the data is sorted DESC but i need ASC
# Aug 10th 2008, 06:48 cl0s_ or render an element from a controller instead of an entire view?
# Aug 10th 2008, 06:47 cl0s_ is there a way to call a helper from within a controller??