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
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
*
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
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
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
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
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
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
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:
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
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
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
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
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:
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.
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
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
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
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
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
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
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
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
23 matches
Mail list logo