Re: using more than one model in a add_new view

2006-05-01 Thread huy
Carlos Mauricio Samour wrote: > How do I save more than one ModelB at te same time? > > Hi Carlos and everyone. I am totally enjoying baking with Cake and thought I could throw in my 2 cents and help out. And I hope to get an answer on some of the questions I have posted in the past :) So Car

Official Mysqli Support?

2006-05-01 Thread [EMAIL PROTECTED]
Hi When will there be official mysqli support in Cake? I tried rolling my own but I don't have much of a test harness to make sure it works properly. Are there any test harnesses for the dbos in Cake? Thanks. --~--~-~--~~~---~--~~ You received this message bec

Re: mysqli support?

2006-05-01 Thread [EMAIL PROTECTED]
Luigi wrote: > Are there any plans for official mysqli support? The pasted code here: > > http://cakephp.org/pastes/show/770e73e77e4d7a3d32c2f3de3f175512 > > doesn't work whenever I try to use Model->read(). > > Thanks. Try this one: http://cakephp.org/pastes/show/c21bbe15e42013daead93ec1f9f067

Re: Are you ready for the best Cake yet?

2006-05-01 Thread Mika
Wow - the new site looks really great! --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [

Re: Cake 1.0 errors

2006-05-01 Thread Larry E. Masters aka PhpNut
The only other files is app/webroot/css/cake.default.css-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @access  public*/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: Cake 1.0 errors

2006-05-01 Thread guice666
Sweet, that worked. Thanks! (ha, I see you fixed a variable name typo...) Where there any other changes in the app folder? Soul reason I kept the app folder separate was for quick updates and ability to use a centralized cake library. --~--~-~--~~~---~--~~ You re

Re: Cake 1.0 errors

2006-05-01 Thread Larry E. Masters aka PhpNut
Replace the app/config/inflections.php file with the new one.-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @access  public*/ On 5/1/06, guice666 <[EMAIL PROTECTED]> wrote: So, it would appear I got the 1.0 right upon release, but alas

Cake 1.0 errors

2006-05-01 Thread guice666
So, it would appear I got the 1.0 right upon release, but alas the update wasn't as transparent as one would have hoped. I went from .10.8.2152 to 1.0.0.2685. I have my app folder in a different location. I noticed changes to the wwwroot/index.php file, so I redid my modifications to the three c

Re: Are you ready for the best Cake yet?

2006-05-01 Thread guice666
Awesome! I just noticed the site changes myself. Looks like I got onto the right right after everything posted. the modify timestamps are no more than a couple hours old. 0.o I do have a suggestion for the new docs; it *needs* navigation links. It's a pain to read everything and then having to s

Re: The MySQL UTF8 Issue

2006-05-01 Thread up0
Thanks for the tip. I've finally gotten my Korean website working with it as well. --~--~-~--~~~---~--~~ 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

Are you ready for the best Cake yet?

2006-05-01 Thread Larry E. Masters aka PhpNut
We made it! 1.0 is here. The first officially stable version to be released by the Cake Software Foundation, includes all the features we had in .10 but with final bug fixes needed to make 1.0 fantastic. We hope you all enjoy 1.0 and don't be afraid to submit any bugs if you find them. We will do

Re: created_on/by & updated_on/by implementation?

2006-05-01 Thread [EMAIL PROTECTED]
And one more post to clarify, I assumed that ALL of your models would have those fields present ('created_on', 'created_by', 'updated_on', and 'updated_by'). If a subset of models only need to record that information, I'd override the afterSave() method in a base class that extends from AppModel,

Re: created_on/by & updated_on/by implementation?

2006-05-01 Thread [EMAIL PROTECTED]
btw, I use othAuth for my projects, and this solution should work the same for either rdAuth and othAuth. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-p

Re: created_on/by & updated_on/by implementation?

2006-05-01 Thread [EMAIL PROTECTED]
I am in need of doing this exact thing myself. Here are some suggestions after taking a quick look at the Model/Controller/Dispatch classes... I am in no way an expert in CakePHP internals, but being pretty comfortable with OO design I would suggest the following: Add a public variable to AppMode

Re: created and modified fields

2006-05-01 Thread Samuel DeVore
make sure they are of type datetime and also if you have any files in tmp/cache/models or persistant toss themOn 5/1/06, saavedrajj < [EMAIL PROTECTED]> wrote:sorry...:"in order to update the values of these fields without our intervention" --~--~-~--~~~---~--~~ You

Re: using more than one model in a add_new view

2006-05-01 Thread Carlos Mauricio Samour
Thanks You really have been of great help! On 5/1/06, Chris Cassell <[EMAIL PROTECTED]> wrote: > > > > $this->ModelA->ModelB->save (array ('ModelB' => $modelb2)); > > $this->ModelA->ModelB->save (array ('ModelB' => $modelb3)); > > ..This code first saves the data of $modelb2 and then replaces it

Re: using more than one model in a add_new view

2006-05-01 Thread Chris Cassell
> $this->ModelA->ModelB->save (array ('ModelB' => $modelb2)); > $this->ModelA->ModelB->save (array ('ModelB' => $modelb3)); > ..This code first saves the data of $modelb2 and then replaces it > with the data of $modelb3. How do I save $modelb3 to a new 'ModelB'? Add $this->ModelA->ModelB->create

Re: Scriptaculous Effects

2006-05-01 Thread Jon Bennett
> Was just wondering (after searching google for some time) if there was > an easy way to use the scriptaculous effects with the ajax helper? check out Graham Bird's tutorial http://grahambird.co.uk/cake/tutorials/ajax.php jb jon bennett t: +44 (0) 1225 341 039 w: http://www.jben.net/ iChat (A

Re: How to join w/o gmail?

2006-05-01 Thread Scott Sharkey
[EMAIL PROTECTED] wrote: > You could also edit your gmail settings once you get your account setup > to forward all messages to your other email account. Yes, I had done that. But, you cannot post messages to this list then, because "you are not a member of the list" when sending... -Scott -

Re: created and modified fields

2006-05-01 Thread saavedrajj
sorry...: "in order to update the values of these fields without our intervention" --~--~-~--~~~---~--~~ 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

created and modified fields

2006-05-01 Thread saavedrajj
Hi, according to the CakePHP manual, when we add these fields on our database tables, we add some extra cakePHP funcionality in order to update the values of these fields with our intervention, I added these fields in my tables but CakePHP only update correctly the "modified" field, the "created"

Re: using more than one model in a add_new view

2006-05-01 Thread Carlos Mauricio Samour
How do I save more than one ModelB at te same time? On 5/1/06, Chris Cassell <[EMAIL PROTECTED]> wrote: > > I had to solve this problem myself. Here's what I do--perhaps not the most > elegant, but it does work. (This code is off the top of my head and may need > some tweaking) > > In your view s

Re: Scriptaculous Effects

2006-05-01 Thread immure
Thanks Sam, I'll try that out! Mike --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EM

Re: Scriptaculous Effects

2006-05-01 Thread Samuel DeVore
Sorry hit send too fastlink("Final", "/job_materials/release/{$JobMaterial['JobMaterial']['id']}",array("update" => "form-target", "url" => "/bare/job_materials/release/{$JobMaterial['JobMaterial']['id']}",'complete'=>"new Effect.Appear('form-target');")); ?>here is an example from an old thingso

Re: Scriptaculous Effects

2006-05-01 Thread Samuel DeVore
it's an easy task On 5/1/06, immure <[EMAIL PROTECTED]> wrote: > > Hi bakers, > > Was just wondering (after searching google for some time) if there was > an easy way to use the scriptaculous effects with the ajax helper? > > I want one of my $ajax->links to fade out an old item, and load the >

Scriptaculous Effects

2006-05-01 Thread immure
Hi bakers, Was just wondering (after searching google for some time) if there was an easy way to use the scriptaculous effects with the ajax helper? I want one of my $ajax->links to fade out an old item, and load the new.. is this going to be an easy task, or am I in for the long haul? Cheers,

Re: Controller to handle missing_controller errors?

2006-05-01 Thread [EMAIL PROTECTED]
I thought on the Wiki there was a tutorial for an Error Component or something of the like. Search thru the Wiki. Also, checkout cakebaker.wordpress.com because it could be outlined in one of his posts there. But I would think that component is the best way to go. Making an Error component tha

Re: how to configure the $scaffold?

2006-05-01 Thread [EMAIL PROTECTED]
DO NOT MODIFY CORE FILES --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTE

Re: SSL, accepting payments, and automatically doing something

2006-05-01 Thread [EMAIL PROTECTED]
In my opinion, Paypal sucks for trying to integrate with and get results back from. Also, you don't need SSL in order to accept payments with Paypal. What you would need is their IPN system and make a CakePHP method to accept that information and relate to database. (Instant Payment Notification

Re: data from multiple 'model' definitions in one 'view'

2006-05-01 Thread [EMAIL PROTECTED]
Please state exactly what you mean to do and you can receive better help. Also, others in the future reading these posts can get better help as well. Right now it is hard to tell if you are asking about something like $uses variable. Or if you are talking about something like requestAction and

Re: custom queries

2006-05-01 Thread [EMAIL PROTECTED]
$this->Model->execute() can run completely custom queries. So, you could run "SELECT COUNT(*)" queries directly against the database and get the results. Just turn on debugging to see how specifically MySQL will return the results into array format in CakePHP. I used the following query. $

Re: Session variables won't save on windowsXP, apache 2.0 and PHP 4.4.0

2006-05-01 Thread [EMAIL PROTECTED]
Also, you might try changing it back but instead setting your security to medium. That stops the constant session id changing and only creates a new session for each new "user". --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Can cakephp do association save? Please help...

2006-05-01 Thread [EMAIL PROTECTED]
I have seen transaction support while mulling around the CakePHP code the other day. Do a codebase search for transaction and something should appear. Not sure if it was the lastest trunk or the latest ver2.0 trunk that I saw it in. Also, I doubt since you don't know about it (you seem up on th

Re: using more than one model in a add_new view

2006-05-01 Thread [EMAIL PROTECTED]
You don't have to do the $this->ModelA->ModelB->save(). You can simply put $this->ModelB->save(). Just make sure that in the model your method is in that your $uses variable has ModelB and ModelD included. But yes this is simliar to the solution that I used. And also similiar to the solution i

Re: How to join w/o gmail?

2006-05-01 Thread [EMAIL PROTECTED]
You could also edit your gmail settings once you get your account setup to forward all messages to your other email account. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, s

Re: created_on/by & updated_on/by implementation?

2006-05-01 Thread [EMAIL PROTECTED]
Put the fields created and modified into your tables. CakePHP looks for those fields and populates them automatically. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send e

Server Maintenance

2006-05-01 Thread gwoo
We are currently performing some maintenance on the servers. Please be patient, you may have problems accessing the CakePHP sites. Happy baking. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. T

Re: How to join w/o gmail?

2006-05-01 Thread MJ Ray
Scott asked: > So, is there a way for someone to subscribe w/o > using their gmail account? Try emailing [EMAIL PROTECTED] but beware! Googlegroups seem to have banned some top-level domains, will reject all messages even if you seem to successfully subscribe and it won't answer mail from bann

Re: using more than one model in a add_new view

2006-05-01 Thread Chris Cassell
I had to solve this problem myself. Here's what I do--perhaps not the most elegant, but it does work. (This code is off the top of my head and may need some tweaking) In your view set your inputs with their various modelname/fieldname name attributes: echo $html->input ('ModelA/date'); echo $html

created_on/by & updated_on/by implementation?

2006-05-01 Thread Jeroen Janssen
Hello, I'm currently looking into implementing created_on/by & updated_on/by in my CakePHP based webapplication and I am wondering what the best way to implement this would be. I need: * on creation (of a Model record?) : fill created_on/by * on save (of a Model record?) : fill updated_on/by I'

Re:

2006-05-01 Thread Mika
Also make sure that the curl extension is enabled in your php. --~--~-~--~~~---~--~~ 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 unsubscribe from thi

Re: using more than one model in a add_new view

2006-05-01 Thread Scott Sharkey
Carlos Mauricio Samour wrote: > In the examples I read in the wiki using the add action I only see one > model being use. What is the best way of using more the one model that > uses hasMany reletionships into a view? > In my add_new form I want to use 3 models. > When I press the Save button it o

How to join w/o gmail?

2006-05-01 Thread Scott Sharkey
Sorry to be somewhat off-topic, but how does one join this group with a non-gmail account? I don't use gmail on a day-to-day basis, and it's a royal pain to have to login to gmail, just to be able to post/reply to messages on this list. So, is there a way for someone to subscribe w/o using their

using more than one model in a add_new view

2006-05-01 Thread Carlos Mauricio Samour
In the examples I read in the wiki using the add action I only see one model being use. What is the best way of using more the one model that uses hasMany reletionships into a view? In my add_new form I want to use 3 models. When I press the Save button it only sends the data of the first model an

Re: Session variables won't save on windowsXP, apache 2.0 and PHP 4.4.0

2006-05-01 Thread welja
> Flash doesn't redirect if you have DEBUG set > 0. Thanks, didn't know this one! > PHP doesn't have rights to save the cookie. > > If you put this somewhere (like at the end of your index.php file): > > echo "session id is ".session_id(); > > and the id keeps changing, it's quite likely that