Re: Autocomplete search on users table

2009-02-28 Thread Mike
I took a look at it following the URL you provided. It's exactly what I'm supposed to build As I'm not yet pretty familiar with AJAX/JSON Query in Cake, I guess using the helper provided in Cake will not help too much. Of course, the cooler, more hip options are to postback after observing a

Re: Problem in inserting data

2009-02-28 Thread AnkitLimkar
Finally I got the solution...I had created objects in my related .ctp file with wrong names instead of table field names...Hope this would help any neophyte facing same problem...Thanks guys for your help...Now I think using Cakephp would be more enjoyable with such an active community :) On

Re: Problem in inserting data

2009-02-28 Thread AnkitLimkar
Finally I got the solution...I had created objects in my related .ctp file with wrong names instead of table field names...Hope this would help any neophyte facing same problem...Thanks guys for your help...Now I think using Cakephp would be more enjoyable with such an active community :) On

Big Problem with 1:1 Association

2009-02-28 Thread GetIT
First of all I want to say that I´m not english. So please forgive me for my bad english and please use easy to understand english in your answers. Thank you!! I write a programm for doctors. I´ve got a table called 'clients' which looks like id:int(11):primary key salutation_id:tinyint(3)

Re: Big Problem with 1:1 Association

2009-02-28 Thread Gonzalo Servat
On Sat, Feb 28, 2009 at 10:49 AM, GetIT david.bruen...@t-online.de wrote: [..snip..] But if I save the data only the thing belonging to the client are saved. The data from the progress is not saved. Why? I may be leading you onto the wrong path, but as far as I know you need to call save()

Re: Big Problem with 1:1 Association

2009-02-28 Thread mscdex
On Feb 28, 7:49 am, GetIT david.bruen...@t-online.de wrote: But if I save the data only the thing belonging to the client are saved. The data from the progress is not saved. Why? Are you using 'save' or 'saveAll' to save your data? You should be using 'saveAll'. Also, I'm assuming you have

Re: Big Problem with 1:1 Association

2009-02-28 Thread Gonzalo Servat
On Sat, Feb 28, 2009 at 11:06 AM, Gonzalo Servat gser...@gmail.com wrote: On Sat, Feb 28, 2009 at 10:49 AM, GetIT david.bruen...@t-online.dewrote: [..snip..] But if I save the data only the thing belonging to the client are saved. The data from the progress is not saved. Why? I may be

Re: Big Problem with 1:1 Association

2009-02-28 Thread mscdex
If it still isn't working after those suggestions, try additionally changing your Progress form inputs to a format like so: $form-input ('Progress.0.fieldName'); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Big Problem with 1:1 Association

2009-02-28 Thread GetIT
Yoe´ve been right. That works. Thank you very much. On 28 Feb., 14:06, Gonzalo Servat gser...@gmail.com wrote: On Sat, Feb 28, 2009 at 10:49 AM, GetIT david.bruen...@t-online.de wrote: [..snip..] But if I save the data only the thing belonging to the client are saved. The data from the

how to arrange Checkbox in one Row

2009-02-28 Thread Maulik
hi to all, here my question is how can i arrange my checkbox in one row. thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To

Complex model relationship problems

2009-02-28 Thread Dan Soendergaard
Hi bakers! In my application I've got the concept of Spaces which are basically directories. I also have User and Document models. Space - HABTM - User (a user may have access to several spaces) Space - hasMany - Document Document - HABTM - User (a document can have several owners) The HABTM

how to set current time for local computer

2009-02-28 Thread vikas
Hello all.. My problem is my site is running on a server resides on different country.. I used to show the current time on a home page.. but It shows me server time..which is nearly 12 hours behind my country.. I want to show user a time of a computer he or she uses.. P.S. : I used date()

Re: unload app_controller to force speed :)

2009-02-28 Thread AgBorkowski
ok problem resolved thnx for help On 27 Lut, 17:04, AgBorkowski andrzejborkow...@gmail.com wrote: generaly i do it somethong like that require_once '../xhr_controller.php'; class SuggestsController extends XhrController {         public $components  = array('Xhr');     public $helpers =

empty query and 55ms - debug

2009-02-28 Thread andrzejborkow...@gmail.com
Nr Query Error AffectedNum. rows Took (ms) 1 DESCRIBE `locations`5 5 3 2 DESCRIBE `countries`4 4 4 3 DESCRIBE `cities` 4 4 3 4 DESCRIBE `states` 3 3 3

Re: how to set current time for local computer

2009-02-28 Thread Blackymetal
I had the same issue a week a go, my server is located on GMT -6 and my country is on GMT -5 The function takes the GMT from Server within the timestamp /* @param integer $time server timestamp (time()) or whatever timestamp * @param integer $userGMT this is the GMT you want convert to *

Re: Submit several forms with a button

2009-02-28 Thread keogh
This actually might work, thanks to all for your advices, they give direction =]. Regards from Mexico On 27 feb, 06:12, Stinkbug justink...@gmail.com wrote: So let's think about this.  Is your client just worried about how the form looks (3 buttons and 1submitall button)?  Technically, if

Re: Cake core is throwing unlink warnings

2009-02-28 Thread RyOnLife
Lovely... I went to try this out and the warnings have vanished as mysteriously as they first appeared. I've got this thread bookmarked and will update again as they come back. jitka (poLK) wrote: I've never seen this issue before, and it is hard to reproduce it in test case if it

Re: how to set current time for local computer

2009-02-28 Thread mscdex
Another option would be to use Javascript's time functions. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this

Re: Autocomplete search on users table

2009-02-28 Thread brian
This is what I'm using: http://www.pengoworks.com/workshop/jquery/autocomplete.htm $(document).ready(function() { $('#foo').autocomplete( '/my_controller/autocomplete', { minChars: 2, lineSeparator: '^',

Re: how to arrange Checkbox in one Row

2009-02-28 Thread Dhana
You might have to use CSS for that. If there is a div around each checkbox, just make sure you assign a float to them in css lke this: In case you just want to target the checkboxes div, wrap a div around all your checboxes. Give it a class or an id. Then in css, #divname input{ float:

Re: Complex model relationship problems

2009-02-28 Thread mscdex
In get_structure(), have you tried changing: $this-SpacesUser-find() to $this-find() ? Then maybe also move the Space.* entries from 'contain' to the 'fields' array. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

habtm - need some clarification

2009-02-28 Thread Dhana
I have a groups, users and tasks models. Groups has a HABTM to users. Users has a HABTM to groups. Users has many tasks. From the tasks model, I am trying to find out which group the user belongs to. Once I have this information, I plan to put into a session variable so I only need to query

Re: empty query and 55ms - debug

2009-02-28 Thread AgBorkowski
errata i means Nr 5 empty query ? On 28 Lut, 17:31, andrzejborkow...@gmail.com andrzejborkow...@gmail.com wrote: Nr      Query   Error   Affected        Num. rows       Took (ms) 1       DESCRIBE `locations`            5       5       3 2       DESCRIBE `countries`            4       4      

Re: Complex model relationship problems

2009-02-28 Thread Dan Soendergaard
That doesn't help much, I've tried it and it gives errors like this: Model Space is not associated with model name [CORE/cake/libs/ model/behaviors/containable.php, line 340] for alle fields that I specified for Space.* in the contain options. Also, an invalid query is now being created which

What do you develop in (ide, text editor, etc.)?

2009-02-28 Thread adam
I'm using Eclipse with PDT, but Dreamweaver for making layouts. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this

Re: What do you develop in (ide, text editor, etc.)?

2009-02-28 Thread cds
TextMate. On Feb 28, 1:14 pm, adam abennett...@sbcglobal.net wrote: I'm using Eclipse with PDT, but Dreamweaver for making layouts. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this

Re: Shell: problems with Models which have associations

2009-02-28 Thread Romiz
The problem is solved! In what it was? I had a model having the name Query - It is all explains =) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: Tree misbehaviour

2009-02-28 Thread Mauricio Morales
Hi folks, I've got the same problem.. It's really strange because all of my code was working in the last Beta version. This is my DB table: CREATE TABLE intracategories ( id SERIAL PRIMARY KEY, parent_id INT, lft INT, rght INT, name VARCHAR(255), tags VARCHAR(255),

Re: What do you develop in (ide, text editor, etc.)?

2009-02-28 Thread Mauricio Morales
I just downloaded Netbeans for PHP 6.5 and it's great. I've been using Eclipse for a long but I think you can enjoy Netbeans (open source and works in linux, mac, windows). http://www.netbeans.org/features/php/ --~--~-~--~~~---~--~~ You received this message

Re: What do you develop in (ide, text editor, etc.)?

2009-02-28 Thread mscdex
Notepad :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: Very slow response times with CakePHP

2009-02-28 Thread Abhimanyu Grover
Alright, in that case, for adding some additional speed, I've just increased cache time when Debug 1 inside Configure::__loadBooststrap () Just increased it to 20 minutes and I think problem is resolved now. Much better speed now :) Thanks On Feb 27, 7:24 pm, Matt Curry m...@mcurry.net wrote:

Re: Complex model relationship problems

2009-02-28 Thread mscdex
On Feb 28, 2:07 pm, Dan Soendergaard dan1...@gmail.com wrote: That doesn't help much, I've tried it and it gives errors like this: Model Space is not associated with model name [CORE/cake/libs/ model/behaviors/containable.php, line 340] Strange error. Is this what you tried:

Re: habtm - need some clarification

2009-02-28 Thread mscdex
On Feb 28, 1:30 pm, Dhana sldh...@gmail.com wrote: But, how do I make this query efficiently? One solution would be to use the Containable behavior with the User model. Then you can find what groups the user belongs to by doing a find and including a 'contain' option which is an array

Re: habtm - need some clarification

2009-02-28 Thread Marcelo Andrade
On Sat, Feb 28, 2009 at 3:30 PM, Dhana sldh...@gmail.com wrote: I have a groups, users and tasks models. Groups has a HABTM to users. Users has a HABTM to groups. Users has many tasks. From the tasks model, I am trying to find out which group the user belongs to. Once I have this

Re: What do you develop in (ide, text editor, etc.)?

2009-02-28 Thread Gonzalo Servat
On Sat, Feb 28, 2009 at 8:06 PM, Mauricio Morales maomora...@gmail.comwrote: I just downloaded Netbeans for PHP 6.5 and it's great. I've been using Eclipse for a long but I think you can enjoy Netbeans (open source and works in linux, mac, windows). http://www.netbeans.org/features/php/

Re: Complex model relationship problems

2009-02-28 Thread Dan Soendergaard
No, the function is in my model so calling $this-Space-find(); results in Undefined property: Space::$Space. The error isn't that strange, it happens because I removed the Space from the fields so that 'Space.description' became 'description. Cake thinks that 'name' is a model, which of course

Re: What do you develop in (ide, text editor, etc.)?

2009-02-28 Thread Miles J
Dreamweaver --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Security component breaks my ajax requests

2009-02-28 Thread Miles J
When I add the Security component, all my ajax requests fail. They never finish or return data. I am using jQuery and not the built in ajax. What do I have to do to allow this to work? The manual for Security is a bit vague. --~--~-~--~~~---~--~~ You received this

Re: Security component breaks my ajax requests

2009-02-28 Thread Adam Royle
Looking at the Security component source, you need to override the validatePost value in SecurityComponent. The following is untested code, but I think it should work. function beforeFilter() { if ($this-action == 'your_action') { $this-Security-validatePost = false; }

Re: Complex model relationship problems

2009-02-28 Thread mscdex
On Feb 28, 6:10 pm, Dan Soendergaard dan1...@gmail.com wrote: No, the function is in my model so calling $this-Space-find(); results in Undefined property:  Space::$Space. Sorry, I had forgotten it was a model function and not in your controller. It should be $this-find() in the code I posted

Re: What do you develop in (ide, text editor, etc.)?

2009-02-28 Thread Marcelo Andrade
On Sat, Feb 28, 2009 at 5:14 PM, adam abennett...@sbcglobal.net wrote: I'm using Eclipse with PDT, but Dreamweaver for making layouts. Geany. ...and Vim sometimes. Atenciosamente. -- MARCELO DE F. ANDRADE (aka eleKtron) Belem, PA, Amazonia, Brazil Linux User #221105 [...@pará ~]# links

customizing error messages from form helper

2009-02-28 Thread horatio
two questions-- the default class returned from error() within the html helper is error-message. how do i override this in my controller? more importantly, how can i inject some html content inside the error div after a failed form validation? right now its: div class=error-messageerror

Re: Cake core is throwing unlink warnings

2009-02-28 Thread jitka (poLK)
On Feb 28, 6:05 pm, RyOnLife ryan.mckil...@gmail.com wrote: Lovely... I went to try this out and the warnings have vanished as mysteriously as they first appeared. I've got this thread bookmarked and will update again as they come back. Ok. If anyone will see this issue again, join us in

Re: how to set current time for local computer

2009-02-28 Thread jitka (poLK)
TimeHelper methods can use $userOffset. Another option (not proper/smart in your case, because it would affect time/date php functions globally, therefore also created/modified stored in db) would be date_default_timezone_set() for php = 5.2 or date.timezone in php.ini

Re: What do you develop in (ide, text editor, etc.)?

2009-02-28 Thread jitka (poLK)
I switched from Eclipse 3.4 and PDT2 to Netbeans 6.5 this week as well. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

ACL and Auth with additional checking

2009-02-28 Thread Aidan Lister
Hello, I need to do some additional row level ACL access control for two of my models. My system has the following groups: admins, editors, authors and users. I'm restricting access to my controller actions using the Auth component, via $this-Auth-authorize = 'actions'. At the moment, my

Re: What do you develop in (ide, text editor, etc.)?

2009-02-28 Thread Jorge Horacio Cué Cantú
I switched to Eclipse from Netbeans 6.5 because Netbeans does not handle well accents in Fedora 10. If I could solve this only issue, I would back to Netbeans immediately. 2009/2/28 jitka (poLK) slunii...@gmail.com I switched from Eclipse 3.4 and PDT2 to Netbeans 6.5 this week as well.

Re: how to arrange Checkbox in one Row

2009-02-28 Thread Everton Yoshitani
I used to set label=false and add the label with after='text'. Just another way :) 2009/3/1 Dhana sldh...@gmail.com: You might have to use CSS for that.  If there is a div around each checkbox,  just make sure you assign a float to them in css lke this: In case you just want to target the