Re: performance / traffic / .. - one READ or few FIND calls?

2011-10-16 Thread cakii
alright, thank you guys ! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to

performance / traffic / .. - one READ or few FIND calls?

2011-10-12 Thread cakii
Hi everyone, i start think bout performance, traffic, aweseom code etc. i have a few *find *commands in my model, depending on the flow 3-6 'little' *finds*, sometimes *field *only. depending on the request flow, in the worst case all data /finds is needed - read equivalent do you think its

redirect and sessions not working

2011-10-11 Thread cakii
i, i have a few problems i can't solve .. im using cake 2.0.0-RC3 and PHP Version 5.3.1 cake default layout , debug 2 in my controller i only have one simple line: (the corresponding view is completly empty) $this-redirect('http://http://www.cakephpforum.net/'); but nothing happens, just a

Re: redirect and sessions not working

2011-10-11 Thread cakii
hmm, in my project just nothing happens, if i put my code in AppController::beforeFilter(), just an empty debug: *app\Controller\AppController.php* (line *14*) for a clean app its enough to use latest download in another directory eg htdocs/test2, right ?! in the meantime i had another

Re: redirect and sessions not working

2011-10-11 Thread cakii
$this-find('first', array('conditions' = array('id'=11), 'fields' = array('ip1', 'ip2'))); should work. http://book.cakephp.org/2.0/en/models/retrieving-your-data.html?highlight=find%20first#find-first or $this-id = 11; $this-read(array('ip1', 'ip2')); yes, both works You are