I need an availability calendar...

2011-04-28 Thread netusco
Had anyone implemented any in their websites? any suggestions? I need some users to set up their availabilities, then other users can book them if they are free.. thanks! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions

Re: 1 form 2 models - how to validate without savingAll?

2011-04-02 Thread netusco
Hi func0der, don't take it bad but I think you didn't read well my post, neither the title... I ask how to do it without savingAll, as I wanted to validate data in diferent steps and save at the end. Then as euromark pointed out in his blog the if statements check the first element and if it

Re: 1 form 2 models - how to validate without savingAll?

2011-04-01 Thread netusco
Hey great euromark! that was exactly what I needed, I didn't know php was saving time by just executing one of the statements if it was failling or maybe I knew it and it didn't ring the bell this time... so helpfull to have blogs like yours dedicated to fload the web of good examples really w

Re: 1 form 2 models - how to validate without savingAll?

2011-04-01 Thread netusco
hi ryandesign, thanks for pointing me to this wizard.. I had a look and I saw on the function _validateData and in the example that it's using a formula like this var $uses = array('User','Profile'); $this->User->set($this->data); $this->Profile->set($this-> data); if ($this->User->validates()

Re: 1 form 2 models - how to validate without savingAll?

2011-04-01 Thread netusco
hi ryandesign, thanks for pointing me to this wizard.. I had a look and I saw on the function _validateData and in the example that it's using a formula like this var $uses('User','Profile'); $this->User->set($this->data); $this->Profile->set($this->data); if ($this->User->validates() && $this-

1 form 2 models - how to validate without savingAll?

2011-03-31 Thread netusco
Hi all, I had been searching for the answer yet I don't find it! I'm having a 3 steps form so I'm not saving the data in each step, only validating it and passing it hidden in each step. In the form I use 2 different models. So if I try to validate like this: $this->User->set($this->data); $th

Re: Need help with paginate conditions

2011-03-09 Thread netusco
Hi, I see something... I use $this->paginate = $options; then this: $options['fields'] = array('Member.id'); looks fine to me this: $options['or'] = ... looks out of it's array conditions I would use $options['conditions']['or'] = ... maybe like this the fields would be recognized... then $reg

how to pass data from controller or view to javascript

2011-02-15 Thread netusco
in the book I had found the function set() from JsHelper but there's no examle there... googleing I found an example that doesn't work for me... it's like this: after loading Js Helper on the controller... $this->Js->set('someTest', 'amazing discovery'); alert('Set in the CakePHP view using Js

Re: using Containable plus joins for a complex query

2011-02-05 Thread netusco
I've tried with cakeDC search plugin and I didn't manage. I've searched again long time to find examples but there's no examples that show how to inner join tables to search inside with an OR LIKE condition. Any help apreciated! -- Our newest site for the community: CakePHP Video Tutorials ht

using Containable plus joins for a complex query

2011-02-04 Thread netusco
I've been searching a long while to find a way to handle the query I need. I still need to try the searchable pluggin but I already managed to find a way that somehow works for what I need. But it doesn't give exactly the rights results and I'm not shure is the right way to do it... any help a

Re: CakePHP 1.3.7 released - Comments 2 cents

2011-01-25 Thread netusco
Yes I agree with these last 3 answers. I was imagining comments like in php.net web that show a lot of different ways to use the code in action so you don't need to go around searching for all those bits of code here and there on different blogs... In this case if comments are needed much better

Re: CakePHP 1.3.7 released

2011-01-24 Thread netusco
regarding the comments I feel they should be more visible, definetly, but... I would do 2 thinks to prevent misleading info: 1- post them as a thread to this group with the text of the page above so it allows quick answer from this group and... 2- have a rating system like thumbs up or down to

Re: to Test or not to Test

2011-01-09 Thread netusco
nfidence in your app, the fear of > refactoring will be gone and you actually have something to show your > boss/client that it works the way they specified. > > Testing isn't a waste of time, *NOT* testing your application is a > waste of time. > > Nick > > On Jan 8, 8:

Re: to Test or not to Test

2011-01-08 Thread netusco
;t that big of a deal. > as soon as you have more time you can work on the coverage task again. > > but testing itself is a must! > > On 7 Jan., 15:52, Joshua Muheim wrote: > > > Dear netusco > > > I know exactly what you mean - most CakePHP tutorials about testing

to Test or not to Test

2011-01-07 Thread netusco
I've been recently wondering wether to use SimpleTest or not... so I thought to ask what does people do. As I'm learning programing always by myself I don't know how others work... but it seems to me that using cake test for normal little applications is a pain in the ass as for the amount of codin

Re: Using BindNode() function

2011-01-01 Thread netusco
check this: http://groups.google.com/group/cake-php/browse_thread/thread/1a758f5511091d9d/2066d1837ca05bad?lnk=gst&q=bindnode#2066d1837ca05bad On Dec 31 2010, 5:35 am, John Maxim wrote: > Hi, > I added in bind node function as shown > here:http://book.cakephp.org/view/1547/Acts-As-a-Requester >

Re: is it possible to include the failed input string in the validation message?

2010-12-31 Thread netusco
> As for the second point about handling this in the controller. It's > the manual itself that says this should be handled with FormHelper. > From this page here:http://book.cakephp.org/view/1143/Data-Validation > , it says: "For more information about how to handle the displaying of > validation e

Re: Security Risks on gif image upload?

2010-12-03 Thread netusco
On Dec 3, 8:48 am, "Ma'moon" wrote: > You can easily remove the threat by using an image conversion, i use > `convert` to convert my images to a standard image type, the conversion > process changes the physical content of the uploaded file and destroys all > the threat that it might contain whi

Re: Optimize ACL database

2010-11-25 Thread netusco
I guess you forgot to paste the direct link to your article: http://articles.classoutfit.com/2010/02/cakephp-basic-database-table-tuning-tips/comment-page-1/#comment-435 I just read it and it helped me a lot! thanks, ernest On Nov 24, 3:51 pm, Jeremy Burns | Class Outfit wrote: > This articl

Re: Acl and bindNode

2010-11-23 Thread netusco
I just had the same problem, it really looks like a bug on cakephp... It was working when ids of groups where the same as ids of aros, but not working when different. I agree with parallel 32 but I would prefer not to use his approach as it would break in any upgrading... Is there anyone who cou