Re: saving hasAndBelongsToMany without form?

2006-05-20 Thread Dave
To put it more simply: Can someone provide a code snippet with a call to Post-save() whose data is properly structured to save both the Post and one or more Tags with it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Controllers Linked to model names?

2006-05-20 Thread [EMAIL PROTECTED]
Here's my problem... Is there a way to not have the name of controllers explicitly linked to models? For instance I have a model, called Post, Now for whatever reasons, I need to have the following controllers that have access to the Post model: * post_controller.php * article_controller.php *

Re: Controllers Linked to model names?

2006-05-20 Thread [EMAIL PROTECTED]
Also, shouldn't the name of view directories be the same as controller names, instead of model names? X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.11.88.14 with SMTP id l14mr26657cwb; Sat, 20 May 2006 05:24:41 -0700 (PDT) X-Google-Token: -nhX_gwYokuHyNxyx7OrRRiOPijn

Re: pretty URL problem

2006-05-20 Thread henthoca
We had this same sort of problem just a moment ago, and we solved it by adding the questionmark (?) after the index.php like so: http://localhost/index.php?/hellworld/index/ Maybe that might help, along with others advice. --~--~-~--~~~---~--~~ You received

Re: Multi-Step Form

2006-05-20 Thread Langdon Stevenson
Hi John Sounds like you are well ahead of me :-) I keep expecting to hit some limitation with the PRG pattern each time I do something new (like adding the Cancel functionality), but it continues to surprise me with its flexibility. Regards, Langdon John Zimmerman [gmail] wrote: I am

Re: Can't Fetch data while move codes from 0.10.8 to 1.0

2006-05-20 Thread bigdog
More info? Did you set debug to 2 to show your queries? Is desc working? X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.11.88.14 with SMTP id l14mr27981cwb; Sat, 20 May 2006 08:41:55 -0700 (PDT) X-Google-Token: rQGUvwwRg7iht8TYF8Lu2B9OJ1uk Received: from 206.206.83.36 by

Re: automation module

2006-05-20 Thread bigdog
http://groups.google.com/group/cake-php/browse_thread/thread/ff3ad3c9e1e40aab/?hl=en# --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com

Re: Controllers Linked to model names?

2006-05-20 Thread Daniel Hofstetter
The name of view directories are the same as the controller names, e.g. if your controller is called posts_controller.php, the views directory is views/posts. You can use in a controller as many models as you want with var $uses = array('Model1', 'Model2', 'Model3'); -- Daniel Hofstetter

Re: saving hasAndBelongsToMany without form?

2006-05-20 Thread Jon Bennett
To put it more simply: Can someone provide a code snippet with a call to Post-save() whose data is properly structured to save both the Post and one or more Tags with it? for each tag you need: $this-params['data']['Tag']['Tag'][n] = $tag_id; then when you call:

automation module

2006-05-20 Thread Langdon Stevenson
Hi I need to implement a module in my Cake application that runs at regular intervals (say, every half hour) to do house keeping in the application like sending out email reminders to users. I expect that cron is the right way to trigger this module, but am wondering if anyone has any

Can't Fetch data while move codes from 0.10.8 to 1.0

2006-05-20 Thread [EMAIL PROTECTED]
I am moving my project from cake 0.10.8 to version 1.0. I found that my code runs well in old version, but in 1.0, the query can't fetch data in the database. I did check the database configuration and the sql statment in Other database client (MySQL Broswer) runs well too. When runs in 1.0, the

Re: saving hasAndBelongsToMany without form?

2006-05-20 Thread Dave
Aha! I think I actually had it right before, but Cake appears to care about the order of the top-level array. So if it goes ('Post', 'Tag') it works but if it goes ('Tag', 'Post) it doesn't. It would be neat if a future version of Cake could take this a step further and create associated records

Re: automation module

2006-05-20 Thread RosSoft
take a look at this http://rossoft.wordpress.com/2006/03/27/poor-mans-cron-component/ X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.11.53.63 with SMTP id b63mr87014cwa; Sat, 20 May 2006 10:16:35 -0700 (PDT) X-Google-Token: 9T6t_AwAAACzgC0zwmMQFXcOHkvh-0W3 Received: from

Re: Ajax Sortable Tutorial?

2006-05-20 Thread Jon Bennett
My getGroupOrder() javascript function serializes my sortable list and returns the values as a string separated by 's for tokenization in my contoller class updateitemorder . updateitemorder is able to access the string with the following statement:

Re: Multi-Step Form

2006-05-20 Thread Langdon Stevenson
Hi John What you are proposing sounds great. My solution is not so flexible, and is contained entirely in the host controller. Are you going to use the Post-Redirect-Get approach? I have found this to work really well to eliminate back button and refresh issues that come along with forms.

Re: When (Document Root != /app/webroot) Cake works anyway?

2006-05-20 Thread Vixiom
Don't know if you've figured this out yet as the post is a couple of weeks old, but I thought I'd post anyways as it could be helpful to others. This is how I have cake running on Plesk 7.5 (I'm assuming you know how to run unix commands and can SSH into your server as a superuser, all lines

Re: unset($this-params['data']) Not Working???

2006-05-20 Thread John Zimmerman [gmail]
A work around would be to create a function in your app controller calledsetSystemMessage($message);this function would set a session variable with the message. Then create another function called ...getSystemMessage()This function will return the contents of the session variable and then unset

Cake PHP in PHP 5

2006-05-20 Thread [EMAIL PROTECTED]
Is Cake PHP available in version PHP5.0? or it is currently only in PHP4.X ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To

Re: Can't Fetch data while move codes from 0.10.8 to 1.0

2006-05-20 Thread [EMAIL PROTECTED]
Yes, I did set debug to 2. And will display a table about the query status in the bottom of the page. The Query is ok and had no error but affect_row is 0. In the old version cake can fetch data and affect_row is 24 in the same table and database. What did cake core change about the database

Re: Cake PHP in PHP 5

2006-05-20 Thread Samuel DeVore
CakePHP is designed to work in both 4 and 5 On 5/20/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is Cake PHP available in version PHP5.0? or it is currently only in PHP4.X ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: automation module

2006-05-20 Thread Langdon Stevenson
Thank you both for your replies. Next time I will search before asking. Regards, Langdon RosSoft wrote: take a look at this http://rossoft.wordpress.com/2006/03/27/poor-mans-cron-component/ --~--~-~--~~~---~--~~ You received this message because you are

Outputting Images

2006-05-20 Thread tom
Hi, Quick question: What is the best way to make something like a PHP sparklines or graphing library jive with CakePHP? Should it have a view controller? Or be a helper? Something else? X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.11.53.63 with SMTP id b63mr93759cwa; Sat, 20

Is there a way to specify what fields should be returned in a recursive find?

2006-05-20 Thread Sebastian Macias
Let say I have an artist who has many albums, and the albums have many songs. I want to be able to get all the the artist song titles. Find allowes me to specify what fields should be returned, but it seems to work only for the artists table fields no for the album and songs fields. Thanks in