Re: CakeFest 2010, who is going?

2010-06-30 Thread Larry E. Masters aka PhpNut
Mike,

Great! Looking forward to seeing you there.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/


On Wed, Jun 30, 2010 at 10:23 AM, Mike Karthauser
wrote:

>
> On Wed, June 30, 2010 4:12 pm, Larry E. Masters aka PhpNut wrote:
> > Mike,
> >
> > The site list the early bird prices now, soon the prices will be going
> up.
> > http://cakefest.org/ticket-info
>
> aha.
>
> am planning on travelling out with my good friend who is last speaker on
> the 5th.
>
> looking forward to it.
>
> >
> > We are checking with the hotel to make sure we have the room for
> expansion
> > because the response to the event is higher than anticipated this year.
> > Everyone wants a piece of the CakePHP :)
> >
> > --
> > /**
> > * @author Larry E. Masters
> > * @var string $userName
> > * @param string $realName
> > * @returns string aka PhpNut
> > * @access public
> > */
> >
> >
> > On Wed, Jun 30, 2010 at 10:07 AM, Mike Karthauser
> > wrote:
> >
> >> Hi Larry
> >> am thinking about it. Do you know what the early bird ticket prices are?
> >> we'll be coming up from bristol, UK.
> >> mikek
> >>
> >>
> >>
> >> On Wed, June 30, 2010 3:38 pm, Larry E. Masters aka PhpNut wrote:
> >> > Just want to start a thread and see how many people on the google
> >> group
> >> > would like to attend or are planning to attend CakeFest 2010? This is
> >> the
> >> > largest gathering of CakePHP developers and we plan to have most of
> >> the
> >> > core
> >> > development team at the event this year.
> >> >
> >> > http://cakefest.org/schedule
> >> >
> >> > So who is coming or planning to come to the event?
> >> >
> >> > --
> >> > /**
> >> > * @author Larry E. Masters
> >> > * @var string $userName
> >> > * @param string $realName
> >> > * @returns string aka PhpNut
> >> > * @access public
> >> > */
> >> >
> >> > Check out the new CakePHP Questions site http://cakeqs.org and help
> >> others
> >> > with their CakePHP related questions.
> >> >
> >> > 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
> >> > cake-php+unsubscr...@googlegroups.com
> 
> >For
> >> more options, visit this group
> >> > at http://groups.google.com/group/cake-php?hl=en
> >> >
> >>
> >>
> >> --
> >> Mike Karthauser
> >> Managing Director - Brightstorm Ltd
> >>
> >> Email: mi...@brightstorm.co.uk
> >> Web: http://www.brightstorm.co.uk
> >> Tel:  07939 252144 (mobile)
> >> Fax: 0870 1320560
> >>
> >> Address: 1 Brewery Court, North Street, Bristol, BS3 1JS
> >>
> >> Check out the new CakePHP Questions site http://cakeqs.org and help
> >> others
> >> with their CakePHP related questions.
> >>
> >> 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
> >> cake-php+unsubscr...@googlegroups.com
> 
> >For
> >> more options, visit this group at
> >> http://groups.google.com/group/cake-php?hl=en
> >>
> >
> > Check out the new CakePHP Questions site http://cakeqs.org and help
> others
> > with their CakePHP related questions.
> >
> > 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
> > cake-php+unsubscr...@googlegroups.comFor
> >  more options, visit this group
> > at http://groups.google.com/group/cake-php?hl=en
> >
>
>
> --
> Mike Karthauser
> Managing Director - Brightstorm Ltd
>
> Email: mi...@brightstorm.co.uk
> Web: http://www.brightstorm.co.uk
> Tel:  07939 252144 (mobile)
> Fax: 0870 1320560
>
> Address: 1 Brewery Court, North Street, Bristol, BS3 1JS
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: CakeFest 2010, who is going?

2010-06-30 Thread Larry E. Masters aka PhpNut
Mike,

The site list the early bird prices now, soon the prices will be going up.
http://cakefest.org/ticket-info

We are checking with the hotel to make sure we have the room for expansion
because the response to the event is higher than anticipated this year.
Everyone wants a piece of the CakePHP :)

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/


On Wed, Jun 30, 2010 at 10:07 AM, Mike Karthauser
wrote:

> Hi Larry
> am thinking about it. Do you know what the early bird ticket prices are?
> we'll be coming up from bristol, UK.
> mikek
>
>
>
> On Wed, June 30, 2010 3:38 pm, Larry E. Masters aka PhpNut wrote:
> > Just want to start a thread and see how many people on the google group
> > would like to attend or are planning to attend CakeFest 2010? This is the
> > largest gathering of CakePHP developers and we plan to have most of the
> > core
> > development team at the event this year.
> >
> > http://cakefest.org/schedule
> >
> > So who is coming or planning to come to the event?
> >
> > --
> > /**
> > * @author Larry E. Masters
> > * @var string $userName
> > * @param string $realName
> > * @returns string aka PhpNut
> > * @access public
> > */
> >
> > Check out the new CakePHP Questions site http://cakeqs.org and help
> others
> > with their CakePHP related questions.
> >
> > 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
> > cake-php+unsubscr...@googlegroups.comFor
> >  more options, visit this group
> > at http://groups.google.com/group/cake-php?hl=en
> >
>
>
> --
> Mike Karthauser
> Managing Director - Brightstorm Ltd
>
> Email: mi...@brightstorm.co.uk
> Web: http://www.brightstorm.co.uk
> Tel:  07939 252144 (mobile)
> Fax: 0870 1320560
>
> Address: 1 Brewery Court, North Street, Bristol, BS3 1JS
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: CakeFest 2010, who is going?

2010-06-30 Thread Larry E. Masters aka PhpNut
Shaz,

Are you afraid to fly? :)

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/


On Wed, Jun 30, 2010 at 9:42 AM, Shaz  wrote:

> I'd come if it wasn't so far away from London!
>
> On Jun 30, 3:38 pm, "Larry E. Masters aka PhpNut" 
> wrote:
> > Just want to start a thread and see how many people on the google group
> > would like to attend or are planning to attend CakeFest 2010? This is the
> > largest gathering of CakePHP developers and we plan to have most of the
> core
> > development team at the event this year.
> >
> > http://cakefest.org/schedule
> >
> > So who is coming or planning to come to the event?
> >
> > --
> > /**
> > * @author Larry E. Masters
> > * @var string $userName
> > * @param string $realName
> > * @returns string aka PhpNut
> > * @access public
> > */
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


CakeFest 2010, who is going?

2010-06-30 Thread Larry E. Masters aka PhpNut
Just want to start a thread and see how many people on the google group
would like to attend or are planning to attend CakeFest 2010? This is the
largest gathering of CakePHP developers and we plan to have most of the core
development team at the event this year.

http://cakefest.org/schedule

So who is coming or planning to come to the event?

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Cookies from CAKE and other branding

2010-06-29 Thread Larry E. Masters aka PhpNut
Sounds like you are not using the proper settings in core.php to set the
cookie name. Look @ the doc comments in the file they should explain how to
do this.

As for the "branding" override all of the templates from the core views,
simple enough, and you can even create your own bake templates to use in all
of your other projects so you are not "cleaning out" your installs every
time.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/


On Mon, Jun 28, 2010 at 10:01 PM, Vangel  wrote:

> I am quite sick of cake doing tons of branding everywhere. (emails,
> cookies, css etc etc)
>  Its starting to look like some other frameworks already.
>
> I have set cookies etc, but Cake still sets its own CAKEPHP cookie. I
> absolutely do not want to give any indication to snoopers and sniffers
> about what framework I am using. Anyone here has done any research
> into cleaning out cakes footprints please post some notes.
> I will post a few clean ups I found. I think I will be putting
> together a clean version of cake for all future projects. Cleaning it
> out every time is a giant waste of time .
>
> This can be used a topic to discuss on how to remove the default
> messages and other related branding so you are not caught unaware of
> your clients receiving emails from EmailComponent signed by Cakephp
> and similar things.
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Removal of post

2010-06-04 Thread Larry E. Masters aka PhpNut
All post directly from you have been removed per your request.
If you have any further questions please direct them to google.

http://groups.google.com/support/bin/answer.py?hl=en&answer=46452


-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/


On Fri, Jun 4, 2010 at 5:04 AM, Jayesh Wadhwani  wrote:

> Hello,
>
> Per terms and conditions of Google groups please remove all postings
> related to me. My email is jwadhw...@gmail.com
>
> Thanks
>
> Jayesh Wadhwani
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Organizing controllers in folders

2010-02-05 Thread Larry E. Masters aka PhpNut
Yes all you need to do is create the directories and move your controllers.
CakePHP will find the files and cache the paths. Make sure you are
developing with debug > 0 so the cache file will be refreshed as you move
your files around.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Fri, Feb 5, 2010 at 9:30 AM, Mandy Singh  wrote:

> hi,
>
> is it possible to organize controllers under /app/controllers in sub-
> folders ?
>
> my module is growing huge and i would like to create sub directories
> under /app/controllers like "components" .
>
> let me know.
>
> i am on cakephp 1.2.
>
> thanks.
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: 1.3 on a production server?

2010-01-12 Thread Larry E. Masters aka PhpNut
s/How/Have/

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

Why would I be sarcastic? How you follow the CakePHP project for any length
> of time? You will notice the alpha releases are more stable then most
> projects stable versions.
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: 1.3 on a production server?

2010-01-12 Thread Larry E. Masters aka PhpNut
Why would I be sarcastic? How you follow the CakePHP project for any length
of time? You will notice the alpha releases are more stable then most
projects stable versions.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/


On Tue, Jan 12, 2010 at 12:57 PM, DanielMedia wrote:

> Just checking if you were being sarcastic Larry?
>
> On Jan 11, 8:20 pm, "Larry E. Masters aka PhpNut" 
> wrote:
> > Yes all client work is on 1.3
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
>
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: 1.3 on a production server?

2010-01-11 Thread Larry E. Masters aka PhpNut
Yes all client work is on 1.3


-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Mon, Jan 11, 2010 at 9:17 PM, Jamie  wrote:

> Is anyone using 1.3 on their live, high traffic production servers?
> I'm not just talking about blogs, but websites for paying clients and
> that sort of thing (no offense to the 1.3 bloggers out there!). I'm
> considering upgrading some of the domains I manage at my work to 1.3,
> but since it's still in alpha I'm not convinced of its stability just
> yet.
>
> - Jamie
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
>
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Out of office reply

2010-01-01 Thread Larry E. Masters aka PhpNut
David,

I removed the account last night, 13 more days of that would drive me
insane.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/


On Fri, Jan 1, 2010 at 3:20 AM, David Roda  wrote:

> Wow... this is really getting annoying
>
> On 12/31/2009 10:40 PM, j...@citadelsecure.com wrote:
> > Hi,
> >
> > I am out the office until the 14th of January.  If you require urgent
> assistance then please contact p...@citadelsecure.com or call him on 07890
> 592198 - otherwise I will answer your email on my return.
> >
> > Regards
> >
> > Jim
> >
> >
> >
> > Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
> >
> > 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
> > cake-php+unsubscr...@googlegroups.comFor
> >  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
> >
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Default __() parameters causes problems

2009-12-17 Thread Larry E. Masters aka PhpNut
I have plans to change the __*() functions to return by default it has not
been implemented yet


-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Thu, Dec 17, 2009 at 12:31 PM, euromark wrote:

> i do agree that this is one of the few remaining inconsistencies
> remaining in cake1.2/1.3
> all other functions return by default
> e.g. in 1.3 the flash() messages now are returned by default, although
> scripts/css are inline by default (and therefore echod too).
>
> returning should be the default value in most cases
> but i dont think in the __() case this is going to happen :)
> at least it doesnt look like it
>
> using the ___() function might be a very neat way of fixing it for
> you, though
> the overhead is minimal
>
> you should then use the second param though!
> function ___($a, $return = true) { return __($a, $return); }
> to be more flexible
>
>
> On 17 Dez., 18:39, djogo  wrote:
> > Our previous, cake1.1, code was internationalized using php's gettext
> > library and the function _().
> >
> > Cake1.2 now uses __(), which is great, because doesn't require us to
> > "compile" .po files anymore.
> >
> > However, the default behaviour of __() is to echo the translated
> > string, instead of returning it, therefore I'm having a lot of heavy
> > work going from _( $a )  to __( $a, true ). I have a regexp for
> > translating _() to __(), but I couldn't figure out how to insert the
> > ",end" parameter in the end of the call.
> >
> > I though to create a patch in the __() function to change the default
> > value, but I don't want to have my own "version" of cakephp.
> >
> > Or, I may create
> >
> > function ___($a) { return __($a,true); }
> >
> > I _really_ think cakephp designers should make the second parameters
> > true by default, to turn the transition easy. However, I need my code
> > functioning in CAKE 1.2. Do anybody have some tip?
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Javascript libraries with images/css inside Cake Plugins

2009-12-03 Thread Larry E. Masters aka PhpNut
http://code.cakephp.org/wiki/1.3/new-features/plugin-assets

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Thu, Dec 3, 2009 at 4:53 AM, peterchenadded wrote:

> Have a look at mediaview (http://book.cakephp.org/view/489/Media-
> Views).
>
> Basically, it will give you access to any file on your system
> including your plugins folder. If you name your controller and action
> properly you should be able to achieve what you want.
>
> Cheers.
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: About multilingual websites

2009-11-26 Thread Larry E. Masters aka PhpNut
>
>
> 5) Change the extension of the result file from .pot to .po so that
> you can open it with Poedit.
>

You do not change the extension to .po.

Poedit will open this as a template file using the settings for the specific
language you are translating to.

Look for: File > New catalog from POT file...

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: CakePHP performance 1.2 - is future any better?

2009-11-24 Thread Larry E. Masters aka PhpNut
> Straight from the source. Thanks Larry, I was mostly guessing that 2.0
> would see the bigger improvements. :)
>

Martin you are welcome.

Here is a list of some "features" that are planned in 2.0
http://code.cakephp.org/cakephp2/wiki


-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: CakePHP performance 1.2 - is future any better?

2009-11-24 Thread Larry E. Masters aka PhpNut
On Tue, Nov 24, 2009 at 9:07 AM, Martin Westin
wrote:

> Maybe someone should answer the original question: Will future
> versions improve performance?
>

Yes


>
> 1.3 - most likely not too much.
>

Yes 1.3 already has improvements and more are being found and implemented.


> 2.0 - this will likely see some more significant improvements since
> php4 is dropped.
>

There are other improvements that are not related specifically to dropping
php 4, these changes will be back ported to 1.x series of the code to help
improve performance.


>
> Any advancements after 2.0 are also likely to offer improvements as
> more and more code is php5 optimized.


Yes


-- 
/**
* @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 the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-...@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en.




Re: About multilingual websites

2009-11-23 Thread Larry E. Masters aka PhpNut
Ignore this section in the manual it in incorrect:

"Remember that po files are useful for short messages, if you find you want
to translate long paragraphs, or even whole pages - you should consider
implementing a different solution. e.g.:"

http://cakedc.com/ uses entire paragraphs.

http://cakeqs.org/ is another example, the cakeqs.pot for it is located
here: http://groups.google.com/group/cake-php/files you can open that file
in an editor and around line 1735 see a msgid for an entire paragraph. the
cakeqs-*.po files are the actual files we use in the app.

One of the most important settings in the .po file is Plural-Forms:, if it
is incorrect, your plural translations will not look right. Let me know if
you need help with this, I am working to get the old
translations.cakephp.org domain setup again and it will list all the
different plural form expressions:

Example (There are 16 forms of plurals, 2 listed below):

#English, French, etc
nplurals=2; plural=n>1;

#Japanese etc
nplurals=1; plural=0;

You can also dig through the test case app in the core that has all the
plural forms in cake/tests/test_app/local/*

Another piece of advice you may already know.

Using the console you can extract these string with the following command.

cake i18n extract

This will create the pot file that you would use to create the .po files
using a tool like www.poedit.net

/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Mon, Nov 23, 2009 at 5:35 AM, thomaus  wrote:

> Hi there,
>
> One month ago, I did a multilanguage website using CakePHP but putting
> all the multilangual content in my dB.
>
> From what I read today, this was the right way to display short
> messages in various languages with CakePHP :
> http://book.cakephp.org/view/162/Internationalizing-Your-Application
>
> From what I read too, "po files are useful for short messages, if you
> find you want to translate long paragraphs, or even whole pages - you
> should consider implementing a different solution".
>
> Then my question is : is there a standard way to translate dynamically
> long paragraphs?
>
> Thanks,
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-...@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=.




Re: Where can I get "The Chaw"?

2009-11-21 Thread Larry E. Masters aka PhpNut
It never was open sourced.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Sat, Nov 21, 2009 at 8:13 PM, itsnotvalid  wrote:

> Just searched a few websites and there is no indication of a git repo.
> Wonder if this project is still open source.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-...@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=.




Re: best merge port with po translation

2009-11-19 Thread Larry E. Masters aka PhpNut
poedit.net

Choose: Catalog > Update from POT file...


-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Thu, Nov 19, 2009 at 8:06 AM, andrzejborkow...@gmail.com <
andrzejborkow...@gmail.com> wrote:

> how is best solutions for merge exist po translation (stay translated
> msgid) with new extract pot file (empty msgstr)  ?
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-...@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=.




Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread Larry E. Masters aka PhpNut
Nashville Tn. since I live in Tn now and it would be easier for me to deal
with the venues.

Chicago like Walker Hamilton suggested, that is my old "home town" and would
be nice to visit.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Fri, Nov 13, 2009 at 6:55 PM, Jose  wrote:

> NEW YORK
>
> -savant
>
> On Nov 12, 10:43 pm, Graham Weldon  wrote:
> > Hi all,
> >
> > The CakePHP team has been considering the location for the next
> > upcoming CakeFest.
> > We've decided to bring it back home to the United Sates of America.
> > Thus far we haven't chosen a location for the event, but to ensure we
> > reach as many people as possible, we'd like your opinion on where we
> > should host the event.
> >
> > Essentially, our choices are:
> > - USA East Coast
> > - USA West Coast
> > - USA Central
> >
> > If I have missed another location that you feel might be more popular
> > or accessible to interested attendees, feel free to suggest it.
> > We're keen to hear peoples thoughts on it.
> >
> > Cheers,
> >
> > Graham Weldon (AKA: Predominant)
> >
> > e. gra...@grahamweldon.com
> > w.http://grahamweldon.com
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-...@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=.




CakeFest IV - America - Help us pick a location!

2009-11-13 Thread Larry E. Masters aka PhpNut
Trying to set this back to original thread in google.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Fri, Nov 13, 2009 at 6:59 PM, Larry E. Masters aka PhpNut <
php...@gmail.com> wrote:

> Chris,
>
> Thanks for breaking the thread :)
>
> Everyone please reply to the email/thread titled:
>
> CakeFest IV - America - Help us pick a location!
>
> --
> /**
> * @author Larry E. Masters
> * @var string $userName
> * @param string $realName
> * @returns string aka PhpNut
> * @access  public
> */
>
>
> On Fri, Nov 13, 2009 at 6:54 PM, Scott Dahl  wrote:
>
>> I vote Seattle!!!
>>
>>
>> On Fri, Nov 13, 2009 at 4:46 PM, Walker Hamilton wrote:
>>
>>> How about centrally located (St. Louis or Chicago)?
>>>
>>> --
>>>
>>> You received this message because you are subscribed to the Google Groups
>>> "CakePHP" group.
>>> To post to this group, send email to cake-...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> cake-php+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/cake-php?hl=.
>>>
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To post to this group, send email to cake-...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=.
>>
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-...@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=.




Re: I now have an iPhone (was: CakeFest IV - America - Help us pick a location!)

2009-11-13 Thread Larry E. Masters aka PhpNut
Chris,

Thanks for breaking the thread :)

Everyone please reply to the email/thread titled:

CakeFest IV - America - Help us pick a location!

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Fri, Nov 13, 2009 at 6:54 PM, Scott Dahl  wrote:

> I vote Seattle!!!
>
>
> On Fri, Nov 13, 2009 at 4:46 PM, Walker Hamilton wrote:
>
>> How about centrally located (St. Louis or Chicago)?
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To post to this group, send email to cake-...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=.
>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-...@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=.




Re: cookie data corrupted

2009-11-13 Thread Larry E. Masters aka PhpNut
I am curious if you are using Suhosin php extension?

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Fri, Nov 13, 2009 at 12:25 PM, Quess  wrote:

> I have exactly the same problem. On developing server everything works
> like a charm but on production encrypted cookies return values quite
> different than has been written.
> Any help would be very appreciate. :)
>
> Cheers,
> Quess
>
> On Nov 2, 1:17 pm, tobi_one  wrote:
> > Hi,
> >
> > I played around with this a little more. It turned out that the
> > problem is tied to the standard encryption of the cookie.
> > If I turn encryption off, it works. I didn't notice that in the first
> > place, because the old cookies were not deleted...
> >
> > I encrypt the values now myself, as a work-around, but still
> > interested in finding out what causes this problem in the first place!
> >
> > Cheers,
> > tobi_one
> >
> > On 2 Nov., 08:59, tobi_one  wrote:
> >
> >
> >
> > > Hi John,
> >
> > > thanks for your response!
> >
> > > I tried just a single key and it does not work either. I tried various
> > > cookie settings, but none of them seem to have an influence on this
> > > issue. The current cookie settings I'm using is just
> >
> > > $this->Cookie->name = 'somename';
> > > $this->Cookie->time = '2 weeks'; // or '1 hour'
> >
> > > Maybe something on the serverside that could lead to this strange
> > > behaviour?
> >
> > > Cheers,tobi_one
> >
> > > On 30 Okt., 21:18, John Andersen  wrote:
> >
> > > > How is the cookie settings?
> > > > Have you tried with a simple test, using not Auth.User, but another
> > > > key?
> > > > Enjoy,
> > > >John
> >
> > > > On Oct 30, 6:32 pm,tobi_one wrote:
> >
> > > > > Hi,
> >
> > > > > I try to get cookies to work. I try to store data the usual way
> >
> > > > > $cookie['username'] = $this->data['User']['username'];
> > > > > $cookie['password'] = $this->data['User']['password'];
> > > > > $this->Cookie->write('Auth.User',$cookie,true, '+2 weeks');
> >
> > > > > when I retrieve the cookie data with
> >
> > > > > $cookie = $this->Cookie->read('Auth.User');
> > > > > debug($cookie);
> >
> > > > > the data is always corrupted.
> >
> > > > > Array
> > > > > (
> > > > > [Auth] => Array
> > > > > (
> > > > > [User] =>
> > > > > )
> >
> > > > > )
> >
> > > > > There is no difference whether I switch off encryption of the
> cookie
> > > > > data, by setting the third value of Cookie->write to false. Any
> ideas,
> > > > > what I am missing?
> >
> > > > > Cheers,
> > > > >tobi_one- Hide quoted text -
> >
> > - Show quoted text -
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-...@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=.




CakePHP Questions - Now out of beta!

2009-11-10 Thread Larry E. Masters aka PhpNut
CakePHP Questions http://cakeqs.org has just come out of beta testing and
registration is open to all users of CakePHP. This is the first step in
unifying the community applications that are currently available. We will
continue to keep everyone informed over the next few weeks as more of the
sites are updated and content monitoring of these sites put in the the hands
of our user base. We have listened to your feedback and think you should
have more control over what you find useful.

CakePHP Questions is a multilingual site and if you are interested in
helping us translate the static content of the site please contact us:
cak...@cakephp.org

-- 
/**
* @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 the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-...@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=.




Re: cakephp.org hacked?

2009-11-03 Thread Larry E. Masters aka PhpNut
Wow people relax... We are a group of developers that enjoy releasing this
framework and also like to have a little fun after all the talk of this
project dying. This was a great in your face "We are still here statement".

Thanks for all your support...

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Tue, Nov 3, 2009 at 11:17 PM, Josh K  wrote:

>
> I agree. This theme has me worried.  Halloween is past anyway.
>
> On Nov 3, 2:50 pm, on24  wrote:
> > Hmmm, I just don't like this "funny" theme. My first thought was
> > "CakePHP gone?! Too bad. Let's check Code Igniter then". Serious
> > things like frameworks should not try to be funny. I really can't
> > promote a halloween framework to my colleagues.
> >
>

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



Re: gwoo Leaving CakePHP??

2009-10-14 Thread Larry E. Masters aka PhpNut
Adam,

Since being informed by gwoo that he was leaving the project a couple weeks
ago, I have stepped back into a more active role in the project.
At this time I have not selected a new project manager but you can be
assured the project will go on. The lead developers are as active as ever on
the current codebase, and work on it is increasing rapidly. A change in the
project manager position for the CakePHP project at this juncture will allow
us to realign the team to the development roadmap, and better achieve our
goals in terms of development and release moving forward.

Look forward to what is in store with the 1.3 and 2.0 releases, more to be
announced on these later :).

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/
On Wed, Oct 14, 2009 at 5:18 PM, Adam  wrote:

>
> "[gwoo] resigned from the Cake Software Foundation and cakephp
> project. Thank you all for 4 great years. Best of luck to the team and
> community."
>
> https://www.ohloh.net/accounts/gwoo/messages
>
> Is this true? Any reason behind this decision? Who will step up and
> manage this great project?
>
> In the event it is true, Garrett you did a fantastic job! I love
> CakePHP and thank you for your time and dedication.
>
> >
>

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



Re: find __() function parameters in /app and update *.po - automated

2009-10-14 Thread Larry E. Masters aka PhpNut
Miles,

It is not a suggestion it is the correct way the code should be used.

As I stated in the previous email the pot file is reopened, using poedit for
example, and you merge the changes from your code. Your .po and .mo files
will have the correct msgid and your translators will be able to open the
file and "know" that it has been altered because the fields are marked as
fuzzy translation.

When I originally wrote this code I used gettext, which is a commonly used
implementation, as a model to build it for CakePHP.

http://en.wikipedia.org/wiki/GNU_gettext
http://www.gnu.org/software/gettext/
http://gnuwin32.sourceforge.net/packages/gettext.htm

There are many other examples you can find on the internet showing proper
way to use gettext.

Look at the site setup for translating GNU and other projects:
http://translationproject.org/

I doubt you will find a project out of the 160+ on that site using slugs
like you suggest.

You can use the code however you like though.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Wed, Oct 14, 2009 at 11:21 AM, Miles J  wrote:

>
> Additionally on the subject of PhpNut's suggestion. What if we change
> the text string in the view (english one) and then the translated ones
> wont match anymore because the msgid has changed. And if we generate
> new po files then we would have to translate them all over again.
> Thats primarily my reason for using slugs.
>
> On Oct 14, 7:15 am, Toby Ashley  wrote:
> > While this discussion is going on, I thought I'd raise / ask something...
> >
> > In a recent project, I needed to make it easy for administrators to be
> able
> > to edit the text used throughout the site. The site itself runs in 12
> > languages, and as a result I have 12 *.po files, one per territory. The
> > administrators for each language are fairly non-technical, and so the
> system
> > needed to be easy.
> >
> > I built a simple system which would do the following:
> >
> > -- Provide a 'download existing website text' button to the administrator
> -
> > the controller action would then read through the appropriate *.po file
> and
> > generate a CSV with two columns, the identifier (i'm also using
> descriptive
> > slugs, as mentioned by Miles) and the current string for that identifier
> >
> > -- The administrator can then make the necessary amendments before
> > re-importing the CSV. When re-importing, the system backs up the existing
> > *.po file and creates a new one, manually writing the msgid and msgstr
> > values from the data in the CSV. Finally, when this is done, the system
> > removes any relevant cache files and  hey presto - the website text is
> > updated.
> >
> > -- There's also tools to revert to previous backup, in case they make an
> > almighty mess of everything.
> >
> > This system worked fine for the project, and the administrators of the
> site
> > are maintaining the different languages with success, but I'm wondering
> if
> > there's a better / simpler / more recommend way of achieving the same
> > functionality. I guess it's kind of like a friendly, web-based interface
> for
> > editing these *.po files
> >
> > Any suggestions?
> >
> > Cheers,
> > toby
> >
> > On Wed, Oct 14, 2009 at 2:05 AM, Larry E. Masters aka PhpNut <
> >
> > php...@gmail.com> wrote:
> > > Cool, let me know if you have any questions.
> > > --
> > > /**
> > > * @author Larry E. Masters
> > > * @var string $userName
> > > * @param string $realName
> > > * @returns string aka PhpNut
> > > * @access  public
> > > */
> >
> > > On Tue, Oct 13, 2009 at 7:46 PM, Miles J 
> wrote:
> >
> > >> Well see now a lot of it makes sense. The guide is pretty vague on
> > >> i18n/l10n and how it works / is used.
> >
> > >> Will give this a try.
> >
> > >> On Oct 13, 5:39 pm, "Larry E. Masters aka PhpNut" 
> > >> wrote:
> > >> > Incorrect, the file that is created using the i18n extract creates a
> > >> .pot
> > >> > file which is a template file and can be opened in any po editor or
> text
> > >> > editor. The template is not language specific. There is no reason to
> > >> create
> > >> > these files by hand. Write your code and output using the sentences
> you
> > >> > would normally use just wrap the string in __() function. Run the
> > >> extractor
> >

Re: find __() function parameters in /app and update *.po - automated

2009-10-14 Thread Larry E. Masters aka PhpNut
Toby,
It sounds like you are trying to use translations as a way to also change
text.

Examples (forgive me in advance if google did not translate these properly):

"Welcome to the home page of CakePHP the best PHP framework for rapidly
building applications."

Translated to German this would be:

"Willkommen auf der Homepage von CakePHP den besten Rahmen für PHP schnell
die Erstellung von Anwendungen."

Anything else would not be a translation:

Example:

"Herzlich Willkommen auf meiner Homepage der Anwendungen habe ich mit Hilfe
meiner CakePHP Rahmen der Wahl."

Which means:

"Welcome to my home page of the applications I have built using CakePHP my
framework of choice."

This is not translating text, and it not what I18n is to be used for.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Wed, Oct 14, 2009 at 9:15 AM, Toby Ashley  wrote:

> While this discussion is going on, I thought I'd raise / ask something...
>
> In a recent project, I needed to make it easy for administrators to be able
> to edit the text used throughout the site. The site itself runs in 12
> languages, and as a result I have 12 *.po files, one per territory. The
> administrators for each language are fairly non-technical, and so the system
> needed to be easy.
>
> I built a simple system which would do the following:
>
> -- Provide a 'download existing website text' button to the administrator -
> the controller action would then read through the appropriate *.po file and
> generate a CSV with two columns, the identifier (i'm also using descriptive
> slugs, as mentioned by Miles) and the current string for that identifier
>
> -- The administrator can then make the necessary amendments before
> re-importing the CSV. When re-importing, the system backs up the existing
> *.po file and creates a new one, manually writing the msgid and msgstr
> values from the data in the CSV. Finally, when this is done, the system
> removes any relevant cache files and  hey presto - the website text is
> updated.
>
> -- There's also tools to revert to previous backup, in case they make an
> almighty mess of everything.
>
> This system worked fine for the project, and the administrators of the site
> are maintaining the different languages with success, but I'm wondering if
> there's a better / simpler / more recommend way of achieving the same
> functionality. I guess it's kind of like a friendly, web-based interface for
> editing these *.po files
>
> Any suggestions?
>
> Cheers,
> toby
>
>
>
>
> On Wed, Oct 14, 2009 at 2:05 AM, Larry E. Masters aka PhpNut <
> php...@gmail.com> wrote:
>
>> Cool, let me know if you have any questions.
>> --
>> /**
>> * @author Larry E. Masters
>> * @var string $userName
>> * @param string $realName
>> * @returns string aka PhpNut
>> * @access  public
>> */
>>
>> On Tue, Oct 13, 2009 at 7:46 PM, Miles J  wrote:
>>
>>>
>>> Well see now a lot of it makes sense. The guide is pretty vague on
>>> i18n/l10n and how it works / is used.
>>>
>>> Will give this a try.
>>>
>>> On Oct 13, 5:39 pm, "Larry E. Masters aka PhpNut" 
>>> wrote:
>>> > Incorrect, the file that is created using the i18n extract creates a
>>> .pot
>>> > file which is a template file and can be opened in any po editor or
>>> text
>>> > editor. The template is not language specific. There is no reason to
>>> create
>>> > these files by hand. Write your code and output using the sentences you
>>> > would normally use just wrap the string in __() function. Run the
>>> extractor
>>> > and you are done.
>>> > Easiest tool to edit translations I have recently found is
>>> poedit.www.poedit.net
>>> >
>>> > I uploaded current core extracted pot file.
>>> >
>>> > http://cake-php.googlegroups.com/web/default.pot
>>> >
>>> > Download it and open in poedit.
>>> >
>>> > The nice thing about these pot file is you can create a new version
>>> with
>>> > changes in your application, reopen the template in poedit, and it will
>>> > merge changes highlighting the strings that have changed.
>>> >
>>> > Not sure if you are aware how the other translation functions work in
>>> the
>>> > core, but when it comes to handling plurals in a sentence, your slugs
>>> will
>>> > become more confusing.
>>> >
&g

Re: find __() function parameters in /app and update *.po - automated

2009-10-13 Thread Larry E. Masters aka PhpNut
Cool, let me know if you have any questions.
-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Tue, Oct 13, 2009 at 7:46 PM, Miles J  wrote:

>
> Well see now a lot of it makes sense. The guide is pretty vague on
> i18n/l10n and how it works / is used.
>
> Will give this a try.
>
> On Oct 13, 5:39 pm, "Larry E. Masters aka PhpNut" 
> wrote:
> > Incorrect, the file that is created using the i18n extract creates a .pot
> > file which is a template file and can be opened in any po editor or text
> > editor. The template is not language specific. There is no reason to
> create
> > these files by hand. Write your code and output using the sentences you
> > would normally use just wrap the string in __() function. Run the
> extractor
> > and you are done.
> > Easiest tool to edit translations I have recently found is
> poedit.www.poedit.net
> >
> > I uploaded current core extracted pot file.
> >
> > http://cake-php.googlegroups.com/web/default.pot
> >
> > Download it and open in poedit.
> >
> > The nice thing about these pot file is you can create a new version with
> > changes in your application, reopen the template in poedit, and it will
> > merge changes highlighting the strings that have changed.
> >
> > Not sure if you are aware how the other translation functions work in the
> > core, but when it comes to handling plurals in a sentence, your slugs
> will
> > become more confusing.
> >
> > for($number = 0; $i < 100; $number++) {
> > sprintf(__n('There is %d apple in the fruit bowl', 'There are %d apples
> in
> > the fruit bowl', $number), $number);
> >
> > }
> >
> > msgid "There is %d apple in the fruit bowl"
> > msgid_plural "There are %d apples in the fruit bowl"
> > msgstr[0] ""
> > msgstr[1] ""
> > msgstr[2] ""
> > msgstr[3] ""
> > msgstr[4] ""
> > msgstr[5] ""
> > msgstr[6] ""
> >
> > There are 16 plural rules that range from 1 form of plural to 6 forms of
> > plural depending on the value of $number. It all depends and the language
> > the content is being translated to. The above example be based on the
> header
> > in the po file, which poedit allows you to set based on the language you
> are
> > using.
> >
> > Only 1 form of plural.
> > "Plural-Forms: nplurals=1; plural=0;\n"
> >
> > 6 forms of plural.
> > "Plural-Forms: nplurals=4; plural=n==1 ? 0 : n==2 ? 1 : n==0 || (n>=3 &&
> > n<=10) ? 2 : 3;\n"
> >
> > 14 other forms or plural are available. These will be added to the
> > translation site I had online for the project before. This will be coming
> > back online in the next few weeks. They will also be added to the book,
> with
> > corrections on the proper use of these functions soon. If you need the
> > correct plural form before then, let me know and I can reply with it.
> >
> > --
> > /**
> > * @author Larry E. Masters
> > * @var string $userName
> > * @param string $realName
> > * @returns string aka PhpNut
> > * @access  public
> > */
> >
> > On Tue, Oct 13, 2009 at 6:50 PM, Miles J 
> wrote:
> >
> > > But you would need to make the english po file anyways if you are
> > > going to distribute it and have it translated.
> >
> > > On Oct 13, 12:58 pm, "Larry E. Masters aka PhpNut" 
> > > wrote:
> > > > So you are basically using these as "defines"?
> > > > --
> > > > /**
> > > > * @author Larry E. Masters
> > > > * @var string $userName
> > > > * @param string $realName
> > > > * @returns string aka PhpNut
> > > > * @access  public
> > > > */
> >
> > > > On Tue, Oct 13, 2009 at 2:19 PM, euromark (munich) <
> >
> > > > dereurom...@googlemail.com> wrote:
> >
> > > > > i agree with miles
> >
> > > > > they should be slugged, short and precise
> > > > > and explained in both the english and foreign .po file
> >
> > > > > like
> >
> > > > > "regMessageSuccess"
> > > > > and
> > > > > "You have been successfully registered"
> > > > > "Sie sind nun erfolgreich angemeldet"
> >
> > > > > or
> > >

Re: find __() function parameters in /app and update *.po - automated

2009-10-13 Thread Larry E. Masters aka PhpNut
Incorrect, the file that is created using the i18n extract creates a .pot
file which is a template file and can be opened in any po editor or text
editor. The template is not language specific. There is no reason to create
these files by hand. Write your code and output using the sentences you
would normally use just wrap the string in __() function. Run the extractor
and you are done.
Easiest tool to edit translations I have recently found is poedit.
www.poedit.net

I uploaded current core extracted pot file.

http://cake-php.googlegroups.com/web/default.pot

Download it and open in poedit.

The nice thing about these pot file is you can create a new version with
changes in your application, reopen the template in poedit, and it will
merge changes highlighting the strings that have changed.

Not sure if you are aware how the other translation functions work in the
core, but when it comes to handling plurals in a sentence, your slugs will
become more confusing.

for($number = 0; $i < 100; $number++) {
sprintf(__n('There is %d apple in the fruit bowl', 'There are %d apples in
the fruit bowl', $number), $number);
}

msgid "There is %d apple in the fruit bowl"
msgid_plural "There are %d apples in the fruit bowl"
msgstr[0] ""
msgstr[1] ""
msgstr[2] ""
msgstr[3] ""
msgstr[4] ""
msgstr[5] ""
msgstr[6] ""

There are 16 plural rules that range from 1 form of plural to 6 forms of
plural depending on the value of $number. It all depends and the language
the content is being translated to. The above example be based on the header
in the po file, which poedit allows you to set based on the language you are
using.

Only 1 form of plural.
"Plural-Forms: nplurals=1; plural=0;\n"

6 forms of plural.
"Plural-Forms: nplurals=4; plural=n==1 ? 0 : n==2 ? 1 : n==0 || (n>=3 &&
n<=10) ? 2 : 3;\n"

14 other forms or plural are available. These will be added to the
translation site I had online for the project before. This will be coming
back online in the next few weeks. They will also be added to the book, with
corrections on the proper use of these functions soon. If you need the
correct plural form before then, let me know and I can reply with it.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Tue, Oct 13, 2009 at 6:50 PM, Miles J  wrote:

>
> But you would need to make the english po file anyways if you are
> going to distribute it and have it translated.
>
> On Oct 13, 12:58 pm, "Larry E. Masters aka PhpNut" 
> wrote:
> > So you are basically using these as "defines"?
> > --
> > /**
> > * @author Larry E. Masters
> > * @var string $userName
> > * @param string $realName
> > * @returns string aka PhpNut
> > * @access  public
> > */
> >
> > On Tue, Oct 13, 2009 at 2:19 PM, euromark (munich) <
> >
> > dereurom...@googlemail.com> wrote:
> >
> > > i agree with miles
> >
> > > they should be slugged, short and precise
> > > and explained in both the english and foreign .po file
> >
> > > like
> >
> > > "regMessageSuccess"
> > > and
> > > "You have been successfully registered"
> > > "Sie sind nun erfolgreich angemeldet"
> >
> > > or
> > > "valErrorRecordNameExists"
> > > for
> > > "A record with this name already exists"
> >
> > > this way you can easily change the "original" language text (here:
> > > english) without having to change all the x places in the script as
> > > well
> >
> > > maybe it is now supposed to be
> > > "You cannot have two records with the same name"
> >
> > > but the short slugged term has still the same basic meaning and
> > > therefore remains the same
> >
> > > On 13 Okt., 18:12, Miles J  wrote:
> > > > I am personal extremely against naming your ids the full sentence,
> > > > what purpose does that serve? Its longer in both the .po and .ctp
> file
> > > > and its a lot easier to reference slugs. To each his own I guess.
> >
> > > > On Oct 13, 7:42 am, "Larry E. Masters aka PhpNut" 
> > > > wrote:
> >
> > > > > Another thing I forgot to mention. You should be using full strings
> you
> > > want
> > > > > translated for the msgid.Example:
> >
> > > > > msgid "By registering on this web site you are..."
> >
> > > > > This is the way the core was designed to handle translation

Re: find __() function parameters in /app and update *.po - automated

2009-10-13 Thread Larry E. Masters aka PhpNut
So you are basically using these as "defines"?
-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Tue, Oct 13, 2009 at 2:19 PM, euromark (munich) <
dereurom...@googlemail.com> wrote:

>
> i agree with miles
>
> they should be slugged, short and precise
> and explained in both the english and foreign .po file
>
> like
>
> "regMessageSuccess"
> and
> "You have been successfully registered"
> "Sie sind nun erfolgreich angemeldet"
>
>
> or
> "valErrorRecordNameExists"
> for
> "A record with this name already exists"
>
> this way you can easily change the "original" language text (here:
> english) without having to change all the x places in the script as
> well
>
> maybe it is now supposed to be
> "You cannot have two records with the same name"
>
>
> but the short slugged term has still the same basic meaning and
> therefore remains the same
>
>
> On 13 Okt., 18:12, Miles J  wrote:
> > I am personal extremely against naming your ids the full sentence,
> > what purpose does that serve? Its longer in both the .po and .ctp file
> > and its a lot easier to reference slugs. To each his own I guess.
> >
> > On Oct 13, 7:42 am, "Larry E. Masters aka PhpNut" 
> > wrote:
> >
> > > Another thing I forgot to mention. You should be using full strings you
> want
> > > translated for the msgid.Example:
> >
> > > msgid "By registering on this web site you are..."
> >
> > > This is the way the core was designed to handle translations. You will
> also
> > > find it much easier for people to translate your application if they
> have
> > > everything they need in the 1 .po file vs looking for the text related
> to a
> > > place holder.
> >
> > > --
> > > /**
> > > * @author Larry E. Masters
> > > * @var string $userName
> > > * @param string $realName
> > > * @returns string aka PhpNut
> > > * @access  public
> > > */
> >
> > > On Tue, Oct 13, 2009 at 9:13 AM, Rob  wrote:
> >
> > > > Any1 thought about creating little snippet which could speed up
> > > > hardcoded localization process.
> > > > Here is the simple scenerio:
> > > > 1) find strings within __('...') __('...',true) string patterns in /
> > > > app folder
> > > > 2) build arrays from default locale *.po files containing locale keys
> > > > 3) append to end of these files missing id keys in form:
> > > > msgid "_register_disclaimer"
> > > > msgstr "TOODOO"
> >
> > > > i create many multilang apps and i believe it could be major speed
> > > > boost for ppl like me.
> > > > we dont need to update these files manually every time we use __().
> we
> > > > just run script when app is ready or changed and just update TOODOO
> > > > strings or send them to translators.
> >
> > > > If some1 came up with idea how this could be easly done i would
> > > > apreciate this.
> >
> > > > regular expressions? if so, how to build fault free one?
> >
>

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



Re: find __() function parameters in /app and update *.po - automated

2009-10-13 Thread Larry E. Masters aka PhpNut
What does the length of the sentences have to do with the way it should be
used? You are duplicating your effort by creating a slug to represent a full
sentence. Keep in mind the .po file is only needed for translations not the
default language.

So in English this:

__('Why duplicate your effort');

would not even have a po file.

But in German you would have a po file with (Used google to translate this):

msgid "Why duplicate your effort"
msgid "Warum doppelte Ihre Bemühungen"

Just advising you on the way I wrote the code to work. You can use it anyway
you like I guess, but from a maintenance side distributing your .po files to
a group of translators where they can open them in the editor and see the
exact string that needs to be translated vs trying to find the meaning of
your slug is a plus.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Tue, Oct 13, 2009 at 11:12 AM, Miles J  wrote:

>
> I am personal extremely against naming your ids the full sentence,
> what purpose does that serve? Its longer in both the .po and .ctp file
> and its a lot easier to reference slugs. To each his own I guess.
>
> On Oct 13, 7:42 am, "Larry E. Masters aka PhpNut" 
> wrote:
> > Another thing I forgot to mention. You should be using full strings you
> want
> > translated for the msgid.Example:
> >
> > msgid "By registering on this web site you are..."
> >
> > This is the way the core was designed to handle translations. You will
> also
> > find it much easier for people to translate your application if they have
> > everything they need in the 1 .po file vs looking for the text related to
> a
> > place holder.
> >
> > --
> > /**
> > * @author Larry E. Masters
> > * @var string $userName
> > * @param string $realName
> > * @returns string aka PhpNut
> > * @access  public
> > */
> >
> > On Tue, Oct 13, 2009 at 9:13 AM, Rob  wrote:
> >
> > > Any1 thought about creating little snippet which could speed up
> > > hardcoded localization process.
> > > Here is the simple scenerio:
> > > 1) find strings within __('...') __('...',true) string patterns in /
> > > app folder
> > > 2) build arrays from default locale *.po files containing locale keys
> > > 3) append to end of these files missing id keys in form:
> > > msgid "_register_disclaimer"
> > > msgstr "TOODOO"
> >
> > > i create many multilang apps and i believe it could be major speed
> > > boost for ppl like me.
> > > we dont need to update these files manually every time we use __(). we
> > > just run script when app is ready or changed and just update TOODOO
> > > strings or send them to translators.
> >
> > > If some1 came up with idea how this could be easly done i would
> > > apreciate this.
> >
> > > regular expressions? if so, how to build fault free one?
> >
>

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



Re: find __() function parameters in /app and update *.po - automated

2009-10-13 Thread Larry E. Masters aka PhpNut
Another thing I forgot to mention. You should be using full strings you want
translated for the msgid.Example:

msgid "By registering on this web site you are..."

This is the way the core was designed to handle translations. You will also
find it much easier for people to translate your application if they have
everything they need in the 1 .po file vs looking for the text related to a
place holder.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Tue, Oct 13, 2009 at 9:13 AM, Rob  wrote:

>
> Any1 thought about creating little snippet which could speed up
> hardcoded localization process.
> Here is the simple scenerio:
> 1) find strings within __('...') __('...',true) string patterns in /
> app folder
> 2) build arrays from default locale *.po files containing locale keys
> 3) append to end of these files missing id keys in form:
> msgid "_register_disclaimer"
> msgstr "TOODOO"
>
>
> i create many multilang apps and i believe it could be major speed
> boost for ppl like me.
> we dont need to update these files manually every time we use __(). we
> just run script when app is ready or changed and just update TOODOO
> strings or send them to translators.
>
> If some1 came up with idea how this could be easly done i would
> apreciate this.
>
> regular expressions? if so, how to build fault free one?
> >
>

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



Re: find __() function parameters in /app and update *.po - automated

2009-10-13 Thread Larry E. Masters aka PhpNut
There is a shell script to do this. If the cake console is in your
environment path, this command will work.
cake i18n extract


-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Tue, Oct 13, 2009 at 9:13 AM, Rob  wrote:

>
> Any1 thought about creating little snippet which could speed up
> hardcoded localization process.
> Here is the simple scenerio:
> 1) find strings within __('...') __('...',true) string patterns in /
> app folder
> 2) build arrays from default locale *.po files containing locale keys
> 3) append to end of these files missing id keys in form:
> msgid "_register_disclaimer"
> msgstr "TOODOO"
>
>
> i create many multilang apps and i believe it could be major speed
> boost for ppl like me.
> we dont need to update these files manually every time we use __(). we
> just run script when app is ready or changed and just update TOODOO
> strings or send them to translators.
>
> If some1 came up with idea how this could be easly done i would
> apreciate this.
>
> regular expressions? if so, how to build fault free one?
> >
>

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



Re: Release: CakePHP 1.2.5

2009-10-01 Thread Larry E. Masters aka PhpNut
I do not, so that is why I no longer reply :)

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Thu, Oct 1, 2009 at 11:02 PM, Robert Popplewell  wrote:

> I wonder if every other member of the CakePHP development team takes the
> time to reply to remarks made by all other end-users with such wit.
>
> 2009/10/2 mark_story 
>
>
>> George,
>>
>> Sorry to hear you're miffed, but I made a mistake in packaging 1.2.5
>> so the version number printed when running shells reads 1.2.4.8284.
>> While the VERSION.txt reads 1.2.5.  So if you want to be mad at
>> someone be mad at me.  As for other things missing, there is nothing
>> that I'm aware of.  As the version number changes are the last changes
>> made before packaging. I'll try to do better in the future, sorry for
>> all the confusion and anguish this has caused you.
>>
>> -Mark
>>
>>
>> On Oct 1, 9:07 pm, George H  wrote:
>> > I'm a little miffed that there's no word from any developers about the
>> > issue above -- either through here, twitter or CakePHP Bakery.
>> >
>> > My main concern is that the release notes for this version state that
>> > a change has been made (the version number for example) but the
>> > download package doesn't have that change applied – if this particular
>> > change hasn't been delivered, what else is missing from this version?
>> > I know it's just a version number but it makes me think what else is
>> > missing from 1.2.5 that should be there according to the release
>> > notes.
>> >
>> > On Sep 15, 10:46 am, "euromark (munich)" 
>> > wrote:
>> >
>> >
>> >
>> > > the nightly build does not have the date problems
>> > > so i guess this was an error on building the official release
>> >
>> > > the version number is still 1.2.4 in the nightly as well though
>> >
>> > > On 15 Sep., 01:45, frsp  wrote:
>> >
>> > > > Yes, it is a bit strange
>> >
>> > > >  * @version   $Revision$
>> > > >  * @modifiedby$LastChangedBy$
>> > > >  * @lastmodified  $Date$
>> >
>> > > > and "return $config['Cake.version'] = '1.2.4.8284';" for cake 1.2.5
>> >
>> > > > Any comments from developers?
>> >
>> > > > On Sep 10, 5:53 am, George H  wrote:
>> >
>> > > > > Good going with the release of 1.2.5! I've already downloaded and
>> > > > > installed it.
>> >
>> > > > > However, I noticed that the version reported is still 1.2.4.8284.
>> Are
>> > > > > you sure this is a clean commit to the code base? Commit
>> > > > > [e693e881e05dba168f49d14ab657dbff2b2f9c88] in the changelog says
>> that
>> > > > > the version number was updated, but this doesn't seem to be the
>> case
>> > > > > for me. Also, the $ macros in each PHP script in the top comments
>> > > > > (stuff like $Id$ and $Revision$) are all blank / default, and not
>> the
>> > > > > actual data that should be in there.
>> >
>> > > > > FWIW, I downloaded the .tar.bz2 distribution from here:
>> http://cakeforge.org/frs/download.php/733/cake_1.2.5.tar.bz2
>>
>>
>
> >
>

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



Re: Enterprise Level App using cakephp

2009-09-24 Thread Larry E. Masters aka PhpNut
Serious though, http://book.cakephp.org/view/510/Sites-in-the-wild
-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Thu, Sep 24, 2009 at 4:17 PM, Larry E. Masters aka PhpNut <
php...@gmail.com> wrote:

> Is anybody use cakephp for developing an Enterprise Level
>> Application?
>
>
> Yes.
>
>
>> and What Kind of App was developed?
>>
>
> A big one.
>
>

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



Re: Enterprise Level App using cakephp

2009-09-24 Thread Larry E. Masters aka PhpNut
>
> Is anybody use cakephp for developing an Enterprise Level
> Application?


Yes.


> and What Kind of App was developed?
>

A big one.

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



Re: Internationalization

2009-08-17 Thread Larry E. Masters aka PhpNut
It is __(); notice the double underscore.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Mon, Aug 17, 2009 at 3:52 PM, RhythmicDevil wrote:

>
> Hi,
> I am trying to understand how to get internationalization to work in
> CakePHP. After reading the docs and searching around, looking at
> Teknoid and some other place this is what I am left with.
>
> CakePHP has a class I18n that handles the loading of the correct
> string from a .po file based upon the language locale setting.
>
> CakePHP has a console app that supposedly will read all the strings in
> your view files and create language files for you.
>
> I wrap my string ids in _() which will return the msg for that id.
>
> I can use POEdit to create my files.
>
>
> Given that. I created one message and placed it in the default.po file
> for English. I then used the translator function for the heading on my
> login page. However when I start the app it simply fails and tells me
> that _()  is an undefined function.
>
> Here is the content of my controller:
>
> class SubscribersController extends Controller
> {
>public $helpers = array ('Form', 'Html', 'Javascript');
>public $components = array ('DataPrep');
>
>public $SubscriberId = null;
>
>public function login()
>{
>$this->pageTitle = 'Please Login';
>$this->layout = 'login';
>$this->SubscriberId = $this->params['data']['Subscriber']
> ['SubscriberId'];
>$this->log('Login attempt with SubscriberId: '.$this-
> >SubscriberId, Configure::read('APP_LOG'));
>$subscriber = $this->Subscriber->QuerySub($this-
> >SubscriberId);
>if ($subscriber->resultCode == 0)
>{
>$this->Session->write('Subscriber', $subscriber-
> >querySubRsp);
>//debug($this->Session->read('Subscriber'));
>$this->redirect( array ('controller'=>'subscribers',
> 'action'=>'basics'));
>}
>
>}
> 
>
> Here is the content of my View file:
>
>  
>
> _("Please
> Login"); ?>
>
>
>echo $form->create($options = array('action' =>
> 'login'));
>echo $form->input('Subscriber.SubscriberId');
>echo $form->button('Login', array('type'=>'submit',
> 'class'=>'button'));
>echo $form->end();
>?>
>
>
>  
>
>
> Here is the content of my default.po file that is in the directory /
> app/locale/eng/LC_MESSAGES/
>
> msgid ""
> msgstr ""
> "Project-Id-Version: \n"
> "POT-Creation-Date: \n"
> "PO-Revision-Date: \n"
> "Last-Translator: Steven Wright \n"
> "Language-Team: \n"
> "MIME-Version: 1.0\n"
> "Content-Type: text/plain; charset=iso-8859-1\n"
> "Content-Transfer-Encoding: 8bit\n"
>
> msgid "Please Login"
> msgstr "Please Login"
>
>
>
> 1) I am assuming I need to tell Cake to use I18n. But how? Is it a
> component, a helper?
> 2) Does my .po file look correct?
> 3) Am I on the right path?
>
> 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 unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: nightly build failed

2009-08-08 Thread Larry E. Masters aka PhpNut
Should be working now, I have not had time to replace the SSL cert on the
server after it expired so the nightly build would fail with the svn export.
-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Sat, Aug 8, 2009 at 8:59 AM, Benjamin Moses Lieb wrote:

>
> Same here
>
> On Aug 4, 5:07 pm, Marcelo Andrade  wrote:
> > Hi all,
> >
> > I'm trying to download today's CakePHP 1.2nightlybuild
> > fromhttp://cakephp.org/downloads/nightly/1.2.x.xand
> > getting an empty folder on decompressing it.  The file size
> > is about only 20 bytes.
> >
> > Best regards.
> >
> > --
> > MARCELO DE F. ANDRADE
> > Belem, PA, Amazonia, Brazil
> > Linux User #221105
> >
> > http://mfandrade.wordpress.com
>
> >
>

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



Re: Tinyints cause big problems

2009-06-01 Thread Larry E. Masters aka PhpNut
> Ok. Trying to save some bytes is old school. But "I know this is
> documented?" Why waste the time typing it if you can't cite a source?
> Where is it documented, and for that matter where are these imaginary
> "CakePHP conventions" documented?



http://book.cakephp.org/view/68/Creating-Database-Tables

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/


>
>
> The cookbook mentions tinyint only the context of forms. The api is
> silent. Golding (Beginning CakePHP) and Chan/Omokore (Practical
> CakePHP Projects) don't have tinyint in their indexes.
>
> You might have been referring to trac ticket #1253, which described
> the bug I ran into. It was written up three years ago, in some detail,
> but was promptly closed by Nate, who wrote "Cake interprets MySQL
> tinyint(1) fields as virtual boolean fields, which can only have a
> value of 0 or 1 (true or false). Use a different column type if you
> don't want this behavior." In March 2008, another user tripped on the
> same problem and wrote ticket #3903. Nate closed that, too. Google
> 'cakephp tinyint'--4,120 hits, many of them developer blogs trying to
> help others over this speed bump.
>
> I'm fairly new to Cake. Do I need to comb through the set of things
> that real users thought were bugs to find the pearls of wisdom by
> which the Cake developers explained their disinterest in fixing them?
> Seriously, is this what you meant when you said you knew this was
> documented?
>
> Thanks, Mark and Larry, for welcoming me to Cake land.
>
> /alastair/
>
> On Jun 1, 4:09 pm, "Larry E. Masters aka PhpNut" 
> wrote:
> > I know this is documented and it is part of the CakePHP conventions.
> > Maybe it is time to upgrade your 1.44 floppy to something like a zip
> drive?
> >
> > --
> > /**
> > * @author Larry E. Masters
> > * @var string $userName
> > * @param string $realName
> > * @returns string aka PhpNut
> > * @access  public
> > */
> >
> > On Mon, Jun 1, 2009 at 5:49 PM, adallas 
> wrote:
> >
> > > I just tracked a bug through Cake's Model code (specifically, model/
> > > datasources/dbo_source.php). I was shocked at how small the scope of
> > > the problem turned out to be.
> >
> > > My find('all'...) included a condition, Model.fld = 3. The results
> > > were wrong and after some wasted time, I saw that the generated SQL
> > > included Model.fld = 1. Cake wasn't just adding some identity
> > > condition; or if it was, it was throwing my condition away. It's a
> > > complicated model (Model, in this case, has 9 associations). I assumed
> > > it had something to do with that, but it did not.
> >
> > > Cake thinks that Tinyints are booleans. Cake parses and reconstructs
> > > your conditional phrases. Put those two facts together, and you see
> > > that Model.fld = 0 will work. Model.fld = 1 will work.  Model.fld = 2
> > > will morph into Model.fld = 3.
> >
> > > One solution is to use ints instead of tinyints. Ints take 4 bytes per
> > > record, tinyints take 1. I can't bring myself to waste the space
> > > without a good reason. I suppose that's the Cake way--if you'll be
> > > treating the field like an ordinary int, use an ordinary int type.
> >
> > > The solution I used was the result of carefully plodding through the
> > > dbo_source code--I override Model::getColumnType(). You can force any
> > > type for a given key. The code is:
> >
> > >public function getColumnType($key)
> > >{
> > >if ($key == 'MyModel.fld') {
> > >return 'integer';   // not 'int'
> > >}
> > >return parent::getColumnType($key);
> > >}
> >
> > > I hope it helps someone avoid some debugging.
> >
> > > /alastair/
> >

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



Re: Tinyints cause big problems

2009-06-01 Thread Larry E. Masters aka PhpNut
I know this is documented and it is part of the CakePHP conventions.
Maybe it is time to upgrade your 1.44 floppy to something like a zip drive?

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Mon, Jun 1, 2009 at 5:49 PM, adallas  wrote:

>
> I just tracked a bug through Cake's Model code (specifically, model/
> datasources/dbo_source.php). I was shocked at how small the scope of
> the problem turned out to be.
>
> My find('all'...) included a condition, Model.fld = 3. The results
> were wrong and after some wasted time, I saw that the generated SQL
> included Model.fld = 1. Cake wasn't just adding some identity
> condition; or if it was, it was throwing my condition away. It's a
> complicated model (Model, in this case, has 9 associations). I assumed
> it had something to do with that, but it did not.
>
> Cake thinks that Tinyints are booleans. Cake parses and reconstructs
> your conditional phrases. Put those two facts together, and you see
> that Model.fld = 0 will work. Model.fld = 1 will work.  Model.fld = 2
> will morph into Model.fld = 3.
>
> One solution is to use ints instead of tinyints. Ints take 4 bytes per
> record, tinyints take 1. I can't bring myself to waste the space
> without a good reason. I suppose that's the Cake way--if you'll be
> treating the field like an ordinary int, use an ordinary int type.
>
> The solution I used was the result of carefully plodding through the
> dbo_source code--I override Model::getColumnType(). You can force any
> type for a given key. The code is:
>
>public function getColumnType($key)
>{
>if ($key == 'MyModel.fld') {
>return 'integer';   // not 'int'
>}
>return parent::getColumnType($key);
>}
>
> I hope it helps someone avoid some debugging.
>
> /alastair/
>
> >

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



Re: Issue when saving HABTM form on RC4

2008-12-19 Thread Larry E. Masters aka PhpNut
Martin,
Join tables do not, and should not require a separate primary key (id)
unless you are storing additional data on the table, which in this case it
is no longer just a join table. I fixed the bug related to that issue
https://trac.cakephp.org/changeset/7918

tekcomp,

You need to write a test case and diff against core model.test.php and open
a ticket http://book.cakephp.org/view/759/Bugreport

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Fri, Dec 19, 2008 at 8:48 AM, Martin Westin
wrote:

>
> Hi,
> Looks like you have fallen victim to the same thing I did (when RC3
> came along)... thinking that Cake would continue to work with join-
> tables that have a composite pk. It was made clear to me in no
> uncertain terms that a join-table must now have a separate primary key
> (id).
>
> Martin
>
>
>
> On Dec 19, 11:08 am, tekomp  wrote:
> > I left out the full debug of the warning by mistake.  Here is that:
> >
> > Warning (2): Cannot modify header information - headers already sent
> > by (output started at /www/example.com/cake/basics.php:111) [CORE/cake/
> > libs/controller/controller.php, line 615]
> >
> > Code | Context
> >
> > $status =   "Location:http://example.com/websites";
> >
> > header - [internal], line ??
> > Controller::header() - CORE/cake/libs/controller/controller.php, line
> > 615
> > Controller::redirect() - CORE/cake/libs/controller/controller.php,
> > line 596
> > PaysitesController::add() - APP/controllers/websites_controller.php,
> > line 29
> > Object::dispatchMethod() - CORE/cake/libs/object.php, line 115
> > Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 245
> > Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 211
> > [main] - APP/webroot/index.php, line 88
> >
>

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



Re: internazionalization | gettext not working on production server: any idea?

2008-10-15 Thread Larry E. Masters aka PhpNut
Unless you are using an old version of CakePHP this should have been
corrected months ago.
-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Wed, Oct 15, 2008 at 4:14 PM, cakeFreak <[EMAIL PROTECTED]> wrote:

>
> I finally got it:
>
> the production servers where 64bits servers, while the development
> were 32bits.
>
> Therefore, here we go: https://trac.cakephp.org/changeset/6149
>
> A small bug that caused the failure in loading the .mo files on 64bits
> machines!
>
> I'm really glad I found the problem, and I hope my post can help
> somebody else!
>
> Dan
> >

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



Re: In controller using too many models hit the performance?

2008-10-11 Thread Larry E. Masters aka PhpNut
Should have added, refresh your page within 10 seconds and you should see
the caching does work.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Sat, Oct 11, 2008 at 9:42 PM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:

>
> Hi there,
>
> My controller includes eight models as follows,
> var $uses = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H');
>
> When loading a view for the controller, it always DESCRIBE the above
> eight TABLES (models) even the action (view) has nothing to do with
> these tables. From the cakephp log on view, it is a big performance
> hit for me.
>
> Q:
> 1. is this by design?
> 2. how to reduce these queries?
>
> I didn't get much helpful info from internet and cakephp official
> site. I'd appreciate it if any help (or article link).
>
> Thanks,
> Bo
> >
>


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



Re: In controller using too many models hit the performance?

2008-10-11 Thread Larry E. Masters aka PhpNut
http://groups.google.com/group/cake-php/browse_thread/thread/93560397e44819e6/e69f61828e527664


-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Sat, Oct 11, 2008 at 9:42 PM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:

>
> Hi there,
>
> My controller includes eight models as follows,
> var $uses = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H');
>
> When loading a view for the controller, it always DESCRIBE the above
> eight TABLES (models) even the action (view) has nothing to do with
> these tables. From the cakephp log on view, it is a big performance
> hit for me.
>
> Q:
> 1. is this by design?
> 2. how to reduce these queries?
>
> I didn't get much helpful info from internet and cakephp official
> site. I'd appreciate it if any help (or article link).
>
> Thanks,
> Bo
> >

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



Re: HABTM & Belongs_To Together?

2008-10-11 Thread Larry E. Masters aka PhpNut
Keith,
Bin you models and send the link to the bin in your email, I will show you
how to fix it.
http://bin.cakephp.org/add/Keith

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Sat, Oct 11, 2008 at 8:45 PM, Keith <[EMAIL PROTECTED]> wrote:

>
> So then...
>
> Does that mean that my problem is that I need to make my user_id in
> the projects table something like owner_id so that it won't get
> grouped in with the traditional habtm relationship that already exists
> with the user model?
>
> Thanks for the assistance.
>
> - Keith
>
> On Oct 11, 9:17 pm, "Larry E. Masters aka PhpNut" <[EMAIL PROTECTED]>
> wrote:
> > Helps to read the manual:
> >
> > http://manual.cakephp.org/view/79/Relationship-Types
> > "...however, aliases must be unique both within a single model and on
> both
> > sides of a belongsTo/hasMany or a belongTo/hasOne relationship. Choosing
> > non-unique names for model aliases can cause unexpected behavior."
> >
> > --
> > /**
> > * @author Larry E. Masters
> > * @var string $userName
> > * @param string $realName
> > * @returns string aka PhpNut
> > * @access  public
> > */
> >
> > On Sat, Oct 11, 2008 at 6:59 PM, <[EMAIL PROTECTED]> wrote:
> >
> > > Ok yea i am not sure abt the first part but David was right the
> > > debuging is impossible.
> >
> > > On 10/11/2008, David C. Zentgraf <[EMAIL PROTECTED]> wrote:
> >
> > > > A HABTM relationship will fetch data differently then a belongsTo
> > > > relationship.
> > > > HABTM will get you an array with multiple results, belongsTo just a
> > > > "flat" array.
> > > > $habtm = array(
> > > >   [0] => array(['id'] =>, ...),
> > > >   [1] => array(['id'] =>, ...)
> > > > )
> > > > $belongsTo = array(['id'] =>, ...)
> >
> > > > When you specify multiple associations, you'll have to specify unique
> > > > names for them.
> > > > var $belongsTo = array(
> > > >   'Owner' => array(...)
> > > > );
> > > > var $hasAndBelongsToMany = array(
> > > >   'Users' => array(...)
> > > > );
> >
> > > > You shouldn't/can't mix different associations under the same name.
> > > > Your output is screwed up because you're mixing the "flat" array with
> > > > the "multi" array. You can either fix that manually (also see Set
> > > > Class) or just keep it simple and name your associations properly.
> > > > BTW, your debug output is virtually impossible to read, use
> > > > debug($array) or pr($array) to spot these kinda things a lot easier.
> >
> > > > On 11 Oct 2008, at 23:58, Keith wrote:
> >
> > > >> Hi Villas,
> >
> > > >> I tried clearing out the cache and that didn't fix it unfortunately.
> >
> > > >> I have the max debug level set.  The code appears to be operating as
> > > >> programmed.
> >
> > > >> I tried a simple habtm with belongs_to in a scenario where I only
> had
> > > >> those two models and still got the same results.
> >
> > > >> I think it's a problem with how CakePHP is creating the array.  The
> > > >> first element in the array has no numeric identifier.  If you look
> > > >> back at the screenshot in the initial post you'll see that the first
> > > >> entry in the array is not [0] but rather is called [id] as it would
> be
> > > >> when there is a belongs_to and not a HABTM as well.
> >
> > > >> Unless I can figure something out I'm going to go ahead and just
> > > >> report it to cakePHP as a bug because there are legit reasons, like
> > > >> the one I'm building, where you'd want a habtm with a belongs_to in
> > > >> the same model.
> >
> > > >> - Keith
> >
> > > >> On Oct 11, 8:14 am, villas <[EMAIL PROTECTED]> wrote:
> > > >>> Hi Keith
> >
> > > >>> Thanks for the extra info although it still isn't very clear to me
> > > >>> from that what's going on.  However,  I would mention:
> > > >>> 1. Are you clearing your cache?  You might have old data hanging

Re: HABTM & Belongs_To Together?

2008-10-11 Thread Larry E. Masters aka PhpNut
Helps to read the manual:

http://manual.cakephp.org/view/79/Relationship-Types
"...however, aliases must be unique both within a single model and on both
sides of a belongsTo/hasMany or a belongTo/hasOne relationship. Choosing
non-unique names for model aliases can cause unexpected behavior."

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Sat, Oct 11, 2008 at 6:59 PM, <[EMAIL PROTECTED]> wrote:

>
> Ok yea i am not sure abt the first part but David was right the
> debuging is impossible.
>
> On 10/11/2008, David C. Zentgraf <[EMAIL PROTECTED]> wrote:
> >
> > A HABTM relationship will fetch data differently then a belongsTo
> > relationship.
> > HABTM will get you an array with multiple results, belongsTo just a
> > "flat" array.
> > $habtm = array(
> >   [0] => array(['id'] =>, ...),
> >   [1] => array(['id'] =>, ...)
> > )
> > $belongsTo = array(['id'] =>, ...)
> >
> > When you specify multiple associations, you'll have to specify unique
> > names for them.
> > var $belongsTo = array(
> >   'Owner' => array(...)
> > );
> > var $hasAndBelongsToMany = array(
> >   'Users' => array(...)
> > );
> >
> > You shouldn't/can't mix different associations under the same name.
> > Your output is screwed up because you're mixing the "flat" array with
> > the "multi" array. You can either fix that manually (also see Set
> > Class) or just keep it simple and name your associations properly.
> > BTW, your debug output is virtually impossible to read, use
> > debug($array) or pr($array) to spot these kinda things a lot easier.
> >
> > On 11 Oct 2008, at 23:58, Keith wrote:
> >
> >>
> >> Hi Villas,
> >>
> >> I tried clearing out the cache and that didn't fix it unfortunately.
> >>
> >> I have the max debug level set.  The code appears to be operating as
> >> programmed.
> >>
> >> I tried a simple habtm with belongs_to in a scenario where I only had
> >> those two models and still got the same results.
> >>
> >> I think it's a problem with how CakePHP is creating the array.  The
> >> first element in the array has no numeric identifier.  If you look
> >> back at the screenshot in the initial post you'll see that the first
> >> entry in the array is not [0] but rather is called [id] as it would be
> >> when there is a belongs_to and not a HABTM as well.
> >>
> >> Unless I can figure something out I'm going to go ahead and just
> >> report it to cakePHP as a bug because there are legit reasons, like
> >> the one I'm building, where you'd want a habtm with a belongs_to in
> >> the same model.
> >>
> >> - Keith
> >>
> >> On Oct 11, 8:14 am, villas <[EMAIL PROTECTED]> wrote:
> >>> Hi Keith
> >>>
> >>> Thanks for the extra info although it still isn't very clear to me
> >>> from that what's going on.  However,  I would mention:
> >>> 1. Are you clearing your cache?  You might have old data hanging
> >>> around.
> >>> 2. Did you try to set a higher debug level to get more info?
> >>> 3. Did you try to experiment with Bake?  You can try different
> >>> scenarios which you should be able to get working without too much
> >>> sweat.
> >>>
> >>> Best regards.
> >>>
> >>> On Oct 11, 6:31 am, Keith <[EMAIL PROTECTED]> wrote:
> >>>
>  Just as a clarification on why I have it set up this way...
> >>>
>  The belongs_to is there because the users that creates the project
>  becomes the owner.
>  The has_and_belongs_to_many is there so that if a user wants someone
>  outside their department to access it they can manually add them.
> >>>
>  The problem looks like it's stemming from how cakePHP is handling
>  the
>  array...
> >>>
>  for the belongs_to the array keys are based on field names like
>  [id] &
>  [first_name], etc.
>  for the HABTM array the array keys are sequential as the "related
>  users" foreach loop expects.
> >>>
>  - Keith
> >>>
>  On Oct 11, 1:18 am, Keith <[EMAIL PROTECTED]> wrote:
> >>>
> > It looks to me like this is what is happening, but it's very
> > strange...
> >>>
> > Even when no users are associated I'm getting 8 blank associated
> > users
> > which is exactly how many elements are in the array...
> >>>
> > So...
> >>>
> > It looks like it's taking the first character from each part of the
> > first entry in the array and putting it there...
> > K = Keith = First Name
> > M = Medlin = Last Name
> > etc. for each of the fields.
> >>>
> > So...I'm totally confused why the following code would produce
> > that:
> >>>
> > SQL Query:
> > SELECT `User`.`id`, `User`.`first_name`, `User`.`last_name`,
> > `User`.`email`, `User`.`date_created`, `User`.`last_login`,
> > `User`.`username`, `User`.`password`, `ProjectsUser`.`user_id`,
> > `ProjectsUser`.`project_id` FROM `users` AS `User` JOIN
> > `projects_users` AS `ProjectsUser` ON
> > (`ProjectsUser`.`project_id` = 1
> 

Re: AppController being ignored

2008-10-10 Thread Larry E. Masters aka PhpNut
class EventsController extends Controller {
should be:

class EventsController extends AppController {


-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Fri, Oct 10, 2008 at 10:09 AM, Fabricio Leonardo Sodano Pascazi <
[EMAIL PROTECTED]> wrote:

> Thanks for the reply, here's my events controller
>
> 
> class EventsController extends Controller {
>
> var $name = "Events";
> var $components = array('Upload','ImageRetriever');
>
> function admin_index(){
>
> $data = $this->Event->findAll();
> $this->set('data',$data);
> }
>
> function admin_list(){
> $data = $this->Event->find('list',
> array( 'fields' => array('name'), 'order' => 'name ASC',
> 'recursive'=>'0' )
> );
>
> //print_r($x);
> return $data;
> }
>
> function admin_view( $id ){
> $this->Event->id = $id;
> $data = $this->Event->read();
> $this->set( 'data', $data );
> }
>
> function admin_search( $name = null ){
>
> if( !$name ){
> $name = $this->data['Event']['name'];
> }
>
> $data = $this->Event->findAll("Event.name LIKE '%$name%'
> COLLATE latin1_swedish_ci ");
>
> $this->set( 'data', $data );
> $this->set( 'name', $name );
> }
>
> function admin_add(){
> if( $this->data ){
> if( $this->Event->save( $this->data ) ){
>
> $destination = realpath('../webroot/img/uploads/') .
> '/';
> $file = $this->data['Event']['image'];
> unset($this->data['Event']['image']);
>
> if( !$file['error'] ){
> $result = $this->Upload->upload(
> $file,
> $destination,
> 'event_' . $this->Event->id .
> $this->ImageRetriever->getImageType($file)
> );
>
> if($this->Upload->errors){
>
> $this->Session->setError($this->Upload->errors);
> $this->redirect('/admin/events/edit/' . $id);
> exit();
> }
> }
>
> $this->redirect('/admin/events/');
> }
>
> }else{
>
> $this->set('places',$this->requestAction('/admin/places/list'));
> }
> }
>
> function admin_edit( $id ){
> $this->Event->id = $id;
>
> if( $this->data ){
> $destination = realpath('../webroot/img/uploads/') . '/';
> $file = $this->data['Event']['image'];
> unset($this->data['Event']['image']);
>
> if( !$file['error'] ){
> $result = $this->Upload->upload(
> $file,
> $destination,
> 'event_' . $this->Event->id .
> $this->ImageRetriever->getImageType($file)
> );
>
> if($this->Upload->errors){
> $this->Session->setError($this->Upload->errors);
> $this->redirect('/admin/events/edit/' . $id);
> exit();
> }
> }
>
> if( $this->Event->save( $this->data ) ){
> $this->redirect('/admin/events/view/' . $id);
> }
> }else{
> $this->data = $this->Event->read();
>
> $this->set('places',$this->requestAction('/admin/places/list'));
> }
> }
>
> function admin_delete( $id ){
> $this->Event->del($id);
> $this->redirect('/admin/events');
> }
>
> }
>
> ?>
>
>
> On Thu, Oct 9, 2008 at 9:37 PM, David C. Zentgraf <[EMAIL PROTECTED]>wrote:
>
>>
>> Paste your EventsController too...
>>
>>
>> On 10 Oct 2008, at 00:06, Fibra wrote:
>>
>> >
>> > Hello Everyone, how are you?
>> >
>> > I've read this issue in other posts but most of the solutions are
>> > becouse they've updated to a newer version.
>> >
>> > Since I just downloaded the latest stable version on cake,
>> > cake_1.2.0.7692-rc3.tar.bz2 I must ask for help.
>> >
>> > Here's the thing:
>> >
>> > I have my routing.admin turned on, and placed my app_controller.php
>> > under /app
>> >
>> > here's the code:
>> >
>> > > >   class AppController extends Controller {
>> >   function __construct(){
>> >   die('wtf');
>> >   }
>> >
>> >   function beforeFilter(){
>> >   echo 'ok';
>> >   if (isset($this->params['admin'])) {
>> >   $this->layout = 'admin';
>> >   }
>> >   }
>> >

Re: .po files look weird

2008-09-22 Thread Larry E. Masters aka PhpNut
More standard?
The file format is THE standard.

Do a little research on gettext.

http://www.google.com/search?q=gettext

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/

On Mon, Sep 22, 2008 at 9:00 AM, toby78 <[EMAIL PROTECTED]> wrote:

>
> Those .po files used for l8n look weird
>
> is there a way to use something like Java property files instead? This
> would be better for re-using existing files and a more "standard" way
> of doing things.
>
> Is there maybe already some "plugin" for cakephp to use such property
> files?
>
> 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 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: Script protection

2008-06-09 Thread Larry E. Masters aka PhpNut
The MIT license allows this to be done, he can encode his code all he wants,
the core CakePHP must be distributed under the terms of the MIT license. He
can not remove the copyright in the core code, or claim the core code as his
own. And the MIT license must be distributed with the core code.

http://www.opensource.org/licenses/mit-license.php
http://en.wikipedia.org/wiki/MIT_License


-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/

On Mon, Jun 9, 2008 at 4:26 AM, Smelly_Eddie <[EMAIL PROTECTED]> wrote:

>
> Let me get this straight...
>
> 1 - You want to take the OPEN SOURCE code written by all the dedicated
> developers and architects from the CakePHP foundation(without paying
> a dime).
> 2 - Use that OPEN SOURCE code to build a quick and robust web
> application.
> 3 - Declare all contained code (including the existing OWN-SOURCE
> framework and function calls) as your own work
> 4 - sell for profit retaining all rights.
>
>
> Yeah, I think you should stop coding in CakePHP, pickup ASP. M$ loves
> proprietary code, you should be all set.
>
> Also you should donate money to the group for insulting them so, and
> passing of their work as your own.
>
> On Jun 8, 2:02 pm, koko <[EMAIL PROTECTED]> wrote:
> > Hey,
> >
> > I didn't find a better place to discuss this topic than this group of
> > bakers ;-) , because CakePHP offers a very customizable and reusable
> > code !!
> >
> > I bake sites always and always have the same fears, "stealing my
> > scripts"  of course you know that it's very easy to steal Cake's
> > scripts or reuse them without your permission ... all you have to do
> > is to edit database.php file and some new CSS and go !! you have a new
> > site without having to pay !!!
> >
> > I have many things in my mind to prevent this:
> >
> > 1- Write a Contract with the client with some statements to prevent
> > him from reusing it (EULA)
> > 2- Tracing the stolen scripts and open a case in the court.
> > 3- Using Zend Encoder to encode it (but it's breakable !!)
> > 4- Some PHP tricks like passing a parameter to delete some files if
> > the script is stolen
> >
> > You maybe have the same problem, so let's share them
> >
>

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



Re: Build #s for CakePHP Applications

2008-06-09 Thread Larry E. Masters aka PhpNut
Configure::version(); will return the current version # of an official
release or trunk version of the code. The branch code, which is where all
changes are made, is not updated to return the correct version # until it
has been merged to the trunk.
-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/

On Sun, Jun 8, 2008 at 11:37 PM, Grant Cox <[EMAIL PROTECTED]> wrote:

>
> I have the major and minor numbers hardcoded in my application
> configuration file, and the actual revision appended using AD7Six's
> snippet
>
> http://bakery.cakephp.org/articles/view/using-your-application-svn-revision-number
>
>
> On Jun 9, 5:22 am, Ken <[EMAIL PROTECTED]> wrote:
> > Like a good developer I want to set up a continuous integration
> > process for my cake app. I can make ant work for me, but what do
> > people recommend as far as tagging each deployment with a build #? I
> > would like to use a scheme like:
> >
> > 1.00.bbb.p (where bbb is build and p is patch)
> >
> > ...and I would like my build/deployment process to label the build in
> > SVN and then somehow get the version/build # onto the default layout.
> >
> > Thoughts?
> >
>

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



Re: api.cakephp.org

2008-05-21 Thread Larry E. Masters aka PhpNut
Make you wonder what? That maybe there is some server maintenance going on?
So everyone knows I am upgrading the server that housed the API from an
older Debian install to a newer FreeBSD. The API will be online once the
server has been completely updated and a new API generated.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/

On Wed, May 21, 2008 at 8:41 PM, Mr-Yellow <[EMAIL PROTECTED]> wrote:

>
> Stuff like this really makes me wonder.
>
> Like all the broken links in the bakery.
>
> -Ben
>
> >
>

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



Re: SVN based comments

2008-05-18 Thread Larry E. Masters aka PhpNut
keymaster,
The props are only set on newly added files, to scan your repo and set the
props, you either have to do it by hand or use this file. You must have
python installed for this to work. And your .subversion/config must be
updated with the changes outlined above.

http://svn.collab.net/viewvc/*checkout*/svn/trunk/contrib/client-side/svn_apply_autoprops.py?revision=20787&content-type=text%2Fplain

Hope it helps,

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/

On Sun, May 18, 2008 at 12:31 PM, keymaster <[EMAIL PROTECTED]> wrote:

>
> The subversion.config file can be found by going to TortoiseSVN-
> >Settings, and clicking Edit.
>
> I appended the cake SVN config info from above onto the end of the
> original file, taking care to first comment out the orignal SVN
> [miscellany] and [auto-props] sections, as the cake svn config file
> replaces them.
>
> I put a cake style file header template into one of my code files,
> like this:
>
> /*
>  * @package className
>  * @subpackage   subclassName
>  * @author$Author$
>  * @version   $Revision$
>  * @modifiedby $LastChangedBy$
>  * @lastmodified$LastChangedDate$
>  */
>
> Then I committed.
>
> I checked out a fresh working copy hoping to see the keyword
> substitution take effect, ... alas no substitution took place.
>
> Any ideas?
>
> I remember hearing somewhere that the substitution only takes place
> for newly created files, not existing ones. Is this correct?
> >

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



Re: I'm very confused by your approach to internationalization.

2008-05-03 Thread Larry E. Masters aka PhpNut
Sorry should have been...
sprintf(__('User with e-mail address %s already exists in our database.
Please try to use another e-mail address.', true), $value);


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



Re: I'm very confused by your approach to internationalization.

2008-05-03 Thread Larry E. Masters aka PhpNut


-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/

On Sat, May 3, 2008 at 1:07 PM, Ivans <[EMAIL PROTECTED]> wrote:

>
> Consider flash message you need show to your visitor during
> registration process because user with that e-mail address already
> exists in your users table.
>
> "User with e-mail address "[EMAIL PROTECTED]" already exists in our
> database. Please try to use another e-mail address".
>
> YOU CAN'T, because __() function is very primitive. It doesn't take
> additional parameters which could replace some placeholders like %s in
> msgstr. You can just append some echo at the end of returned (echoed)
> string comming from __() function and your message than looks like
> machine translated.
>
> 
>
> Crazy.
>
> >
>

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



Re: SIte Homepage loading very slowly

2008-04-16 Thread Larry E. Masters aka PhpNut
This is your problem:

Warning (2): mysql_fetch_array(): supplied argument is not a valid MySQL
result resource [CORE/app/controllers/pages_controller.php, line 106]

Fix that and the pages should load faster.

Also with debug > 0 errors like this will cause pages to load very slow.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/

On Wed, Apr 16, 2008 at 1:36 PM, Indian Baker <[EMAIL PROTECTED]> wrote:

>
> Hi Guys,
> We've built a site using cake 1.2x and it works fine overall..
> The only issue is the homepage takes a really long time to load..
> We are using the following helpers, html, javascript, ajax, and form
> since all of them are needed there.. but any idea what makes the site
> take so much time to load.. the other inner page load fast and if you
> come back to the homepage it loads fast.. its only the first time that
> you visit the site or visit after clearing your cache and cookies that
> it takes so long to load.
> I've enabled debug so you can see that the querying part is taking
> only a couple of  milli secs. no idea what could be wrong.. I even
> trying caching the display view, but that too doesnt seen to help
>
> the site is http://www.tveed.com
>
> Any help would be appreciated
>
> Thanks in advance
>
> PS: there is a mysql_fetch error right now which we'll fix.. but I
> dont think that could be one of the issues for the slow loading..
>
> >

--~--~-~--~~~---~--~~
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: SVN based comments

2008-04-15 Thread Larry E. Masters aka PhpNut
Grab this file, it is the same one we use:
https://trac.cakephp.org/browser/whiteboard/misc/svnconfig.txt?format=raw

Add the contents of this file to your $HOME/.subversion/config

This will also set the proper mime types of the files

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/

On Tue, Apr 15, 2008 at 3:11 AM, Haris <[EMAIL PROTECTED]> wrote:

>
> How can I build SVN based comments that'll fetch SVN details from the
> repository(or .svn files) and append them to the updated files/file.
> This is similar to what CakePHP developers do.
>
>
> /* SVN FILE: $Id: inflections.php 6311 2008-01-02 06:33:52Z phpnut $
> */
>  * @filesource
>  * @version $Revision: 6311 $
>  * @modifiedby  $LastChangedBy: phpnut $
>  * @lastmodified$Date: 2008-01-02 11:33:52 +0500 (Wed, 02 Jan
> 2008) $
>  */
>
> >

--~--~-~--~~~---~--~~
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: Howto secure a form / posted data from tampering?

2008-04-08 Thread Larry E. Masters aka PhpNut
Marcelius,
I have fixed the issues with multiple record forms in the latest svn branch
version of 1.2.x.x

You can grab the latest nightly release with the fixes:
http://cakephp.org/downloads/index/nightly/1.2.x.x

Everything should work properly if you are using the security component and
the form helper to create your forms.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/

On Tue, Apr 8, 2008 at 7:37 AM, Marcelius <[EMAIL PROTECTED]> wrote:

>
> Thanks for your anwsers!
>
> @Bert: Think that method is pretty straight forward, havn't checked it
> yet but I'm sure that will work without any problems
> @grigri: Seems like it doesn't do it's job like it should in my
> situation, do I need to configure something?
>
> I think it has something to do with the names of the input fields,
> they are in the format of [ModelName].[id].[FieldName] instead of
> [ModelName].[FieldName]
> If I hit the submit button without changing anything the Security
> component will fail on the form validation and that blackhole callback
> is called.
>
> So could you help me with that? I've looked over in the api of the
> Security component, but I couldn't find anything related to this
> issue..
>
> On 8 apr, 15:46, grigri <[EMAIL PROTECTED]> wrote:
> > To use the FormHelper's secure method, just include the Security
> > component in your controller: it works automagically.
> >
> > On Apr 8, 2:40 pm, "Bert Van den Brande" <[EMAIL PROTECTED]> wrote:
> >
> > > In your call to $model->save() you can set the fields that can be
> > > updated. All other fields will be ignored ...
> >
> > > On Tue, Apr 8, 2008 at 3:37 PM, Marcel <[EMAIL PROTECTED]> wrote:
> >
> > > >  Hello
> >
> > > >  The problem is that a model has some fields that the user may never
> > > >  edit. I don't show them in the /edit view so they don't get posted
> (by
> > > >  default). But manualy adding some of those private fields will
> result
> > > >  in illegal save. I've noticed the secure method in the api of the
> > > >  FormHelper to generate a hidden field with some sort of hash, but
> how
> > > >  do I use that?
> >
> > > >  I did this in my /edit view:
> > > >  echo $form->secure($this->data);
> >
> > > >  Which does work, but how do I validate that in my save method? If I
> do
> > > >  a post it still saves the posted (malicious) data...?
> >
> > > >  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: What is wrong with my mo-file? Was:... Cake does not parse .mo files

2008-04-08 Thread Larry E. Masters aka PhpNut
Martin,
I have already fixed this in the core. Please update to the latest branch
1.2.x.x from svn.

Related ticket: https://trac.cakephp.org/ticket/4420

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/

On Tue, Apr 8, 2008 at 8:24 AM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:

>
> Larry: Sorry, I did not see your message at first (google web-
> interface). Here is what my Mac spits out:
> int(4294967295)
> int(2500072158)
> int(-1794895138)
>
> My Apache/PHP setup is "out of the box" Apple-standard. Apache-confs
> are only added to setup vhosts and to allow Cake's .htaccess files to
> take over.
> I am pretty sure this is a problem because of the 64bit OS. Apache is
> displayed as a 64bit process. Besides, the .mo-files work perfectly on
> my Ubuntu server.
>
> I put my full phpinfo in the bin if you are interested.
> http://bin.cakephp.org/saved/30732
>
> /Martin
>
> On Apr 1, 4:18 pm, "Larry E. Masters aka PhpNut" <[EMAIL PROTECTED]>
> wrote:
> > Martin,
> > Run the code from this paste:http://bin.cakephp.org/saved/30507
> >
> > You should get the same output as in the "note"
> >
> > If this is not the case your php is not configured properly.
> >
> > Please provide more information about your server environment.
> >
> > --
> > /**
> > * @author Larry E. Masters
> > * @var string $userName
> > * @param string $realName
> > * @returns string aka PhpNut
> > * @access public
> > */
> >
> > On Tue, Apr 1, 2008 at 4:38 AM, [EMAIL PROTECTED] <
> >
> > [EMAIL PROTECTED]> wrote:
> >
> > > Those variables are undeclared because they come from the extract
> > > statement and DO contain values.
> >
> > > So I changed the topic to reflect the real question:
> > > Why is MY mo-file not accepted?
> >
> > > My "magic" value in the header is "-1794895138".
> > > Apparently it should be "2500072158".
> > > I come to this conclusion since both expressions in the if-statement
> > > result in that number.
> > > If I tweak the if-statement to accept my file it is parsed and
> > > translation works without any apparent problem.
> >
> > > What is the "magic" number? A checksum? How do I go about "debugging"
> > > my (also working) po-file? PoEdit has no problem and spits out no
> > > errors.
> >
> > > On Apr 1, 11:27 am, "[EMAIL PROTECTED]"
> > > <[EMAIL PROTECTED]> wrote:
> > > > I have had a lot of problems getting i18n translation working but I
> > > > think this may be one for the trac. THis is a sanity check before
> > > > posting a ticket... please read on and tell me I am wrong :) (which
> is
> > > > always fun)
> >
> > > > I have debugged a bit in cake/libs/i18n.php and found that my
> > > > "default.mo" is loaded but then I found some strange code where the
> > > > file should begin parsing:
> > > > --- line 390-391 ---
> > > > if (($magic == (-1794895138 & 0x) || $magic == (2500072158 &
> > > > 0x)) && $version == 0) {
> > > > for ($n = 0; $n < $count; $n++) {
> > > > ---
> >
> > > > $magic and $count are never assigned values and thus the file will
> > > > never be parsed. This is what I assume is a bug. The reason I doubt
> > > > myself even though logically the file will never be parsed is that
> my
> > > > previous questions have turned up people happily using "mo-files".
> >
> > > > My setup in the app:
> >
> > > > in config/core.php all caching is turned off (when debugging to
> avoid
> > > > cached locale data).
> >
> > > > optional: in config/core.php I have set the language to Swedish:
> > > > Configure::write('Config.language', 'swe');
> >
> > > > the file locale/???/LS_MESSAGES/default.mo contains translations
> > > > compiled by poedit. (??? = swe or eng if using default)
> >
> > > > That is it. Does not display any translated texts. Translations are
> > > > displayed using the __() function and all working with the
> uncompiled
> > > > default.po. When I activate caching The cached translation-file
> > > > contains the following which amounts to nothing:
> > > > 
> > > > 1207044332
> > > > a:1:{s:11:"LC_MESSAGES";a:1:{s:7:"default";a:0:{}}}
> > > > 
> >
>

--~--~-~--~~~---~--~~
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: What is wrong with my mo-file? Was:... Cake does not parse .mo files

2008-04-01 Thread Larry E. Masters aka PhpNut
Martin,
Run the code from this paste: http://bin.cakephp.org/saved/30507

You should get the same output as in the "note"

If this is not the case your php is not configured properly.

Please provide more information about your server environment.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/

On Tue, Apr 1, 2008 at 4:38 AM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:

>
> Those variables are undeclared because they come from the extract
> statement and DO contain values.
>
> So I changed the topic to reflect the real question:
> Why is MY mo-file not accepted?
>
> My "magic" value in the header is "-1794895138".
> Apparently it should be "2500072158".
> I come to this conclusion since both expressions in the if-statement
> result in that number.
> If I tweak the if-statement to accept my file it is parsed and
> translation works without any apparent problem.
>
> What is the "magic" number? A checksum? How do I go about "debugging"
> my (also working) po-file? PoEdit has no problem and spits out no
> errors.
>
>
> On Apr 1, 11:27 am, "[EMAIL PROTECTED]"
> <[EMAIL PROTECTED]> wrote:
> > I have had a lot of problems getting i18n translation working but I
> > think this may be one for the trac. THis is a sanity check before
> > posting a ticket... please read on and tell me I am wrong :) (which is
> > always fun)
> >
> > I have debugged a bit in cake/libs/i18n.php and found that my
> > "default.mo" is loaded but then I found some strange code where the
> > file should begin parsing:
> > --- line 390-391 ---
> > if (($magic == (-1794895138 & 0x) || $magic == (2500072158 &
> > 0x)) && $version == 0) {
> > for ($n = 0; $n < $count; $n++) {
> > ---
> >
> > $magic and $count are never assigned values and thus the file will
> > never be parsed. This is what I assume is a bug. The reason I doubt
> > myself even though logically the file will never be parsed is that my
> > previous questions have turned up people happily using "mo-files".
> >
> > My setup in the app:
> >
> > in config/core.php all caching is turned off (when debugging to avoid
> > cached locale data).
> >
> > optional: in config/core.php I have set the language to Swedish:
> > Configure::write('Config.language', 'swe');
> >
> > the file locale/???/LS_MESSAGES/default.mo contains translations
> > compiled by poedit. (??? = swe or eng if using default)
> >
> > That is it. Does not display any translated texts. Translations are
> > displayed using the __() function and all working with the uncompiled
> > default.po. When I activate caching The cached translation-file
> > contains the following which amounts to nothing:
> > 
> > 1207044332
> > a:1:{s:11:"LC_MESSAGES";a:1:{s:7:"default";a:0:{}}}
> > 
> >

--~--~-~--~~~---~--~~
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: session in component

2008-03-10 Thread Larry E. Masters aka PhpNut
vendejp,

Nice try but... bob should use this instead.

Place this in your component:

var $components = array('Session');
Then you will have $this->Session available in your component.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Mon, Mar 10, 2008 at 8:14 AM, vendejp <[EMAIL PROTECTED]> wrote:

>
> have this in your component:
>
> function startup(&$controller){
>$this->controller =& $controller;
> }
>
> then get session by:
> $ses = $this->controller->Session;
>
> On Mar 10, 4:40 am, bob <[EMAIL PROTECTED]> wrote:
> > how do you get Session object from a component?
> >
> > thanks
> >
>

--~--~-~--~~~---~--~~
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: WTF!!!! Deleted tickets

2008-02-25 Thread Larry E. Masters aka PhpNut
Ben,

Ok you need to chill out, it is obvious you are a little upset because we
are not implementing every "idea" that you consider to be important in this
framework.
Your ticket was not deleted, it was closed as need more information. Pay
attention to us if you expect us to pay attention to you.

1) Learn to create tests that can reproduce for what you "think" are bugs.
2) Learn to create diffs against the current core code test cases.
3) Learn to create diffs against the current core code that you "think" you
are fixing
4) Attach these both the tickets, do not paste them inline as comments to
the ticket.
5) Be patient while we review these tickets and decide if it is really a
bug, or a lack you your understanding of the framework.


-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Mon, Feb 25, 2008 at 5:51 AM, Mr-Yellow <[EMAIL PROTECTED]> wrote:

>
> Are we missing out on a bunch of bugs in Cake due to poor management
> of tickets?
>
> This here is a confirmed bug. I have posted the fix. The ticket gets
> deleted with no resolution?
>
> I'm GOBSMACKED
>
> Well if anyone wants patches for broken bits of CakePHP, I'll post
> them here from now-on rather then to the ticket system.
>
> -Ben
>
>
>
>
>
>
> Ticket #4219 (reopened Bug)
> Opened 12 hours ago
>
> Last modified 8 hours ago
> dbo_source getConstraint hasAndBelongsToMany with primaryKey fails
> Reported by: mryellow Assigned to:
> Priority: High Milestone:
> Component: Databases Version:
> Severity: Normal Keywords:
> Cc:  PHP Version: n/a
> Version From VERSION.txt: 1.2.0.6311 beta
>
> Description  ¶
> Tags primaryKey = "tag" Article with = TagsUsersArticle?
>
> Generates [TagsUsersArticle?.tag_id] =>
> {$cakeIdentifier[TagArticle?.tag]$} in dbo_source.
>
> The tag_id is wrong as Tags model sets it's PK as "tag".
>
> -Ben
>
> Change History
> 02/24/08 19:40:33 changed by mryellow  ¶
> Problem starts with associationForeignKey being setup wrong.
>
> case 'associationForeignKey':
>
> if (!empty($this->{$class}->primaryKey)) {
>
> $data = $this->{$class}->primaryKey;
>
> } else {
>
> $data = Inflector::singularize($this->{$class}->table) . '_id';
>
> }
>
> -Ben
>
> 02/24/08 23:21:19 changed by nate  ¶
> status changed from new to closed.
> resolution set to needmoreinfo.
> This isn't really enough information to reproduce the issue. Please
> attach all relevant model files and related schemas. A unit test might
> also be nice.
>
> 02/24/08 23:59:55 changed by mryellow  ¶
> status changed from closed to reopened.
> resolution deleted.
> Closed already??? I've patched it and moved on.
>
> When using "with" and a non-numeric key in a 3 way join.
>
> It would be duplicatable with a 2 way join also, the key factor being
> the non-numeric primarykey specified in the model. The primaryKey
> variable is used in 99% of the code, except for the bit I've
> highlighted in model.php. case 'associationForeignKey': around line
> 710.
>
> Thus saving a relationship into a HABTM table with a foreignkey "tag"
> the code generated would instead yield "tag_id" (a non-existent
> field).
>
> The above code patch failed when using some other types of
> relationships. Add the check for "id" as the primaryKey value.
>
> [code] case 'associationForeignKey':
>
> if (!empty($this->{$class}->primaryKey) && $this->{$class}-
> >primaryKey != 'id') {
>
> $data = $this->{$class}->primaryKey;
>
> } else {
>
> $data = Inflector::singularize($this->{$class}->table) . '_id';
>
> }
>
> /code
>
> -Ben
>
> >
>

--~--~-~--~~~---~--~~
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: Model primarykey

2008-02-25 Thread Larry E. Masters aka PhpNut
This ticket? https://trac.cakephp.org/ticket/4219
For your information that ticket is not deleted, it was closed as need more
information.

Nate did the right thing by closing the ticket as needmoreinfo:

"This isn't really enough information to reproduce the issue. Please attach
all relevant model files and related schemas. A unit test might also be
nice."

If I would have seen this ticket, I would have closed it the same way,
asking you as a user of this framework to provide more details.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/


On Mon, Feb 25, 2008 at 5:55 AM, Mr-Yellow <[EMAIL PROTECTED]> wrote:

>
> Um.. I fixed some bugs today and provided the patch.
>
> The ticket was deleted.
>
> So much for "open" source.
>
> -Ben
>
>
> On Feb 26, 12:37 am, nate <[EMAIL PROTECTED]> wrote:
> > On Feb 24, 8:13 pm, Mr-Yellow <[EMAIL PROTECTED]> wrote:
> >
> > > The responses to tickets relating to this issue in trac usually have
> > > "wontfix" and a short non-explainatory note basically saying "piss off
> > > and stop asking you don't need this, we know best".
> >
> > Well, I'm really sorry you read such a demeaning tone into my messages
> > on Trac.  The fact is, whether we "know best" is not even the point.
> > The point is, we make decisions on what to support and what not to
> > support based on the driving philosophies of this project, and using
> > it essentially necessitates an implicit agreement with those
> > philosophies.
> >
> > The fact is, compound primary keys are really just not requested that
> > often.  Even if they were, we've decided it's just not something we're
> > going to implement, because it adds too much overhead in terms of
> > complexity.  You can argue about relational theory all you want, it's
> > simply irrelevant to the decision-making process here.  When it comes
> > down to it, supporting multi-column primary keys is just not that
> > useful to *me*.  Furthermore, not enough people have raised it as an
> > issue in order for me to go out of my way for them.
> >
> > But that's the beauty of Open Source: I as a core developer don't
> > *have* to implement a particular feature in order for you to use it.
> > If lack of support for compound primary keys is really enough of a
> > pain point for you, patch the code! :-)  No one's stopping you.  Just
> > don't expect me to take the extra time out of my life to implement a
> > feature which I personally would have no use for, nor likely ever
> > will.  Not to mention the fact that, again, the needless complexity
> > that this would add completely undermines the philosophy of the
> > framework.
> >

--~--~-~--~~~---~--~~
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: Cake 1.2 Console - Fatal Errors - Possible Bug?

2008-01-04 Thread Larry E. Masters aka PhpNut
A duplicate ticket...Read my comment in the ticket

On Jan 4, 2008 10:15 AM, Cake Fan <[EMAIL PROTECTED]> wrote:

>
> I submitted a ticket on this problem:
>
> https://trac.cakephp.org/ticket/3828
>
>
> - Cake Fan
>
>
>
> On Jan 4, 11:16 am, Cake Fan <[EMAIL PROTECTED]> wrote:
> > I'm a little confused about this, perhaps I'm missing something... but
> > when I update via svn, this fix doesn't happen in my core library.
> > For instance, I just looked at line 30 in schema.php (bug fix 6319)
> > and the string class is not included after I updated.
> >
> > However, I manually added the 'string' class on my box in schema.php
> > and it still didn't solve the problem in the console.
> >
> > - Cake Fan
> >
> > On Jan 3, 5:00 pm, "Christian Winther" <[EMAIL PROTECTED]> wrote:
> >
> > > It looks related
> tohttps://trac.cakephp.org/ticket/3793andchangesethttps://trac.cakephp.org/changeset/6312tome
> >
> > > -Original Message-
> > > From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Cake Fan
> > > Sent: 3. januar 2008 22:57
> > > To: Cake PHP
> > > Subject: Re: Cake 1.2 Console - Fatal Errors - Possible Bug?
> >
> > > Christian,
> >
> > > I am at Revision 6319, but the console still says 6311.  I am only
> > > updating the "cake" folder, so I'm not changing the app or vendors
> > > folders at all.  Am I missing something here because the problem still
> > > persists after I updated as you suggested.
> >
> > > Thanks for the help!
> >
> > > - Cake Fan
> >
> > > On Jan 3, 3:32 pm, "Christian Winther" <[EMAIL PROTECTED]> wrote:
> > > > Update to SVN head from 1.2 branch, was fixed there :)
> >
> > > > -Original Message-
> > > > From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED]
> On Behalf Of Cake Fan
> > > > Sent: 3. januar 2008 22:20
> > > > To: Cake PHP
> > > > Subject: Cake 1.2 Console - Fatal Errors - Possible Bug?
> >
> > > > I have my cake 1.2 shell script working properly in most regards; it
> > > > will help me immensely in converting a large flat table into
> > > > relational data for Cake consumption.
> >
> > > > However, in the shell, whenever I try to call any of the Model query
> > > > commands, I get a failure.
> >
> > > > So far, it has happened with findCount(), find(), findall(), save(),
> > > > and saveall();  The problem seems to be inconsistent and no matter
> > > > what I try or eliminate, it seems to persist.
> >
> > > > My shell script ultra-simplified to this:
> > > >
> --
> > > > function main() {
> >
> > > >$i = 0;
> > > >while ($i < 1000) {
> > > >$formatted_data_array = array (
> > > > 'Business' =>  array ('name' => 'test')
> > > >   );
> > > >$this->Business->save($formatted_data_array, false);
> > > >$i++;
> > > >}
> > > > }
> > > >
> --
> >
> > > > It will save one time successfully, and then errors out.  I get the
> > > > following error message from the console:
> >
> > > > ++
> > > > C:\Apache\htdocs\project\app>cake raw_data
> >
> > > > Welcome to CakePHP v1.2.0.6311 beta Console
> > > > ---
> > > > App : app
> > > > Path: C:\Apache\htdocs\project\app
> > > > ---
> > > > PHP Fatal error:  Class 'String' not found in
> C:\Apache\htdocs\project
> > > > \cake\libs\model\datasources\dbo_source
> > > > .php on line 1455
> >
> > > > Fatal error: Class 'String' not found in
> C:\Apache\htdocs\project\cake
> > > > \libs\model\datasources\dbo_source.php
> > > > on line 1455
> >
> > > > C:\Apache\htdocs\project\app>
> > > > +
> >
> > > > Any help would be greatly appreciated!
> >
> > > > - Cake Fan
> >
>


-- 
/**
* @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 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
-~--~~~~--~~--~--~---



New Year, New Beta

2008-01-01 Thread Larry E. Masters aka PhpNut
The CakePHP team is happy to wish everyone a wonderful new year. Entering
the 3rd year of the development we can reflect back on what was done. A year
ago, we released Cake 1.2 dev. We have worked solidly over the last year to
stabilize the new features and provide a growing platform for development.
Our goals to provide the easiest framework are coming to fruition and we
feel honored to share this with all of you. We have hit our fair share of
bumps, received our fair share of bruises, and persevered to bring together
something we can be proud of.

For this year, we would like to share CakePHP 1.2 Beta.  We can honestly and
unequivocally say this is our best release ever. The number of new features
alone make Cake a joy to use, but given the process of development we have
allowed these features to mature, finding the proper balance between
usability and extensibility. Sure, many things have changed from the
1.1days, but a lot of that old code should still work just fine. Where
we could
add, we did so with caution and care. Where we needed to rip apart, we
sliced and diced to find elegant solutions.  The end result is a
feature-rich development framework without too many significant changes.
 Most changes require a simple find and replace with clear error messages to
get you to the right place.

Some of the new features in 1.2 may seem old to people. Those in the
community who have not had a chance to try out Cake 1.2 will be happy to see
some of these features being supported by the core.

Router improvements including reverse routing for array based urls,
parseExtensions for handling multiple content types, mapResources for
handling RESTful automagic, and named arguments with a default format of
"name:value".

Forms are easier to create and maintain. Including the handling of multiple
records and complex data structures. Automagic REST handling and unique
handling of GET and POST types. Forms "know" your model and you should thank
them for it.

Security enhancements for better CSRF prevention and HTTP Authentication.

EmailComponent handles html and text messages via templates,  layouts or on
its own. It may not look like the most full featured component, but when it
can handle attachments, html, and text there should to be too much left
wanting.

CookieComponent for securely storing persistent data on the client side

Behaviors allow the model functionality to be extended and encapsulated by
providing a simple and reusable interface. Tree and Acl included for your
enjoyment.

The "with" key allows you to define a dynamic join table model and access it
as your would any other model

Validation has been greatly extended to include the majority of common
validation methods

Pagination of model records with an extensive helper for neatly displaying
access to multiple pages and sorting the records

Internationalization and Localization with static translations in gettext
style or dynamic translations of model data.

Authentication component to validate user accounts tied to Access Control
made easier through the behavior to handle user permissions.

Configure class to provide dynamic handling of configuration settings and
App class to handle importing required classes

Cache Engines to provide an interface to memcache, xcache, apc, the file
system or database to help speed up your application and provide access to
persistent data.

Console is a complete mini framework for creating command line interfaces
for your application and development environment. The new console provides
an extensible shell and task system. To setup the new console, see the
screencasts http://cakephp.org/screencasts  Bake has been greatly improved
with the ability to have custom templates for views as well as directly
access specific code generation tasks. An interactive console allows you to
run code before your write it. The API shell gives you access to
documentation without digging through the code. Schema provides a versioning
and distribution interface for your database structure. ACL allows you to
CRUD your permissions and grant/deny/inherit access. The extractor makes
creating static translation files easier and faster by pulling strings from
your code.

A lot of new stuff and not a whole lot of documentation on it just yet. This
is also improving as the docs team is hard at work on
http://tempdocs.cakephp.org. We need your help as always, so if you can
spare some extra time talk to  _psychic_ or gwoo in IRC.

When you head over to http://cakephp.org you should see something new and
exciting to go along with the beta release. Once again, a special thanks to
Armando Sosa for providing the graphics and layout. Several new features and
some old ones that received a complete rewrite for 1.2.

So, out with the old and in with new. May 2008 be more exciting and
successful for everyone.
We have a lot planned, including something with a 2, a dot, and a 0.

Happy Baking,

Beta: 1.2.0.6311 http://cakeforge.org/frs/?group_id=23&release_i

Re: solution to 500 errors running 1.2 on dreamhost and others

2007-11-21 Thread Larry E. Masters aka PhpNut

>  It's because dreamhost's default php 5 doesn't include gettext.
>  You must compile it yourself (they do have a nice script to do that
> for you, in their wiki), or switch back to php4 (the simpler way)
>
>  whenever you use __(), you'll stumble into this.
>
>  spark
>

__() has nothing to do with gettext being compiled in your version of
PHP, there is a known issue with the Zend Optimizer.

-- 
/**
* @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 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: prpblem baking models

2007-10-23 Thread Larry E. Masters aka PhpNut
Upgrade the 1.1.18.5850, that fix is not correct and was closed as invalid
since the issue had already been corrected in the core.

http://cakeforge.org/frs/?group_id=23&release_id=343



-- 
/**
* @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 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
-~--~~~~--~~--~--~---



New CakePHP Releases

2007-10-22 Thread Larry E. Masters aka PhpNut
We have some new releases available for download. Version 1.1.18.5850 [1] is
a bug fix update to the current stable release. Version 1.2.0.5875 pre-beta
[2] is the pre beta release of the current development version.

We decided to have pre beta since a lot of new features have been added
since the last alpha release. There are still some new features to
implement, so we are holding the beta release until all the enhancement
tickets are closed. This release took a little bit longer than expected, but
we say it was worth the wait.

As usual, this release includes hundreds of minor fixes, enhancements, and
speed improvements.  This release also includes several major feature
additions, which we've been working hard on to implement so CakePHP remains
the best framework for web application development in PHP.

A number of important features were added to improve support for
implementing web services, including simplified REST routing, i.e.:

Router::mapResources('posts');

This will map each HTTP request to it's corresponding controller method
(index, view, add, edit or delete).  For example, a PUT request to /posts/1
maps to the edit() method of PostsController.  In addition, the Router now
supports a whole range of HTTP header detection options.  Controlling access
to your web services is easier than ever, too.  The Security component now
supports HTTP basic and digest authentication, which is easily configurable
in your controller's beforeFilter() method.

The Auth component has also undergone extensive refactoring, making it
possible for you to plug in your own custom login authentication method or
access control system.

In the first of several major changes to the Model, findCount() and
findAll() are being replaced by the new find() syntax.  This new syntax
allows you to specify parameters as an array, like the following:

Post->find('count', array('conditions' => array('Post.comments_count' => '<
20'));
Post->find('first', array('conditions' => array('Post.comments_count' => '<
20'), 'order' => 'Post.date ASC'));
Post->find('all', array('limit' => 10, 'order' => 'Post.date ASC'));

Pagination flexibility has also been improved with the addition of
Model::paginate(), and Model::paginateCount(), which you can define in your
models to handle custom pagination.  Each method takes the same parameters
as findAll() and findCount(), respectively.

Also in the database department, schema generation has been implemented for
several databases.  Schema generation allows you to create and edit your
database schemas with your favorite tool, and Cake's schema tools will
manage the changes for you.

In an ongoing effort to improve the flexibility of Cake's (minimalistic)
configuration, most of the constants in core.php have been migrated to
settings in the Configure class.  Check out the latest version of
core.phpand update your app's configuration accordingly.  To help you
identify the
settings that should be changed, friendly warning messages have been added
to point you in the right direction.

In addition to code, the docs team has been hard at work over the past few
months improving the documentation, and along with this release, we're now
ready to unveil the pre-beta version of the CakePHP 1.2 manual, at
http://tempdocs.cakephp.org/.  There are still many things missing, but if
you find any errors, please submit documentation tickets.

And last but certainly not least, significant work has done to lay the
foundation for full, PHP-native Unicode support in CakePHP. This means we do
not have to wait for PHP6 to make it possible to fully internationalize your
PHP application on any platform, independent of installed extensions.

With all these new features, we hope you agree that CakePHP 1.2 pre-beta was
worth the wait.  This will be the last release before the 1.2 API is fully
stabilized, and we can't wait for you to try it.

[1] Download 1.1.18.5850:
http://cakeforge.org/frs/?group_id=23&release_id=343
1.1.x.x change long: https://trac.cakephp.org/wiki/changelog/1.1.x.x

[2] Download 1.2.0.5875 pre-beta:
http://cakeforge.org/frs/?group_id=23&release_id=344
1.2.x.x change log: https://trac.cakephp.org/wiki/changelog/1.2.x.x

-- 
/**
* @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 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: Form manipulation

2007-10-17 Thread Larry E. Masters aka PhpNut
> I have indeed tested it. Adding fields isn't posible, but removing
> them is.


If this is true, I need to see a test case for this. You can not remove any
fields in the forms when using the SecurityComponent in combination with the
FormHelper methods. You can not alter the hidden fields or their values
either.

-- 
/**
* @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 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: Form manipulation

2007-10-17 Thread Larry E. Masters aka PhpNut
Have you tested that it is in fact possible to remove fields from a form
when using the SecurityComponent?

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On 10/16/07, 2000Man <[EMAIL PROTECTED]> wrote:
>
>
> Hi guys,
>
> I've been playing around with the Security-component, which is able to
> prevent forms to be manipulated (fields being added to the form). This
> works perfectly, but there is still another problem: by downloading
> and manipulating it isn't possible to add fields, but is is still
> possible to remove fields.
>
> This is a real problem, because when the field is removed, the
> Security-component doesn't detect this, but model::validates also
> doesn't, because the latter works the other way around: foreach of the
> fields of $model->data is makes sure  it validates. So what it doesn't
> do is check if all fields specified in model->validate  are really
> present.
>
> Is there a way to solve this problem using Cake's build-in
> functionality? Of course I can add this check to my
> Appmodel::validates, but I think this is something the framework
> should be able to do? Does anyone know how to prevent this problem?
>
>
> >
>

--~--~-~--~~~---~--~~
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: public function, but not action

2007-10-10 Thread Larry E. Masters aka PhpNut
stefanb,

I think you missing the point with this framework. If it is not protected or
private, then it is a public method that is accessible from the url. If it
is doing ay type of data logic place it in the model, what makes this
"public" method so special that it must be in your controller?

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/


On 10/10/07, stefanb <[EMAIL PROTECTED]> wrote:
>
>
> No, I did not try to access them via browser. I think you're missing
> my point.
> I don't want to use underscore on my public method, since I already
> use that convention on my protected methods.
> And this public method should be placed in the controller, not the
> model...
>

--~--~-~--~~~---~--~~
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: CSS Vendors folder (Cake 1.2, latest alpha)

2007-10-09 Thread Larry E. Masters aka PhpNut
Fran,

This will be supported soon with the new media view class that has ben added
to the 1.2 branch.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On 10/9/07, Fran Iglesias <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I'm trying to put some shared CSS into the vendors/css folder, but
> they are not loaded at all. All links echoed by $html->css() point to
> webroot. I'm not sure if I need to do something more.
>
> The server enviroment is:
>
> - PHP as CGI (Server API CGI/FastCGI)
> - Shared hosting
> - PHP 4.3.11
> - no mod_rewrite
> - no .htaccess
>
> Installation is located in a subfolder, as
>
> /html/cakeinstall/...
>
> with the default folder structure.
>
> After some research I found that env('SCRIPT_NAME') didn't work for
> me, but $_SERVER['SCRIPT_NAME'] worked fine (env bug? I'm not sure
> after reading source in the API). So I change app/config/core.php to
> define BASE_DIR with this value.
>
>
> --
> Fran Iglesias
> [EMAIL PROTECTED]
>
>
>
>
> >
>

--~--~-~--~~~---~--~~
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: Missing adodb.inc.php File?

2007-10-01 Thread Larry E. Masters aka PhpNut
That file is not part of the CakePHP core, it is part of the adodb
distribution. You must install this library in app/vendors

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On 10/1/07, Cory Dee <[EMAIL PROTECTED]> wrote:
>
>
> No one has ever experienced this before?
>
>
> >
>

--~--~-~--~~~---~--~~
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: Is this error related to PHP version?

2007-09-15 Thread Larry E. Masters aka PhpNut
If the code you pasted is the exact code you are using you are missing the
'>'.

Code should be:

if ($this->User->save($this->params['form'))

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On 9/15/07, CakeONaut <[EMAIL PROTECTED]> wrote:
>
>  Hi!
>
> I was using :
>
> if ($this-User->save($this->params['form'))
>
> and getting back
>
> Parse error: syntax error, unexpected T_OBJECT_OPERATOR in
> /home/hgi/public_html/tst/wwwroot/cake/app/controllers/users_controller.php
> on line 10
>
> My host is using a pre-5.0 version of PHP.  Is that my problem?  I'm
> thinking it is, and that I'll have to write some code to connect to the
> database and add records, etc..  If I must do this, I'm wondering if I
> should write a helper to do it and then I'll have to call it whenever I do
> changes to the database?
>
> Thanks for any input!
>

--~--~-~--~~~---~--~~
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: Why does this shitty Ggroups need 10 mins to post?

2007-09-15 Thread Larry E. Masters aka PhpNut
This is a proper forum for this group and has been since the beginning.

The topic has been beat to death about having a "forum" and I still have not
be convinced by anyone that a forum would be any better than this google
group, so my answer will be as it has in all the other threads discussing
one. No.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On 9/15/07, Danijel Kurinčič <[EMAIL PROTECTED]> wrote:
>
> but why not use a proper forum?

--~--~-~--~~~---~--~~
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: Fatal errors using bake

2007-09-12 Thread Larry E. Masters aka PhpNut
This is fixed in the latest branch.

You can also grab the nightly release to get the fix.
http://cakephp.org/downloads/index/nightly/1.1.x.x
-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On 9/12/07, quonn <[EMAIL PROTECTED]> wrote:
>
>
> Hi I have tried with Vertrigo but i got the same problem on a Windows
> Machine. Tomorrow i will check on my Linux Desktop if the same problem
> occurhowever i have tried every php executable i found on my PHP
> installationthe problem still occur.
>
> On Sep 3, 5:11 pm, red <[EMAIL PROTECTED]> wrote:
> > In the first attempt probably you haven't baked the Model first.
> > If you wan't to live 'stressless' use Vertrigo (http://
> > vertrigo.sourceforge.net/?lang=eng) instead of XAMPP. Small, fresh and
> > everything works perfect.
> >
> > On 3 Wrz, 16:37, mejpark <[EMAIL PROTECTED]> wrote:
> >
> > > I am developing my application on Windows PC running Vista Home Basic
> > > and the XAMPP framework (xampp-win32-1.6.3a.zip). I configuredbake
> > > according to this document "http://bakery.cakephp.org/articles/view/
> > > setting-up-eclipse-to-work-with-cake". I envokedbakefrom the PDT
> > > console, which produced:
> >
> > > Skel Directory:
> C:\xampp\htdocs\cake\cake\scripts\templates\skel
> > > Will be copied to:
> > > New App Directory: C:\xampp\htdocs\cake\app
> > >
> ---
> >
> > > Look okay? (y/n/q)
> > > [y] > n
> >
> > > I realised that I need to tellbakewhich project to work with, so I
> > > added "bake.php "${project_name:myproject}"" variable to the external
> > > tools configuration dialogue and made a second attempt tobakea
> > > controller:
> >
> > >Bake-app in C:\xampp\htdocs\cake\myproject (y/n)
> > > [y] > y
> >
> > > What would you like toBake? (M/V/C)
> > > > c
> >
> > > Enter a number from the list above, or type in the name of
> another
> > > controller.
> > > > Admins
> >
> > > Would you likebaketo build your controller interactively?
> > > Warning: Choosing no will overwrite  controller if it exist.
> (y/n)
> > > [y] > n
> >
> > > Would you like to include some basic class methods (index(),
> add(),
> > > view(), edit())? (y/n)
> > > [y] > y
> >
> > > Would you like to create the methods for admin routing? (y/n)
> > > [y] > n
> >
> > > Fatal error: Class 'Admin' not found in
> C:\xampp\htdocs\cake\cake
> > > \scripts\bake.php on line 1328
> >
> > > Windows dialogue box also pops up entitled "Microsoft Windows: CLI has
> > > stopped working, A problem caused the program to stop working
> > > correctly. Windows will close the program and notify you if a solution
> > > is available.". This person describes his solution to the problem
> > > "http://web2.0entrepreneur.com/31/cli-has-stopped-working-on-windows-
> > > vista.html". I deleted C:/xampp/php directory, downloaded latest pre-
> > > compiled binary version of PHP "http://uk.php.net/distributions/
> > > php-5.2.4-Win32.zip". I renamed "php.ini.recommended" to "php.ini"
> > > uncommented mysql and mysqli extensions, and tried again:
> >
> > >Bake-app in C:\xampp\htdocs\cake\myproject (y/n)
> > > [y] > y
> >
> > > What would you like toBake? (M/V/C)
> > > > c
> >
> > > Fatal error:Calltoundefinedfunctionmysql_connect() in C:\xampp
> > > \htdocs\cake\cake\libs\model\dbo\dbo_mysql.php on line 100
> >
> > > phpinfo() says that MySQL is enabled and cake can connect to the db.
> > > Everything is as sweet as pie apart from this issue and I'd appreciate
> > > any feedback to resolve this issue.
> >
> > > Many thanks,
> >
> > > Michael
>
>
> >
>

--~--~-~--~~~---~--~~
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 @ php|works

2007-09-12 Thread Larry E. Masters aka PhpNut
Felix,

When and where do you plan to have the meetup?

I am about 3 1/2 hours drive and might be able to make a trip to be there.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On 9/12/07, Felix Geisendörfer <[EMAIL PROTECTED]> wrote:
>
>  Hey folks,
>
> since php|works is beginning tomorrow I was wondering if we could have a
> little informal CakePHP meetup there if people would be interested. It would
> also be nice if some people could attend Paul M. Jones benchmarking talk as
> he is looking for feedback from developers using the frameworks that are
> represented (see http://paul-m-jones.com/blog/?p=256).
>
> Who's interested?
>
> -- Felix
> --
> My Blog: http://www.thinkingphp.org
> My Business: http://www.fg-webdesign.de
>

--~--~-~--~~~---~--~~
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: DBDesigner 4 Scaffold Tools for CakePHP - 1.0.0 FINAL

2007-09-08 Thread Larry E. Masters aka PhpNut
Mech7,

This might be useful.

http://sourceforge.net/projects/dbdesigner-fork/

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On 9/8/07, Mech7 <[EMAIL PROTECTED]> wrote:
>
>
> Will this work on MySQL workkbench too? I am no vista no on my laptop
> and DbDesigner does not work anymore on it, also there is no support
> for it anymore :(
>
> On Sep 8, 8:26 am, Dérico Filho <[EMAIL PROTECTED]> wrote:
> > Hello All,
> >
> > I just released the final version of DBDesigner 4 Scaffold Tools for
> > CakePHP 1.0.0. There was just a tiny bug found regarding the -app
> > parameter.
> >
> > I hope you guys enjoy it as much as I did.
> >
> > Currently I am working on the tutorial and perhaps a screencast,
> > afterwards I will look for CakePHP 1.2 support.
> >
> > You are welcome to download the final version
> athttp://www.cirello.org/dbdesigner2cake/download.html
> > orhttp://cakeforge.org/frs/?group_id=162.
> >
> > Any doubts please submit
> tohttp://groups.google.com/group/dbdesigner2cake.
> >
> > Bye
> >
> > Dérico Filho
>
>
> >
>

--~--~-~--~~~---~--~~
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: $_SERVER['HTTTP_REFERERR'] or $_SERVER['PHP_SELF'] in CAKE ?

2007-08-22 Thread Larry E. Masters aka PhpNut
http://api.cakephp.org/class_controller.html#e87c8e6edf53aadc511e3d050d71a494


-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On 8/22/07, xephex <[EMAIL PROTECTED]> wrote:
>
>
> On 22 Aug., 12:42, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > I have two controllers : slideshows and slides. One slideshow can have
> > many slides.
> >
> > I'm editing my slideshow that have for example 9 slides :
> >
> > (photoslideshows/edit/1).
> >
> > Near each slide i have action from other controller : slides/delete/id
> > so i can delete each photo from this slideshow.
> >
> > $html->link('Delete', "/slides/delete/".$slide['Photoslide']['id'],
> >   null,'Jestes pewien?') .'' ;
> >
> > In my slides controller i have action:
> > function delete($id)
> > {
> > $this->Photoslide->del($id);
> > $this->flash('Slide with id: '.$id.'deleted', '/photoslideshows/
> > slideshow_list');
> >
> > }
> >
> > After delete action i want to get back to my slideshow that i
> > currently editing not to slideshow_list of  all slideshows.
> >
> > How to do this? Please help.
> >
> > In PHP i use $_SERVER['HTTTP_REFERERR']  or $_SERVER['PHP_SELF'] . How
> > can i do this in CAKEPHP
>
> $_SERVER['PHP_SELF'] wont help you - this has nothing to do with
> referers.
> You can use $_SERVER['HTTP_REFERER']
> Or, you read the slides slideshow before deleting it. Then you delete
> it and then you can redirect to the slideshow you read.
>
>
> >
>

--~--~-~--~~~---~--~~
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: new "With" Associations in a HABTM

2007-08-20 Thread Larry E. Masters aka PhpNut
gwoo wrote that not me :)

The PDF you are referring to is upcoming features that may or may not have
been fully implemented


-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/


On 8/20/07, DLMax <[EMAIL PROTECTED]> wrote:
>
>
> If you read the PDF, written by phpnut, that doekie linked to, you see
> that no model has to be created for the join-table in the HABTM
> relation.
>
> You can get the HABTM to work like this:
> Post Model:
> 
> class Post extends AppModel {
> var $name='Post';
>
> var $hasAndBelongsToMany = array(
> 'Tag' => array('className' => 'Tag'));
>
> function beforeSave() {
> if(!empty($this->data['Tag'])) {
>   $this->PostTag->save($this->data['Tag']);
>  }
> }
> }
>
> Posts Controller:
>  class PostsController extends AppController {
>
> var $name = 'Posts';
> var $helpers = array('Html', 'Form' );
>
> function tags() {
> $this->set('tags', $this->Post->PostTag->findAll());
> }
> }
> ?>
> Tags view:
>  pr($tags);
> foreach ($tags as $tag) :
> echo $tag['Post']['title'];
> echo $tag['Tag']['name'];
> echo $tag['PostTag']['date'];
> endforeach;
> ?>
>
> You can access the date field from the posts_tags table right now, but
> the beforesafe errors on saving a post and the Post and Tag are not
> accessible from the view.
>
> Any further help would be appreciated !
>
> Thanks in advance,
>
> Max
>
> On 20 aug, 10:48, Marcin Domanski aka kabturek <[EMAIL PROTECTED]>
> wrote:
> > have you created the model ?
> >
> > On Aug 19, 5:04 pm, doekie <[EMAIL PROTECTED]> wrote:
> >
> > > In the OCPHP sheets (http://www.cakephp.org/files/OCPHP.pdf) there was
> > > an example of the use of the new "With" Associations in a HABTM. So it
> > > must be easy to get values out-of the join-table in CakePHP 1.2
> >
> > > var $hasAndBelongsToMany = array('Tag'=>
> > >
> array('className'=>'Tag','with'=>'TaggedPost'));
> >
> > > But i still getting errors like: No class found for the TaggedPost
> > > model...
> > > (The HABTM works without with (join-table-name: posts_tags))
> >
> > > Has somebody an example/explanation how it works?
>
>
> >
>

--~--~-~--~~~---~--~~
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: i18n and 1.1

2007-08-05 Thread Larry E. Masters aka PhpNut
Just use 1.2 if you plan to do something like this.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On 8/5/07, nitifixis <[EMAIL PROTECTED]> wrote:
>
>
> Can I "backport" the i18n.php and l10n.php 1.2 libs to 1.1 ?
>
> On Aug 5, 3:09 pm, francky06l <[EMAIL PROTECTED]> wrote:
> > you need 1.2
> >
> > On Aug 5, 3:03 pm, nitifixis <[EMAIL PROTECTED]> wrote:
> >
> > > Does CakePHP 1.1 have i18n support or do I need to use 1.2 for this ?
>
>
> >
>

--~--~-~--~~~---~--~~
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: Is this not a security issue?

2007-07-30 Thread Larry E. Masters aka PhpNut
No it is not...

http://api.cakephp.org/class_model.html#ebe42ae387be89985b5a35dd428f5c81

The third param in the save method is what you are looking for in 1.1 same
goes for 1.2 but version 1.2 also has the security class that does a little
more magic.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On 7/30/07, morecakepls <[EMAIL PROTECTED]> wrote:
>
>
> Hi
>
> What if my table is named User and there are three fields called
> Username, Password, Secretvalue. I present the user a form to change
> the username and password and use the $this->User->save($this->data)
> function in the controller to save the form data to the database.
>
> I managed to use firefox to create another input element for the
> Secretvalue and changed the Secretvalue in the User table. Is this not
> a serious security issue? How can I avoid this? Should I validate
> before saving data to the database?
>
> Thanks
> morecakepls
>
>
> >
>

--~--~-~--~~~---~--~~
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: I need to use frame works

2007-07-10 Thread Larry E. Masters aka PhpNut
On 7/10/07, kionae <[EMAIL PROTECTED]> wrote:

>
> There's no law that says that you absolutely must use a framework for
> PHP development nowadays... though it can simplify complex tasks for
> larger projects.


Maybe we should pass a law requiring it...



-- 
/**
* @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 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
-~--~~~~--~~--~--~---



The Last Alpha Cake

2007-07-09 Thread Larry E. Masters aka PhpNut
We have some new versions ready. As usual, 1.1.x.x branch gets a bug-fix
update, while 1.2.x.x branch sees some new features along with the
bug-fixes.

Major Changes:

AuthComponent:
The authorization methods have changed. To tell Auth what to do, set
$this->Auth->authorize in your beforeFilter. Possible values include, false,
controller, model, actions, crud. False will turn off authorization all
together and you will just be using the provided Authentication. This is
useful if you want to give every user the same access level. Setting
authorize to controller requires you controller to have an isAuthroized
method that returns true or false. If you set authorize to 'model' you will
set $this->Auth->objectModel to the object you wish to authorize against.
This object should have an isAuthorized method. You can also set authorize
to array('model'=>'objectToAuthorize') where objectToAuthorize is the name
of the object.  These three methods do not require the use of an Acl
component.

If you set authorize to actions or crud, Auth will requires you have the
AclComponent set in your controller's components array. You can use the core
Acl, with DB_ACL or INI_ACL, by setting the proper classname in core.php or
setting $this->Acl->name in the beforeFilter. DB_ACL is used by default. You
can also have your own component by setting Acl->name equal to the name of
you custom component or defining it in core.php. You custom component should
extend AclBase and have a check method that will receive an aro, aco, and
action.

EmailComponent:
SMTP has been added and you can now set the template and layout in the send
method.

Bake Console:
Templates have been added for views. You can create your own and place them
in /vendors/shells/templates/views. Check out the core ones to see what is
possible.
You can also quickly bake models with 'bake model Post'. For now this will
just output the class without validation or associations.

HtmlHelper:
radio method is deprecated in favor of FormHelper::radio

The rest of the changes to 1.2.x.x come in the form of bug fixes. The
1.2.x.x line of code is stabilizing and the next release will be beta. We
are going to have to work hard to get through all enhancements, and how soon
we can release beta will be based on how many tickets come in and the
complexity of the enhancements. This is where you can really help us out. We
are asking that any tickets for 1.2.x.x be submitted with tests. This
especially holds true for a class in the core that already has tests written
for it. Creating a test will help us find the problem faster and we can be
sure we duplicate your error. The test will also help you debug and create a
patch.

If you plan on upgrading to 1.2.0.5427alpha, please review all the past
release announcements. There is a lot of information in there to help you
understand the new features and changes that were made.

Download from CakeForge
1.1.16.5421: http://cakeforge.org/frs/?group_id=23&release_id=294
1.2.0.5427alpha: http://cakeforge.org/frs/?group_id=23&release_id=295

Read the Changelogs on Trac
1.1.16.5421: https://trac.cakephp.org/wiki/changelog/1.1.x.x
1.2.0.5427alpha: https://trac.cakephp.org/wiki/changelog/1.2.x.x

Happy Baking,

-- 
/**
* @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 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: cake, Ajax, and jquery

2007-07-08 Thread Larry E. Masters aka PhpNut
Excuse me?

I was responding to someone who was being ignorant to you. This was the
second post I have read from this user who used the type of language he did
in this post. That user was in no way affiliated with the project other than
being a user like yourself.

The goodbye was because I banned him from this list.

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/


On 7/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> I read the manual.  It is a shame that you guys don't spend as much
> time writing thorough documentation as you do cursing at people that
> ask questions, sorry I didn't really grasp how much is automatic and
> how much I need to do by setting the layout or ajax parameters.
>
> In the future, just don't respond, that would be just fine.
>
> I'm new to the open source work, what a bunch of elitist jerks, I hope
> all open-source developers are not like this.
>
> On Jul 8, 11:41 am, "Larry E. Masters aka PhpNut" <[EMAIL PROTECTED]>
> wrote:
> > On 7/8/07, sTb <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > First of all,please google or use the search funktion for you question
> > > in the futur!
> > > And please read the fucking manual! (
> > >http://manual.cakephp.org/chapter/controllers
> > > )
> >
> > Goodbye...
> >
> > --
> > /**
> > * @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 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: Undefined Variable Problem

2007-07-08 Thread Larry E. Masters aka PhpNut
change:
$product_id = $this->$data['Product']['id'];

to:
$product_id = $this->data['Product']['id'];


-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On 7/8/07, r557 <[EMAIL PROTECTED]> wrote:
>
>
> / view */
> 
>
>  method="post">
>
> hidden('Product/id')?>
>
> 
>
> image('sundaymorning_cover.jpg', array('class' =>
> 'product_img')); ?>
>
> 
>  - $ $product['Product']['price']?>
> Qty. 
> 
> submit('Add to Cart'); ?>
> 
> 
> 
>
> /*** stripped down controller ***/
>
>  class ShoppingCartsController extends AppController {
>
> function add($id = null) {
> if(empty($this->data)) {
>  $this-render();
>  }
>
> /* Line 12 */   $product_id = $this->$data['Product']['id'];
>
>  $product = $this->Product->find("product_id =
> '$product_id'");
>
>   $this->Session->write('Product', $product['Product']);
>
>   $this->redirect('/shopping_carts/show/');
>
>   }
>
>   }
>
>   i keep getting a syntax error: Notice: Undefined variable: data
> in C:\apache2triad\htdocs\sonsofmaxwell\som\app\controllers
> \shopping_carts_controller.php on line 12 Fatal error: Cannot access
> empty property in C:\apache2triad\htdocs\sonsofmaxwell\som\app
> \controllers\shopping_carts_controller.php on line 12.
>
>  anyone know why this error is being generated or perhaps what i'm
> doing wrong here?
>
>

--~--~-~--~~~---~--~~
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: cake, Ajax, and jquery

2007-07-08 Thread Larry E. Masters aka PhpNut
On 7/8/07, sTb <[EMAIL PROTECTED]> wrote:
>
>
> First of all,please google or use the search funktion for you question
> in the futur!
> And please read the fucking manual! (
> http://manual.cakephp.org/chapter/controllers
> )



Goodbye...




-- 
/**
* @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 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: Does cakephp support transaction now?

2007-07-08 Thread Larry E. Masters aka PhpNut
On 7/8/07, sTb <[EMAIL PROTECTED]> wrote:
>
>
> Read the fucking manuall!
> if you want to use more models in your application read
> http://manual.cakephp.org/chapter/models


This will be the first and only warning, let it happen again and I will ban
you.
There is no reason to use this language in the group.

-- 
/**
* @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 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: MIT license vs. CSFL license

2007-07-06 Thread Larry E. Masters aka PhpNut
CakePHP itself is released under the MIT license, and you can do anything
with it the license allows.

The CSFL is a license similar to the QT license which basically says you can
use the code as long as you release any modifications back so others can
benefit from them. You still retain copyright to the code you create, but
you have to give the same freedom you received by using the original code
back so others can use it too.

I see no problem with this.

The 2 licenses are completely separate from each other. There are times when
an application that was written by the Cake Software Foundation, Inc. may be
released under the CSFL but this is because we feel that since we are
writing the code and giving away this code, anyone who uses it should do the
same. You are always free to contact the foundation to discuss licensing, so
you could include code that is licensed under the CSFL, and release under a
different license. This is "OUR" way of protecting the code we spend
countless hours working on, CakePHP will always remain under the MIT license
though.

Welcome to the world of Open Source...


-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On 7/6/07, keymaster <[EMAIL PROTECTED]> wrote:
>
>
> I read posts related to this subject, but never saw these two licenses
> compared, to really bring out the differences.
>
> I'm trying to understand the practical differences between the MIT
> license and Cake Software Foundation (CSFL) license, and the
> implications for software developers who want to create software for
> sale, or use this code in apps they build and sell to clients.
>
> It sounds to me like the bottom line is:
>
> CSFL:
>
> Anything containing any code which is CSFL becomes CSFL itself, and
> can be freely redistributed by anyone who finds himself in posession
> of the code. That seems to mean a developer who uses any CSFL code in
> his app or product, has to know that anything he develops on top of
> that, can never be copyrighted as his own, and anyone can take and
> redistribute it.
>
> That does not sound so great for developers who want to protect their
> work.
>
> MIT:
>
> On the other hand, with the MIT license, there seem to be no
> restrictions whatsoever (other than showing the copyright in the
> code), and if you use MIT code in your software product or app you
> build for your client, you can still maintain copyright over the
> modifications you made (ie. add your own copyright to the code you
> write yourself), and thus protect your work.
>
> Is this accurate?
>

--~--~-~--~~~---~--~~
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 Pagination SQL Injection

2007-07-04 Thread Larry E. Masters aka PhpNut
It is not needed either


 dbo level when using these conventions.
>
> I'm sorry, I meant Sanitize::escape()
>
>   


It is not needed either, the core handles everything if you follow
conventions.


-- 
/**
* @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 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 Pagination SQL Injection

2007-07-03 Thread Larry E. Masters aka PhpNut
On 7/3/07, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]> wrote:
>
>
>FWIW, Sanitize::clean() is broken (the trim logic is totally
> breaking) leaving possibility for SQL errors. Sanitization is also not
> promoted in the community nor in source, IM*H*O.


Wanted to add a little more to this before I hit send.

Before you go spewing comments like the one above do a little research in
this framework. From the beginning security has been a primary focus of the
development. Over the course of 2 years I have had 2 reported exploits that
have been patched within hours of being reported.

Educate yourself a little before trying to inform others with false
statements like:

"Sanitization is also not promoted in the community nor in source, IM*H*O."



-- 
/**
* @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 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 Pagination SQL Injection

2007-07-03 Thread Larry E. Masters aka PhpNut
On 7/3/07, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]> wrote:

>
>FWIW, Sanitize::clean() is broken (the trim logic is totally
> breaking) leaving possibility for SQL errors. Sanitization is also not
> promoted in the community nor in source, IM*H*O.


Sanitize::clean() is not needed if you follow the correct conventions of the
framework. All sql in escaped at the dbo level when using these conventions.

And if you find a problem with anything in the core you are wasting your
time reporting it here, I have a trac site setup for reporting issues with
the core.


-- 
/**
* @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 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: cake PHP applications in real-world deployment

2007-06-18 Thread Larry E. Masters aka PhpNut
On 6/18/07, Jonathan Langevin <[EMAIL PROTECTED]> wrote:
>
> do you have any sources for that info? just curious, as the addons site
> has been in existence for quite awhile, i'd be surprised (as well as
> impressed) if it were truly based on cake


It is using CakePHP.

http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild

You can find it listed in the link above along with a link to the source
code.

Look for:
Firefox Add-ons: library of add-ons for Firefox. SVN Link here...




-- 
/**
* @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 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: Is the bakery source code broken?

2007-06-17 Thread Larry E. Masters aka PhpNut
The bakery uses the 1.2 branch of the code.
All of out sites are running on the latest svn co of the 1.2 branch. Do not
confuse it with the trunk code, which is merged after the branches have been
tested.

The nightly builds of 1.2.x.x are also from the same branch that the bakery
is using.

-- 
/**
* @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 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: Undefined Constant VALID_EMAIL assumed 'VALID_EMAIL'

2007-06-17 Thread Larry E. Masters aka PhpNut
> Apart from turning off notices, is there a solution to this.
> Everything seems to be working but I'd like to get to the bottom of
> why the error is occuring.
>

remove the quotes in your var $validate = array('email' => "VALID_EMAIL");

It should be:

var $validate = array('email' => VALID_EMAIL);

-- 
/**
* @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 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: New SecurityComponent & Blackhole

2007-05-27 Thread Larry E. Masters aka PhpNut
> But I would never have discovered this on my own...
> I don't have a single message telling me that thing is deprecated
> (which is usually the case !)


https://trac.cakephp.org/wiki/changelog/1.2.x.x

Read the first line:
NOTICE ALL DEPRECATED METHODS ARE REMOVED FROM THE CORE AS OF [4981]
REVISION!

https://trac.cakephp.org/changeset/4981 << This one too


-- 
/**
* @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 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: New SecurityComponent & Blackhole

2007-05-27 Thread Larry E. Masters aka PhpNut
Find the related methods in the FormHelper, $form-> in your view. Right now
you are using deprecated methods to build your forms using the HtmlHelper
$html->


-- 
/**
* @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 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 php5?

2007-05-26 Thread Larry E. Masters aka PhpNut
There is a roadmap for development:
https://trac.cakephp.org/roadmap

Right now it is scheduled for 3.0, I may move the php 5 version only to 2.0.
but it will remain as it is now till I decide what to do.

-- 
/**
* @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 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: Stripescape in 1.1.15.5144

2007-05-24 Thread Larry E. Masters aka PhpNut
Fixed yesterday in the core:

https://trac.cakephp.org/changeset/5163


-- 
/**
* @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 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: Changes to SecurityComponent - every form I submit gets blackholed

2007-05-23 Thread Larry E. Masters aka PhpNut
Mika,

If you are using hand-written forms you will need to follow the example
here: https://trac.cakephp.org/changeset/4978 to remove any fields that are
added by hand.

Note when the security component is used you should still use the
$form->create(); and the $form->submit(); if not your forms will not have
the expected hidden fields and will be considered invalid anyway.

Do you really like writing all the forms yourself or is there another reason
you are not using the helper?


-- 
/**
* @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 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
-~--~~~~--~~--~--~---



  1   2   3   4   >