Log message #114920

# At Username Text
# Aug 10th 2008, 07:18 kaotisch 8640 and sec lvl high so it should be (24*60*60)
# Aug 10th 2008, 07:17 lqdice__ whats your session timeout set to ?
# Aug 10th 2008, 07:17 kaotisch Iqdice, Its really strange... i open an javascript window with an i frame that loads a view to an action (for example /hotels/list). Everything fine. I close the window and open it again, still it loads fine. A third time it sends me to the login page. The fourth time i close and open again, it loads the page as wanted!
# Aug 10th 2008, 07:15 lqdice__ kaotisch: well if the ajax call doesnt pass the auth then its not gonna allow it to go to page
# Aug 10th 2008, 07:15 paramS i am newbie here , i declared associations in my model but didnt knew that i can use it the way you just mentioned ... now i have modified my code to $this->MusicAlbum->MusicSong->findAllbyAlbumId($id) ... and its working :)
# Aug 10th 2008, 07:15 kjell is there any tutorial on how to finalize/prepare CakePHP apps for production/release? Especially with notes about caching practices with 1.2.
# Aug 10th 2008, 07:15 kalileo paramS: if you say var $uses = ('MusicAlbum'); you tell the controller to use that Model _only_. Despite that you can solve that by listing all the models you wanna use there, better do what we all say here and learn to understand and use Associations
# Aug 10th 2008, 07:13 kaotisch Iqdice, the auth comp. should be fine...its a "everything is forbidden" configuration with the Auth comp. in app_controller.
# Aug 10th 2008, 07:12 lqdice__ paramS: you dont have to do uses for everything you want to use if your associations are set up correctly and you are splitting the code up like you are supposed to
# Aug 10th 2008, 07:12 kaotisch paramS: take a look at the chapter about model association in the manual. In many cases its way more elegant to receive your data
# Aug 10th 2008, 07:10 lqdice__ i had a problem when using swfupload where the session was not passed through the ajax call .. but if you are using standard cakephp ajax calls it should pass it.. you can force to pass the session by passing $session->id() w/ your ajax call then doing in your beforefilter: $this->Session->id($passedId); $this->Session->Start() ... but make sure your Auth isnt just set up wrong and not allowing you to get to that action, try to access
# 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 ?