Re: how to embed swf animation in home.ctp of my cakephp project

2011-05-09 Thread varai
Hi cricket, I apologize for the big delayi was stuck with another big problem to be resolved. I am able to access main_ani.swf throught browser but not using cakephp. If I place main_ani.swf in a html file (not within cakephp), main_ani.swf is displaying fine in the browser. the

Re: isUnique validation on edit action of User model

2011-05-09 Thread mthabisi mlunjwa
I once had the same problem with the Isunique validation rule when editing my email field. I tried to create my own method which did seem to work. But along the way I quickly realized I was not doing things properly. My problem was in the database, I was using an old database and some records

[ASK] deleteAll() things

2011-05-09 Thread thom
Hello,, I'd like to delete many record inside many tables. I used $belongsTo in my Model. And in my Controller, I write this. ### $this-Visit-deleteAll(array( 'Visit.id' = $id, 'History.visit_id' = $id,

Re: [ASK] deleteAll() things

2011-05-09 Thread Jeremy Burns | Class Outfit
I haven't used deleteAll, but according to the guide (http://book.cakephp.org/view/1038/deleteAll) your conditions need to be in SQL format, not Cake array format. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 9 May 2011, at 10:52, thom wrote: Hello,,

Re: problem in auth component

2011-05-09 Thread Jens Dittrich
I have seen your video but I can't really read your code with the resolution provided, so I have to guess. Could it be that you do not hash the value of the password confirm field? Cake will do a salted hash on the password field automatically, but not on the field for password confirmation that

Re: deleteAll() things

2011-05-09 Thread andy_the ultimate baker
i think u r not giving the relation of associate model take this example to reffer $this-PatientClinicalDetail-PatientClinicalDetailChemotherapy- deleteAll(array('PatientClinicalDetailChemotherapy.patient_clinical_detail_id' = $this-data['PatientClinicalDetail']['id'])); here code indicates

Problem with bools and forms

2011-05-09 Thread Ernesto
Hello. when the bool field is FALSE Cake reads that value as (empty value). this is causing some troubles in my newest app, where due to customer's habits i'm using boolean selects (simple select boxes with Yes ans No options) instead of checkboxes. my select boxes' options are defined this

Re: Problem with bools and forms

2011-05-09 Thread Tilen Majerle
check this http://book.cakephp.org/view/1402/options-default http://book.cakephp.org/view/1402/options-defaultand this http://book.cakephp.org/view/1405/options-empty -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/5/9 Ernesto e.fanz...@gmail.com Hello. when the bool field is FALSE

Re: TDD in CakePHP

2011-05-09 Thread José Lorenzo
Yes, Cake 2.0 introduces a new ControllerTestCase class which provide very convenient methods for generating controller Mocks and a very much improved testAction() method to tes a complete dispatch cycle. On May 8, 1:52 pm, DerekGardiner derek.gardi...@gmail.com wrote: Are there going to be

Re: Problem with bools and forms

2011-05-09 Thread Ernesto
Hi Tilen, thanks for your effort. Sadly your solution doesn't work i ended up modifying dbo_source's function boolean from public function boolean($data, $quote = false) { if ($quote) { return !empty($data) ? '1' : '0'; } return !empty($data); } to

Re: Only show data which isn't in the other table. (complex).

2011-05-09 Thread ShadowCross
@euromark You're absolutely right. I should avoid doing anything cerebral after midnight when I'm exhausted but unable to sleep--the synapses didn't fire all the way. :-D -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions

Re: Use a mysql read-replica in a high traffic site?

2011-05-09 Thread Shaz
Didn't work for me - but some kind folks but together a lovely datasource driver that does exactly that - for any one looking for it, try: https://github.com/primeminister/cake-master-slave-setup On May 6, 3:30 pm, majna majna...@gmail.com wrote:

XML at both client and server side

2011-05-09 Thread Bhawna
Hello All! I am designing an open source web application that has to access and update a mysql database. It is a data intensive form based application. During entry phase it will bring exisitng set of records or defaults on the page and will save the same form data after user updates/enters data

Response in object array?

2011-05-09 Thread cake-learner
I read somewhere in cakephp 2.0 model - find will return the object instead of array? Did anyone create a wrapper class so that the find function return the array of object for 1.2.8 or 1.3? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new

Re: Response in object array?

2011-05-09 Thread Tilen Majerle
in 2.0 cakephp find method in model return array...not object -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/5/9 cake-learner sh.koiz...@gmail.com I read somewhere in cakephp 2.0 model - find will return the object instead of array? Did anyone create a wrapper class so that the find

Re: newbie question - how to I find this particular value so I can pass it on via a redirect

2011-05-09 Thread barricades
Hey, that worked perfectly, thanks for the help :) On May 8, 9:27 pm, dreamingmind dreamingmin...@gmail.com wrote: Barricades, I think your concern about the beforeSave/afterSave issues are red herrings. Since the first line of your code is:  if ($this-Campaign-save($this-data)) {  ... both

Form helper suppresses attributes of hidden fields?

2011-05-09 Thread dreamingmind
Any insight into this strange outcome? $type = 'hidden'; echo $form-input('ImageImgFileBatch', array( 'value' = 1, 'name' = 'data[Image][img_file][batch][]', 'id' = null, 'class' = 'batch', 'type' = $type )); produces this html: input type=hidden value=1

Re: Form helper suppresses attributes of hidden fields?

2011-05-09 Thread dreamingmind
And changing to the use of the Form helper's input() method isn't a clear fix: echo $form-hidden('ImageImgFileBatch', array( 'value' = 1, 'name' = 'data[Image][img_file][batch][]', 'id' = null, 'class' = 'batch' )); Still produces: input type=hidden value=1

change default controller

2011-05-09 Thread Miqdad Ali
how to change defualt controller to my logins controller - Miqdad Ali K +919995258790 http://www.miqdadalik.com -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions

Re: change default controller

2011-05-09 Thread Ryan Schmidt
On May 9, 2011, at 23:41, Miqdad Ali wrote: how to change defualt controller to my logins controller What are you talking about? What is a default controller? What are you trying to do? Have you read any of the tutorials or documentation on how to do a login page with CakePHP? -- Our

Re: change default controller

2011-05-09 Thread Tilen Majerle
default controller in a controller that is used when you access on a page like just www.domain.com...so Router::connect method will look something like that Router::connect('/', array('controller' = 'yourcontrollername', 'action' = 'youraction')); and login script and manual you have here

Re: change default controller

2011-05-09 Thread thatsgreat2345
Routes, you can re-route to anything you want, check the book under routes configuration http://book.cakephp.org/view/945/Routes-Configuration On May 9, 9:41 pm, Miqdad Ali mr.miqdad@gmail.com wrote: how to change defualt controller to my logins controller

Re: Form helper suppresses attributes of hidden fields?

2011-05-09 Thread Tilen Majerle
try with $this-Form-{$type}('name', array('attributes')); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/5/10 dreamingmind dreamingmin...@gmail.com And changing to the use of the Form helper's input() method isn't a clear fix: echo $form-hidden('ImageImgFileBatch', array(

Re: change default controller

2011-05-09 Thread Miqdad Ali
thanx 4 ur answers but which controller or page I have to use Router::connect method ?? - Miqdad Ali K +919995258790 http://www.miqdadalik.com On Mon, May 9, 2011 at 10:33 PM, thatsgreat2345 thatsgreat2...@gmail.comwrote: Routes,