too many fields in record to display

2007-12-29 Thread jvandal

Hi,
I have a person record tha has many fields and when I bake the tables
I have too many fields showing at one time. How can I eliminate
displaying all fields and display only a selected few?

Thanks
Jvandal
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Causes of Model::Save() Fail

2007-12-29 Thread ProFire

I think I agree with your point too!

I'm beginning to feel that I'm going to be a better baker from today.
Thanks for your 2 cents and on how you guys would debug your
programmes.

On Dec 29, 6:33 pm, AD7six <[EMAIL PROTECTED]> wrote:
> On Dec 28, 5:01 pm, ProFire <[EMAIL PROTECTED]> wrote:
>
> > Yup!!!
> > I believe that's a very good way to validate existing fields and
> > output errors for it.
>
> > What about the non-existing fields?
>
> > Example:
> > Password: abc
> > Verify Password: abc
>
> > Personally, I would feel that a notice like "account/verify_password
> > was not inserted because field don't exist in table `account`" would
> > be very very useful.
>
> I think that would very quickly get annoying. you can add validation
> rules for virtual fields, and if the cause is a misspelling, when you
> debug you'd spot that ;). I don't see the benefit in adding logic
> which would always be executed to cater for a development only
> problem.
>
> > Anybody have a way to output such messages automatically?
>
> If you want that, use beforeValidate to add an error message for
> everything in $this->data that isn't what you are expecting.
>
> hth,
>
> AD
> PS. Emphasis on the "debug".
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: should I use the nightly builds?

2007-12-29 Thread aranworld

Good to hear.

Last night I updated to the nightly build from the October release and
found that my application continued working without much trouble at
all.


On Dec 29, 7:08 am, snowdog <[EMAIL PROTECTED]> wrote:
> I use nightly builds for couple projects, It needs more attention to
> updates and change logs, but gives you also more and more features...
> For last 3 months I didn't have any serious problems.

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Baking more validations (vaking or validaking?)

2007-12-29 Thread osuprg

I think we can do quite a lot to automate validation code.  It seems
natural to me to store basic validation requirements right along side
the
data definition.  For instance, we could place a list of validation
requirements
in a comment at the end of field definition line in a mysql script
file like so:

CREATE TABLE `users` (
...
`username` VARCHAR( 40 ) NOT NULL ,  # VALID_UNIQUE & alphaNumeric &
minLength(6)
`password` VARCHAR( 40 ) NOT NULL ,  # alphaNumeric & minLength(8)
...

Then some script could read the file and generate the "var $validate"
code
for the model.  This is useful in at least a couple ways:

(1) There are a lot of implied validations in the sql field
definitions,
e.g., maximum length, not null, datetime vs. int, etc.

One could also look for keywords in field names for clues,
e.g., *email*, *phone*, *url*, etc.

We may as well add our other validations here and keep them in one
place that's
easy to update.  This alleviates the need to remember to go modify
the model code
when you decide to change a field definition.

(2) It's also handy to have the whole set of validations on one line.
If you decide to
move a field to another table, you just cut and paste the one
line, and all of
the validations come along for the ride.

As a proof of concept, I wrote a script which translates the example
users.sql
file below into the validation code shown further down.  Some
validation rules
come from the SQL keywords and the rest are picked up from the
comments.
I jump between cakephp 1.1 and 1.2 a bit, but you get the idea.

Anyone know whether something like this exists?

Thanks,
-Adam

Input  ==
>>: cat users.sql
DROP TABLE IF EXISTS `users`;

CREATE TABLE `users` (
`id` INT( 10 ) NOT NULL AUTO_INCREMENT , # VALID_UNIQUE
`username` VARCHAR( 40 ) NOT NULL ,  # VALID_UNIQUE & alphaNumeric
`password` VARCHAR( 40 ) NOT NULL ,  # minLength(8)
`email` VARCHAR( 255 ) NOT NULL ,# VALID_UNIQUE & VALID_EMAIL
`birthday` DATETIME NOT NULL ,
PRIMARY KEY  (`id`),
UNIQUE KEY `username` (`username`),
UNIQUE KEY `email` (`email`)
) TYPE = MYISAM ;

Output ==
>>: validake users.sql
var $validate = array(
  'id' => array(
'VALID_NUMBER' => array('rule' => 'VALID_NUMBER',
  'message' => 'id must be VALID_NUMBER'),
'maxlength' => array('rule' => array('maxlength','10'),
  'message' => 'id must be no greater than 10 characters long'),
'VALID_NOT_NULL' => array('rule' => 'VALID_NOT_NULL',
  'message' => 'id must be VALID_NOT_NULL'),
'VALID_UNIQUE' => array('rule' => 'VALID_UNIQUE',
  'message' => 'email must be VALID_UNIQUE')
  ),
  'username' => array(
'maxlength' => array('rule' => array('maxlength','40'),
  'message' => 'username must be no greater than 40 characters
long'),
'VALID_NOT_NULL' => array('rule' => 'VALID_NOT_NULL',
  'message' => 'username must be VALID_NOT_NULL'),
'VALID_UNIQUE' => array('rule' => 'VALID_UNIQUE',
  'message' => 'username must be VALID_UNIQUE'),
'alphaNumeric' => array('rule' => 'alphaNumeric',
  'message' => 'username must be alphaNumeric')
  ),
  'password' => array(
'maxlength' => array('rule' => array('maxlength','40'),
  'message' => 'password must be no greater than 40 characters
long'),
'VALID_NOT_NULL' => array('rule' => 'VALID_NOT_NULL',
  'message' => 'password must be VALID_NOT_NULL'),
'minLength(8)' => array('rule' => array('minLength','8'),
  'message' => 'password must be minLength(8)')
  ),
  'email' => array(
'maxlength' => array('rule' => array('maxlength','255'),
  'message' => 'email must be no greater than 255 characters
long'),
'VALID_NOT_NULL' => array('rule' => 'VALID_NOT_NULL',
  'message' => 'email must be VALID_NOT_NULL'),
'VALID_UNIQUE' => array('rule' => 'VALID_UNIQUE',
  'message' => 'email must be VALID_UNIQUE'),
'VALID_EMAIL' => array('rule' => 'VALID_EMAIL',
  'message' => 'email must be VALID_EMAIL')
  ),
  'birthday' => array(
'VALID_DATE' => array('rule' => 'VALID_DATE',
  'message' => 'birthday must be VALID_DATE'),
'VALID_NOT_NULL' => array('rule' => 'VALID_NOT_NULL',
  'message' => 'birthday must be VALID_NOT_NULL')
  )
);

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: 1.2, AuthComponent: Call to a member function isAuthorized() on a non-object

2007-12-29 Thread webjay

You probably have $this->Auth->isAuthorized() somewhere, like I had.
Try with $this->isAuthorized() which was my solution to the same
problem.

Earlier in 1.2 it worked with $this->Auth->isAuthorized()

/Jacob
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: include everywhere | app_controller.php

2007-12-29 Thread Pablo Viojo
Try searching this group[1]. I did it for you and found [2] [3] among
others.

Hope that helps.


-- 
Pablo Viojo
[EMAIL PROTECTED]
http://pviojo.net




[1]
http://groups.google.com/group/cake-php/search?hl=en&group=cake-php&q=app_controller+model
[2]
http://groups.google.com/group/cake-php/browse_thread/thread/33ca0358e2854908/68783b79936b4e4e?hl=en&lnk=gst&q=app_controller+model#68783b79936b4e4e
[3]
http://groups.google.com/group/cake-php/browse_thread/thread/e299ac5f67ef50cb/0bfb60fdc7895753?hl=en&lnk=gst&q=app_controller+model#0bfb60fdc7895753

On Dec 28, 2007 4:48 PM, carSign <[EMAIL PROTECTED]> wrote:

>
> I am getting close.
> My beforeFilter function in the app controller is being called on each
> page (just like I want) but it seems to have trouble running something
> in a model.
> Anyone have any ideas on what I am doing wrong.
>
> app_controller.php
>
>  class AppController extends Controller {
>var $helpers = array('Html', 'Form', 'Javascript');
>
>function beforeFilter()
>{
>$this->AppModel->carSign();
>return true;
>}
> }
> ?>
>
>
>
> app_model.php
>  class AppModel extends Model{
>
>function carSign()
>{
>//make an entry into the database
>echo 'wonkey';
>}
> }
> ?>
>
> Here is the error
>
> Notice: Undefined property: PagesController::$AppModel in /home/y/
> share/htdocs/cake/app/app_controller.php on line 7 [/index.php] Fatal
> error: Call to a member function carSign() on a non-object in /home/y/
> share/htdocs/cake/app/app_controller.php on line 7 [/index.php]
>
>
>
> On Dec 21, 8:51am, daphonz <[EMAIL PROTECTED]> wrote:
> > Sure. You can use the controller callback functions in app_controller,
> > listed here:http://tempdocs.cakephp.org/#TOC52711
> >
> > So try doing something like:
> >
> > function beforeFilter()
> > {
> >
> > /* Super controller logic that accesses a function in app_model or
> > something */
> > return true;
> >
> > }
> >
> > If you need to access a model every time you run a controller action,
> > you may want to add:
> >
> > var $uses('NecessaryModel');
> >
> > to your app_controller as well.
> >
> > -Casey
> >
> > On Dec 21, 10:33 am, carSign <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > Hi -
> >
> > > So I am trying to include a small snippet of code in each page of my
> > > site. Is there a way to do this without modifying each controller?
> >
> > > For example - I want to log visitors to my site. Each page visited
> > > would have some information put into the database.
> >
> > > URL
> > > User info
> > > tiestamp
> > > browser info
> >
> > > Can I do this using the app_controller? Can it be done without the
> > > need to modify all of my existing controllers?
> > > If I include it in the app_controller do I name that action 'index'?
> > > do I then create a app_model?- Hide quoted text -
> >
> > - Show quoted text -
> >
>

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Blog Tutorial

2007-12-29 Thread John David Anderson (_psychic_)



On Dec 29, 2007, at 6:51 AM, gobblez wrote:
> Perhaps the official tutorial should be un-deprecated?  Maybe add
> comments where people can chime in, php.net or Bakery style?

It's in the works. I'm moving manual content to the new system already.

> Would it
> really take more than 20 minutes to update it or move it to the Bakery
> (so people can add updates to the same page without the author lifting
> a finger) and change the link?

Most likely, especially given the fact that it hasn't been done yet. I  
should mention that someone has taken the assignment and is currently  
working on upgrading the blog tute for 1.2, however.

> The repeated "n00bie blog tutorial
> questions" that bug you guys so much (enough to warrant internet tough
> guy sarcasm) could/should have been solved/prevented a long time ago.
> People shouldn't have to be familiar with some guy's third party blog
> for a workaround or solution.

I totally agree.

> After so long and it being brought up
> all the time, you'd think somebody on the dev or doc team would
> notice.  Now go ahead and reply to me with some sort of lecture where
> you talk about open source (as if people having trouble with the
> beginners tutorial are really capable of submitting a patch or making
> sense of "trac")

I think I will. You're mentioning it like that doesn't make it any  
less valid.

If you are noticing critical problems that are easy to solve, that  
aren't being solved, I suppose that could mean at least one of two  
possible situations:

1. The Cake team is inept.
2. The Cake team is spread thin.

Choose whichever suits you best.

Beginners can feel free to submit solutions (especially documentation  
solutions) in whatever format they prefer. There is nothing stopping  
new people from submitting bits of documentation, or at least logging  
tickets. Right now we've only got a baker's dozen worth of tickets  
related to documentation. We're really focusing on doing better at  
that, so please feel free to jump in and help out there by submitting  
tickets. The very best solution is to supply some sample documentation  
to fix things, but even a note on what you think is missing is better  
than nothing. Most definitely better than a rant on the mailing list.

> and shift responsibilities away instead of
> considering that fixing the tutorial is a simple solution that makes
> sense and would benefit the project and is a no brainer that it should
> be done. kthxbai.

Interesting to note that this tirade seems to try to shift that  
responsibility away from yourself as well. Given the "no-brainer"  
benefit of your proposal, one wonders why you haven't volunteered to  
complete it. The fact that you haven't yet may be the answer to why it  
isn't yet done. It's not a matter of "brains" it's a matter of  
priorities and available bandwidth.

No, I can take responsibility for the state of the documentation. I  
don't expect the community to do it all, but I do expect those who  
complain to at least attempt to help out. You should also be aware of  
the fact that 1.2 is not yet even beta software. I think what we've  
got up at tempdocs.cakephp.org is not unreasonable, since technically  
you're using a developer version that was never meant to be as  
documented as it is anyway.

Next time, please consider contributing in a positive manner.

Thanks,

John

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: File Handler and mime types question

2007-12-29 Thread rafael bonifaz
Just for the records:

//For odt
  'application/vnd.oasis.opendocument.text',
  'application/x-vnd.oasis.opendocument.text
',
//for ods

'application/vnd.oasis.opendocument.spreadsheet',
   'application/x-
vnd.oasis.opendocument.spreadsheet',
//for odp

'application/vnd.oasis.opendocument.presentation',
   'application/x-
vnd.oasis.opendocument.presentation'

On Dec 29, 2007 8:38 AM, rafael bonifaz <[EMAIL PROTECTED]> wrote:

>
>
> On Dec 28, 2007 4:18 PM, Ron Chaplin <[EMAIL PROTECTED]> wrote:
>
> >  On Fri, 2007-12-28 at 12:56 -0800, [EMAIL PROTECTED] wrote:
> >
> > Hi all,
> > I am using the file handler component made by Chris Partridge and itworks 
> > really good. The problem I have is that I want to uploadopendocument files 
> > to the server, but I does not recognize them asvaild files. I know that the 
> > solution is to modify the $allowedMimearray and add the string for the open 
> > document mime type.
> > I don't know what is the mime type for open document files. Forexample I 
> > want to upload an text document to the server with the odtextention. So in 
> > my linux shell y execute the following command:$ file -ib 
> > file.odtapplication/x-zip
> > So I put that mimetype on the array, but the file is not uploaded.There is 
> > no erroror message, but I know that the problem is with themime type 
> > because I can upload the other of mime types supported bydefault.
> > Hope someone can help me on this.
> > Greetings,
> > Rafael
> >
> >  I googled for odt mime types and came up with this
> > http://filext.com/file-extension/ODT
> >
> >   HTH,
> >
> Thanks a lot for your help Ronald. I whould googled first.
>
> Greetings,
>
> Rafael
>
>

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Observe Form wiith Justkez not working

2007-12-29 Thread mcphisto

Ok. I did it.
I had some poblems just with the query in my controller. The problem
was that I had a query for pagination and i had to adapt it to live
search. Now it works.

Thanks to all.

On 29 Dic, 13:53, francky06l <[EMAIL PROTECTED]> wrote:
> Well seems this is pure configuration, settings error ... Put some
> tracing and check if your action is reached at least, be patient ..
> Good luck
>
> On Dec 29, 1:43 pm, mcphisto <[EMAIL PROTECTED]> wrote:
>
> > well, now it works. For the users of this tutorial you have to cange
> > lines in index.thtml
>
> > 'loading' => "Element.hide('view');Element.show('loading')",
> > 'complete' => "Element.hide('loading');Effect.Appear('view')"
>
> > in
>
> > 'loading' => "Element.hide('loading');Element.show('view')",
> > 'complete' => "Element.hide('loading');Effect.Appear('view')".
>
> > The problem now is that when I upload all on my web space everything
> > works. But when i go to index.thtml i get a 500 internal error!!! I
> > hate this.
> > Any idea again?
>
> > On 29 Dic, 13:27, francky06l <[EMAIL PROTECTED]> wrote:
>
> > > Well,  in your call you have to set a 'div' to update (ie : 'update'
> > > => 'div') ... Maybe verify the div exists, and the syntax in your
> > > call ...(misspelling etc..)
> > > I do not know this tutorial, I assume it's using the "regular" ajax
> > > call, unless there is something very specific I am missing.
>
> > > On Dec 29, 12:27 pm, mcphisto <[EMAIL PROTECTED]> wrote:
>
> > > > hi,
> > > > I used firebug and in effect I've a correct query reported. So the
> > > > query works. The problem is that it doesn't print the results.
> > > > Any idea?
>
> > > > On 29 Dic, 11:51, francky06l <[EMAIL PROTECTED]> wrote:
>
> > > > > Do you have something like Firebug (Firefox) or equivalent for other
> > > > > browser, to check your ajax request and see the answer of your call ?
>
> > > > > On Dec 29, 11:14 am, mcphisto <[EMAIL PROTECTED]> wrote:
>
> > > > > > Hi all,
> > > > > > I followed this tuotrialhttp://www.justkez.com/cakephp-livesearch/,
> > > > > > but I've a problem.
> > > > > > Everything seems to be ok, but it doesn't work at all.
> > > > > > I mean when I write something in the form, I get the animation of 
> > > > > > the
> > > > > > gif (spinner.gif) but i don't get any result even if I'm sure that 
> > > > > > the
> > > > > > table contains result for that search. I can't find any help about
> > > > > > this. Did anyone of you tried this tutorial?
> > > > > > Thanks a lot.

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Observe Form wiith Justkez not working

2007-12-29 Thread mcphisto

On my controller I've to add this line $this->set('data',$this-
>Contact->findAll()); when i take it away, i don't get the 500 error.
Is it wrong? Can I write it in another way?

On 29 Dic, 13:53, francky06l <[EMAIL PROTECTED]> wrote:
> Well seems this is pure configuration, settings error ... Put some
> tracing and check if your action is reached at least, be patient ..
> Good luck
>
> On Dec 29, 1:43 pm, mcphisto <[EMAIL PROTECTED]> wrote:
>
> > well, now it works. For the users of this tutorial you have to cange
> > lines in index.thtml
>
> > 'loading' => "Element.hide('view');Element.show('loading')",
> > 'complete' => "Element.hide('loading');Effect.Appear('view')"
>
> > in
>
> > 'loading' => "Element.hide('loading');Element.show('view')",
> > 'complete' => "Element.hide('loading');Effect.Appear('view')".
>
> > The problem now is that when I upload all on my web space everything
> > works. But when i go to index.thtml i get a 500 internal error!!! I
> > hate this.
> > Any idea again?
>
> > On 29 Dic, 13:27, francky06l <[EMAIL PROTECTED]> wrote:
>
> > > Well,  in your call you have to set a 'div' to update (ie : 'update'
> > > => 'div') ... Maybe verify the div exists, and the syntax in your
> > > call ...(misspelling etc..)
> > > I do not know this tutorial, I assume it's using the "regular" ajax
> > > call, unless there is something very specific I am missing.
>
> > > On Dec 29, 12:27 pm, mcphisto <[EMAIL PROTECTED]> wrote:
>
> > > > hi,
> > > > I used firebug and in effect I've a correct query reported. So the
> > > > query works. The problem is that it doesn't print the results.
> > > > Any idea?
>
> > > > On 29 Dic, 11:51, francky06l <[EMAIL PROTECTED]> wrote:
>
> > > > > Do you have something like Firebug (Firefox) or equivalent for other
> > > > > browser, to check your ajax request and see the answer of your call ?
>
> > > > > On Dec 29, 11:14 am, mcphisto <[EMAIL PROTECTED]> wrote:
>
> > > > > > Hi all,
> > > > > > I followed this tuotrialhttp://www.justkez.com/cakephp-livesearch/,
> > > > > > but I've a problem.
> > > > > > Everything seems to be ok, but it doesn't work at all.
> > > > > > I mean when I write something in the form, I get the animation of 
> > > > > > the
> > > > > > gif (spinner.gif) but i don't get any result even if I'm sure that 
> > > > > > the
> > > > > > table contains result for that search. I can't find any help about
> > > > > > this. Did anyone of you tried this tutorial?
> > > > > > Thanks a lot.

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: should I use the nightly builds?

2007-12-29 Thread snowdog

I use nightly builds for couple projects, It needs more attention to
updates and change logs, but gives you also more and more features...
For last 3 months I didn't have any serious problems.
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: File Handler and mime types question

2007-12-29 Thread rafael bonifaz
On Dec 28, 2007 4:18 PM, Ron Chaplin <[EMAIL PROTECTED]> wrote:

>  On Fri, 2007-12-28 at 12:56 -0800, [EMAIL PROTECTED] wrote:
>
> Hi all,
> I am using the file handler component made by Chris Partridge and itworks 
> really good. The problem I have is that I want to uploadopendocument files to 
> the server, but I does not recognize them asvaild files. I know that the 
> solution is to modify the $allowedMimearray and add the string for the open 
> document mime type.
> I don't know what is the mime type for open document files. Forexample I want 
> to upload an text document to the server with the odtextention. So in my 
> linux shell y execute the following command:$ file -ib 
> file.odtapplication/x-zip
> So I put that mimetype on the array, but the file is not uploaded.There is no 
> erroror message, but I know that the problem is with themime type because I 
> can upload the other of mime types supported bydefault.
> Hope someone can help me on this.
> Greetings,
> Rafael
>
>  I googled for odt mime types and came up with this
> http://filext.com/file-extension/ODT
>
>   HTH,
>
Thanks a lot for your help Ronald. I whould googled first.

Greetings,

Rafael

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How can I create a report with master and detail?

2007-12-29 Thread AD7six



On Dec 29, 3:37 pm, jvandal <[EMAIL PROTECTED]> wrote:
> Hello,
> I  am just learning cakePHP.I have a file(table) of people and a file
> of events. I have a person_id in events to tie the people record to
> the  event. I want  to select the person and then display the events
> associated to the person. I have this running in  regular php but
> don't know how to do it in cakephp. Is there a good example or
> tutorial to  illustrate this?
>
> I have created models and controllers, but the thtml is confusing!
>
> Thanks for any help

Set up your associations and use bake/scaffolding?

It doesn't get much easier than that.

hth,

AD
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How can I create a report with master and detail?

2007-12-29 Thread jvandal

Hello,
I  am just learning cakePHP.I have a file(table) of people and a file
of events. I have a person_id in events to tie the people record to
the  event. I want  to select the person and then display the events
associated to the person. I have this running in  regular php but
don't know how to do it in cakephp. Is there a good example or
tutorial to  illustrate this?

I have created models and controllers, but the thtml is confusing!

Thanks for any help

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Blog Tutorial

2007-12-29 Thread gobblez

Perhaps the official tutorial should be un-deprecated?  Maybe add
comments where people can chime in, php.net or Bakery style?  Would it
really take more than 20 minutes to update it or move it to the Bakery
(so people can add updates to the same page without the author lifting
a finger) and change the link?  The repeated "n00bie blog tutorial
questions" that bug you guys so much (enough to warrant internet tough
guy sarcasm) could/should have been solved/prevented a long time ago.
People shouldn't have to be familiar with some guy's third party blog
for a workaround or solution.  After so long and it being brought up
all the time, you'd think somebody on the dev or doc team would
notice.  Now go ahead and reply to me with some sort of lecture where
you talk about open source (as if people having trouble with the
beginners tutorial are really capable of submitting a patch or making
sense of "trac") and shift responsibilities away instead of
considering that fixing the tutorial is a simple solution that makes
sense and would benefit the project and is a no brainer that it should
be done. kthxbai.

On Dec 29, 7:37 am, francky06l <[EMAIL PROTECTED]> wrote:
> A quick search here (also the warning you get running the actual code)
> would have told you that form helper is replacing html helper in 1.2.
> Use $form->input, $form->submit .. etc...
>
> On Dec 29, 12:15 pm, cookiejar_3 <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I'm having a problem with the blog tutorial, I followed the steps on
> > how to create a blog. The viewing of the title and the message was
> > good but adding a blog does not work well. when I run 
> > thehttp://www/posts/add
> > It gives me a message:
>
> > Notice: Method input() is deprecated in HtmlHelper: see
> > FormHelper::input or FormHelper::text in C:\apache\htdocs\cake\cake
> > \libs\view\helpers\html.php on line 652
>
> > Notice: Method tagErrorMsg() is deprecated in HtmlHelper: see
> > FormHelper::error in C:\apache\htdocs\cake\cake\libs\view\helpers
> > \html.php on line 718
>
> > Body:
> > Notice: Method textarea() is deprecated in HtmlHelper: see
> > FormHelper::input or FormHelper::textarea in C:\apache\htdocs\cake\cake
> > \libs\view\helpers\html.php on line 576
>
> > Warning (512): Method HtmlHelper::submit does not exist [CORE\cake\libs
> > \view\helper.php, line 148]
>
> > I'm using a Cake 1.2.0 stable version and my posts_controller.php is:
>
> >  > class PostsController extends AppController{
> > var $name = 'Posts';
> > function index(){
> >$this->set('posts', $this->Post->findAll());
> > }
>
> > function view($id = null){
> > $this->Post->id = $id;
> > $this->set('post', $this->Post->read());
> > }
>
> > function add(){
> >if (!empty($this->data)){
> >   if ($this->Post->save($this->data)){
> > $this->flash('Your post has been saved.','/posts');
> >   }
> >}
> > }}
>
> > ?>
>
> > My add.thtml is:
>
> > Add Post
> > 
> > 
> > Title:
> > input('Post/title', array('size' => '40'))?>
> > tagErrorMsg('Post/title', 'Title is
> > required.') ?>
> > 
> > 
> > Body:
> > textarea('Post/body', array('rows'=>'10')) ?
>
> > tagErrorMsg('Post/body', 'Body is
> > required.') ?>
> > 
> > 
> > submit('Save') ?>
> > 
> > 
>
> > Somebody please help me..
> > Thanks in advance..
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Blog Tutorial

2007-12-29 Thread Sharan

Form related functions have been moved to form helper in cake1.2
instead of html helper.

Read this article to make the blog tutorial work for you in cake 1.2 :
http://ahsanity.wordpress.com/2007/08/31/making-the-blog-tutorial-run-on-cakephp-12/

Regards,
Sharan.

On Dec 29, 4:15 pm, cookiejar_3 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm having a problem with the blog tutorial, I followed the steps on
> how to create a blog. The viewing of the title and the message was
> good but adding a blog does not work well. when I run thehttp://www/posts/add
> It gives me a message:
>
> Notice: Method input() is deprecated in HtmlHelper: see
> FormHelper::input or FormHelper::text in C:\apache\htdocs\cake\cake
> \libs\view\helpers\html.php on line 652
>
> Notice: Method tagErrorMsg() is deprecated in HtmlHelper: see
> FormHelper::error in C:\apache\htdocs\cake\cake\libs\view\helpers
> \html.php on line 718
>
> Body:
> Notice: Method textarea() is deprecated in HtmlHelper: see
> FormHelper::input or FormHelper::textarea in C:\apache\htdocs\cake\cake
> \libs\view\helpers\html.php on line 576
>
> Warning (512): Method HtmlHelper::submit does not exist [CORE\cake\libs
> \view\helper.php, line 148]
>
> I'm using a Cake 1.2.0 stable version and my posts_controller.php is:
>
>  class PostsController extends AppController{
> var $name = 'Posts';
> function index(){
>$this->set('posts', $this->Post->findAll());
> }
>
> function view($id = null){
> $this->Post->id = $id;
> $this->set('post', $this->Post->read());
> }
>
> function add(){
>if (!empty($this->data)){
>   if ($this->Post->save($this->data)){
> $this->flash('Your post has been saved.','/posts');
>   }
>}
> }}
>
> ?>
>
> My add.thtml is:
>
> Add Post
> 
> 
> Title:
> input('Post/title', array('size' => '40'))?>
> tagErrorMsg('Post/title', 'Title is
> required.') ?>
> 
> 
> Body:
> textarea('Post/body', array('rows'=>'10')) ?
>
> tagErrorMsg('Post/body', 'Body is
> required.') ?>
> 
> 
> submit('Save') ?>
> 
> 
>
> Somebody please help me..
> Thanks in advance..
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Observe Form wiith Justkez not working

2007-12-29 Thread francky06l

Well seems this is pure configuration, settings error ... Put some
tracing and check if your action is reached at least, be patient ..
Good luck

On Dec 29, 1:43 pm, mcphisto <[EMAIL PROTECTED]> wrote:
> well, now it works. For the users of this tutorial you have to cange
> lines in index.thtml
>
> 'loading' => "Element.hide('view');Element.show('loading')",
> 'complete' => "Element.hide('loading');Effect.Appear('view')"
>
> in
>
> 'loading' => "Element.hide('loading');Element.show('view')",
> 'complete' => "Element.hide('loading');Effect.Appear('view')".
>
> The problem now is that when I upload all on my web space everything
> works. But when i go to index.thtml i get a 500 internal error!!! I
> hate this.
> Any idea again?
>
> On 29 Dic, 13:27, francky06l <[EMAIL PROTECTED]> wrote:
>
> > Well,  in your call you have to set a 'div' to update (ie : 'update'
> > => 'div') ... Maybe verify the div exists, and the syntax in your
> > call ...(misspelling etc..)
> > I do not know this tutorial, I assume it's using the "regular" ajax
> > call, unless there is something very specific I am missing.
>
> > On Dec 29, 12:27 pm, mcphisto <[EMAIL PROTECTED]> wrote:
>
> > > hi,
> > > I used firebug and in effect I've a correct query reported. So the
> > > query works. The problem is that it doesn't print the results.
> > > Any idea?
>
> > > On 29 Dic, 11:51, francky06l <[EMAIL PROTECTED]> wrote:
>
> > > > Do you have something like Firebug (Firefox) or equivalent for other
> > > > browser, to check your ajax request and see the answer of your call ?
>
> > > > On Dec 29, 11:14 am, mcphisto <[EMAIL PROTECTED]> wrote:
>
> > > > > Hi all,
> > > > > I followed this tuotrialhttp://www.justkez.com/cakephp-livesearch/,
> > > > > but I've a problem.
> > > > > Everything seems to be ok, but it doesn't work at all.
> > > > > I mean when I write something in the form, I get the animation of the
> > > > > gif (spinner.gif) but i don't get any result even if I'm sure that the
> > > > > table contains result for that search. I can't find any help about
> > > > > this. Did anyone of you tried this tutorial?
> > > > > Thanks a lot.
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Observe Form wiith Justkez not working

2007-12-29 Thread mcphisto

well, now it works. For the users of this tutorial you have to cange
lines in index.thtml

'loading' => "Element.hide('view');Element.show('loading')",
'complete' => "Element.hide('loading');Effect.Appear('view')"

in

'loading' => "Element.hide('loading');Element.show('view')",
'complete' => "Element.hide('loading');Effect.Appear('view')".

The problem now is that when I upload all on my web space everything
works. But when i go to index.thtml i get a 500 internal error!!! I
hate this.
Any idea again?

On 29 Dic, 13:27, francky06l <[EMAIL PROTECTED]> wrote:
> Well,  in your call you have to set a 'div' to update (ie : 'update'
> => 'div') ... Maybe verify the div exists, and the syntax in your
> call ...(misspelling etc..)
> I do not know this tutorial, I assume it's using the "regular" ajax
> call, unless there is something very specific I am missing.
>
> On Dec 29, 12:27 pm, mcphisto <[EMAIL PROTECTED]> wrote:
>
> > hi,
> > I used firebug and in effect I've a correct query reported. So the
> > query works. The problem is that it doesn't print the results.
> > Any idea?
>
> > On 29 Dic, 11:51, francky06l <[EMAIL PROTECTED]> wrote:
>
> > > Do you have something like Firebug (Firefox) or equivalent for other
> > > browser, to check your ajax request and see the answer of your call ?
>
> > > On Dec 29, 11:14 am, mcphisto <[EMAIL PROTECTED]> wrote:
>
> > > > Hi all,
> > > > I followed this tuotrialhttp://www.justkez.com/cakephp-livesearch/,
> > > > but I've a problem.
> > > > Everything seems to be ok, but it doesn't work at all.
> > > > I mean when I write something in the form, I get the animation of the
> > > > gif (spinner.gif) but i don't get any result even if I'm sure that the
> > > > table contains result for that search. I can't find any help about
> > > > this. Did anyone of you tried this tutorial?
> > > > Thanks a lot.

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Blog Tutorial

2007-12-29 Thread Trencavel

On Samstag, 29. Dezember 2007 wrote cookiejar_3:
> Hi,

Hi,

> [... some error messages ...]

The blog tutorial was written for cake 1.1.
Some input tags are deprecated in version 1.2. (You can read it in the 
error messages and warnings.)
Have a look at the 1.2 api on: 
http://api.cakephp.org/1.2/search.php?query=input

A more up to date tutorial you can found here:
http://www.davidgoldingdesign.com/newbie-cakephp.pdf
But beware. In latest 1.2 pre-beta are new changes once again.

trenc

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Blog Tutorial

2007-12-29 Thread francky06l

A quick search here (also the warning you get running the actual code)
would have told you that form helper is replacing html helper in 1.2.
Use $form->input, $form->submit .. etc...

On Dec 29, 12:15 pm, cookiejar_3 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm having a problem with the blog tutorial, I followed the steps on
> how to create a blog. The viewing of the title and the message was
> good but adding a blog does not work well. when I run thehttp://www/posts/add
> It gives me a message:
>
> Notice: Method input() is deprecated in HtmlHelper: see
> FormHelper::input or FormHelper::text in C:\apache\htdocs\cake\cake
> \libs\view\helpers\html.php on line 652
>
> Notice: Method tagErrorMsg() is deprecated in HtmlHelper: see
> FormHelper::error in C:\apache\htdocs\cake\cake\libs\view\helpers
> \html.php on line 718
>
> Body:
> Notice: Method textarea() is deprecated in HtmlHelper: see
> FormHelper::input or FormHelper::textarea in C:\apache\htdocs\cake\cake
> \libs\view\helpers\html.php on line 576
>
> Warning (512): Method HtmlHelper::submit does not exist [CORE\cake\libs
> \view\helper.php, line 148]
>
> I'm using a Cake 1.2.0 stable version and my posts_controller.php is:
>
>  class PostsController extends AppController{
> var $name = 'Posts';
> function index(){
>$this->set('posts', $this->Post->findAll());
> }
>
> function view($id = null){
> $this->Post->id = $id;
> $this->set('post', $this->Post->read());
> }
>
> function add(){
>if (!empty($this->data)){
>   if ($this->Post->save($this->data)){
> $this->flash('Your post has been saved.','/posts');
>   }
>}
> }}
>
> ?>
>
> My add.thtml is:
>
> Add Post
> 
> 
> Title:
> input('Post/title', array('size' => '40'))?>
> tagErrorMsg('Post/title', 'Title is
> required.') ?>
> 
> 
> Body:
> textarea('Post/body', array('rows'=>'10')) ?
>
> tagErrorMsg('Post/body', 'Body is
> required.') ?>
> 
> 
> submit('Save') ?>
> 
> 
>
> Somebody please help me..
> Thanks in advance..
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Causes of Model::Save() Fail

2007-12-29 Thread francky06l

I agree 100% with AD, testing and checking data in DB is a part of the
development process (basically your job) .. Adding overhead will just
slow down the complete process.

On Dec 29, 11:33 am, AD7six <[EMAIL PROTECTED]> wrote:
> On Dec 28, 5:01 pm, ProFire <[EMAIL PROTECTED]> wrote:
>
> > Yup!!!
> > I believe that's a very good way to validate existing fields and
> > output errors for it.
>
> > What about the non-existing fields?
>
> > Example:
> > Password: abc
> > Verify Password: abc
>
> > Personally, I would feel that a notice like "account/verify_password
> > was not inserted because field don't exist in table `account`" would
> > be very very useful.
>
> I think that would very quickly get annoying. you can add validation
> rules for virtual fields, and if the cause is a misspelling, when you
> debug you'd spot that ;). I don't see the benefit in adding logic
> which would always be executed to cater for a development only
> problem.
>
> > Anybody have a way to output such messages automatically?
>
> If you want that, use beforeValidate to add an error message for
> everything in $this->data that isn't what you are expecting.
>
> hth,
>
> AD
> PS. Emphasis on the "debug".
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Observe Form wiith Justkez not working

2007-12-29 Thread francky06l

Well,  in your call you have to set a 'div' to update (ie : 'update'
=> 'div') ... Maybe verify the div exists, and the syntax in your
call ...(misspelling etc..)
I do not know this tutorial, I assume it's using the "regular" ajax
call, unless there is something very specific I am missing.

On Dec 29, 12:27 pm, mcphisto <[EMAIL PROTECTED]> wrote:
> hi,
> I used firebug and in effect I've a correct query reported. So the
> query works. The problem is that it doesn't print the results.
> Any idea?
>
> On 29 Dic, 11:51, francky06l <[EMAIL PROTECTED]> wrote:
>
> > Do you have something like Firebug (Firefox) or equivalent for other
> > browser, to check your ajax request and see the answer of your call ?
>
> > On Dec 29, 11:14 am, mcphisto <[EMAIL PROTECTED]> wrote:
>
> > > Hi all,
> > > I followed this tuotrialhttp://www.justkez.com/cakephp-livesearch/,
> > > but I've a problem.
> > > Everything seems to be ok, but it doesn't work at all.
> > > I mean when I write something in the form, I get the animation of the
> > > gif (spinner.gif) but i don't get any result even if I'm sure that the
> > > table contains result for that search. I can't find any help about
> > > this. Did anyone of you tried this tutorial?
> > > Thanks a lot.
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Blog Tutorial

2007-12-29 Thread cookiejar_3

Hi,

I'm having a problem with the blog tutorial, I followed the steps on
how to create a blog. The viewing of the title and the message was
good but adding a blog does not work well. when I run the http://www/posts/add
It gives me a message:

Notice: Method input() is deprecated in HtmlHelper: see
FormHelper::input or FormHelper::text in C:\apache\htdocs\cake\cake
\libs\view\helpers\html.php on line 652

Notice: Method tagErrorMsg() is deprecated in HtmlHelper: see
FormHelper::error in C:\apache\htdocs\cake\cake\libs\view\helpers
\html.php on line 718

Body:
Notice: Method textarea() is deprecated in HtmlHelper: see
FormHelper::input or FormHelper::textarea in C:\apache\htdocs\cake\cake
\libs\view\helpers\html.php on line 576

Warning (512): Method HtmlHelper::submit does not exist [CORE\cake\libs
\view\helper.php, line 148]

I'm using a Cake 1.2.0 stable version and my posts_controller.php is:

set('posts', $this->Post->findAll());
}

function view($id = null){
$this->Post->id = $id;
$this->set('post', $this->Post->read());
}

function add(){
   if (!empty($this->data)){
  if ($this->Post->save($this->data)){
$this->flash('Your post has been saved.','/posts');
  }
   }
}
}
?>

My add.thtml is:

Add Post


Title:
input('Post/title', array('size' => '40'))?>
tagErrorMsg('Post/title', 'Title is
required.') ?>


Body:
textarea('Post/body', array('rows'=>'10')) ?
>
tagErrorMsg('Post/body', 'Body is
required.') ?>


submit('Save') ?>



Somebody please help me..
Thanks in advance..

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Observe Form wiith Justkez not working

2007-12-29 Thread mcphisto

hi,
I used firebug and in effect I've a correct query reported. So the
query works. The problem is that it doesn't print the results.
Any idea?

On 29 Dic, 11:51, francky06l <[EMAIL PROTECTED]> wrote:
> Do you have something like Firebug (Firefox) or equivalent for other
> browser, to check your ajax request and see the answer of your call ?
>
> On Dec 29, 11:14 am, mcphisto <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
> > I followed this tuotrialhttp://www.justkez.com/cakephp-livesearch/,
> > but I've a problem.
> > Everything seems to be ok, but it doesn't work at all.
> > I mean when I write something in the form, I get the animation of the
> > gif (spinner.gif) but i don't get any result even if I'm sure that the
> > table contains result for that search. I can't find any help about
> > this. Did anyone of you tried this tutorial?
> > Thanks a lot.

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Observe Form wiith Justkez not working

2007-12-29 Thread francky06l

Do you have something like Firebug (Firefox) or equivalent for other
browser, to check your ajax request and see the answer of your call ?

On Dec 29, 11:14 am, mcphisto <[EMAIL PROTECTED]> wrote:
> Hi all,
> I followed this tuotrialhttp://www.justkez.com/cakephp-livesearch/,
> but I've a problem.
> Everything seems to be ok, but it doesn't work at all.
> I mean when I write something in the form, I get the animation of the
> gif (spinner.gif) but i don't get any result even if I'm sure that the
> table contains result for that search. I can't find any help about
> this. Did anyone of you tried this tutorial?
> Thanks a lot.
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Causes of Model::Save() Fail

2007-12-29 Thread AD7six



On Dec 28, 5:01 pm, ProFire <[EMAIL PROTECTED]> wrote:
> Yup!!!
> I believe that's a very good way to validate existing fields and
> output errors for it.
>
> What about the non-existing fields?
>
> Example:
> Password: abc
> Verify Password: abc
>
> Personally, I would feel that a notice like "account/verify_password
> was not inserted because field don't exist in table `account`" would
> be very very useful.

I think that would very quickly get annoying. you can add validation
rules for virtual fields, and if the cause is a misspelling, when you
debug you'd spot that ;). I don't see the benefit in adding logic
which would always be executed to cater for a development only
problem.

> Anybody have a way to output such messages automatically?

If you want that, use beforeValidate to add an error message for
everything in $this->data that isn't what you are expecting.

hth,

AD
PS. Emphasis on the "debug".
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Cakephp 1.2 Ajax form validation

2007-12-29 Thread Alberto Lopez Rubio

I was trying to make a form and validate with ajax like in:

http://bin.cakephp.org/view/242085627

but when I have an error, the error div is updated with the content of
the view of the rendered element. so it's displayed twice the form

my validateField view is the form... what should be the validateField
view? if this is the problem...

Thank you

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Observe Form wiith Justkez not working

2007-12-29 Thread mcphisto

Hi all,
I followed this tuotrial http://www.justkez.com/cakephp-livesearch/,
but I've a problem.
Everything seems to be ok, but it doesn't work at all.
I mean when I write something in the form, I get the animation of the
gif (spinner.gif) but i don't get any result even if I'm sure that the
table contains result for that search. I can't find any help about
this. Did anyone of you tried this tutorial?
Thanks a lot.

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Forum Incubator

2007-12-29 Thread foxmask

Hello,
I'm integrating punBB in one project
i'm saying mylself i could integrate several forum softwares by
creating an "interface" class (in Java term) that will be more
appropriate, no ?
If so how in cakephp do we make an interface ?

Kind Regards.
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



should I use the nightly builds?

2007-12-29 Thread aranworld

I'm wondering what other people's experience might be who are using
the nightly builds of Cakephp instead of the released version.

By now, I would imagine that there are a lot fewer errors in the
nightly builds than in the release dating from October 22, but maybe
there is something about the process that I'm unaware of?

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



generateDateTime bug

2007-12-29 Thread mudit

Hi, I was using generateDateTime and what I found I was that if the
value in my datetimefield field is say '2007-12-28 12:30:00',  the
meridian would be rendered AM in my view, though it should be PM.
Any Ideas !

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP Super Feed

2007-12-29 Thread Sharan

Thanks for the appreciation guys. I have added a couple of more blogs.

Thanks Again,
Sharan.

On Dec 28, 7:08 pm, Baz <[EMAIL PROTECTED]> wrote:
> Excellent.
>
> Now I can find valid posts without having to sift through the idiots who
> just repost stuff from this mailing list.
>
> On Dec 28, 2007 6:34 AM, Dr. Tarique Sani <[EMAIL PROTECTED]> wrote:
>
>
>
> > On 12/28/07, Sharan <[EMAIL PROTECTED]> wrote:
> > > posts about cake (link Snook, devmoz's cake posts; This was possible
> > > due to the filter funcitonality in pipes). The feed also contains
> > > posts from Some Non-English blogs thanks to pipes' bablefish widget.
>
> > This is indeed cool :)
>
> > Tarique
>
> > P.S. Thanks for including sanisoft.com
>
> > --
> > =
> > Cheesecake-Photoblog:http://cheesecake-photoblog.org
> > PHP for E-Biz:http://sanisoft.com
> > =
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---