behavior question

2007-03-02 Thread Zoltan

I'm trying to move some processing into a behavior.

What I've done so far is, create a file called placehelper.php (in the
model/behaviors dir) like:
class placehelperBehavior extends ModelBehavior
{

function setup(&$model, $config = array()) {

}

function stripText($text)
{
print 'text: ' . $text; // gives 'Object of class Place could 
not be
converted to string' error
}
...


My controller has something like:
$sName = $this->data['Place']['name'];
print '$sName: '. $sName. '';
$this->data['Place']['profile_url'] = $this->Place->stripText($sName);
die();

and the model is like:
class Place extends AppModel {

var $name = 'Place';
var $actsAs   = array('placehelper');
...

So right now it seems to get the data, but instead of just passing the
text field, it seems to be passing the whole places object (this is
what it seems if  I do a print_r on what is passed into  the stripText
method.

My question is, How do I pass data from the controller to the Model's
behaviors and then get it back?

Thanks, Zoltan


--~--~-~--~~~---~--~~
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 plugin for eclipse?

2007-03-02 Thread Langdon Stevenson

> I'm wondering what are we expecting from a CakePHP eclipse plugin?

Me personally?  I have a few ideas perhaps, but no idea what is possible.

I do like your suggestion of creating all of the required files for a 
controller (sounds like a cut down version of the bake script).

Other than that, perhaps some means of assisting with the development of 
unit testing?  This is still a weak point with me and is something that 
would improve my development process and output I am sure.

Regards,
Langdon

--~--~-~--~~~---~--~~
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 plugin for eclipse?

2007-03-02 Thread Mariano Iglesias

I'm wondering what are we expecting from a CakePHP eclipse plugin?

I mean you can easily create a new File New wizard by hooking plugin up to
the org.eclipse.ui.newWizards extension point and then implementing the
INewWizard interface to create for example wizards for: 

- New Controller (and the wizard could ask you to specify models it should
use, helpers etc., name your controller and create the appropriate file name
with its contents)

- New Model (following above guidelines)

- New Component (following above guidelines)

But other than that what do you have in mind?

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


--~--~-~--~~~---~--~~
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: Thesis ideas

2007-03-02 Thread Riky Kurniawan
This is my thesis built with cake

http://www.herowannabe.com/vyroo/

-- 

http://riky.kurniawan.us


On 3/3/07, Felix St. Bernard <[EMAIL PROTECTED]> wrote:
>
>
> I don't know how you guys feel about me asking this on this group but
> I'm at a loss. I'm looking for an undergrad thesis idea. I was wondering
> if anyone had any ideas. I ask here because my interests include web
> programming, php (and cakephp). I major in Informatica which in English
> may be more like Software and Information engineering. I also have a
> vested interest in business sciences(Business admin, accounting,
> business economics etc). Anyway I think I've said enough. Any suggestions?
>
> By the way, those of you who gripe because this is off topic, please
> know that I understand your gripe and don't need to be reminded. If you
> have suggestions for websites/resources that help with these sorts of
> decisions I would appreciate that more than someone's rants about things
> they can't really control.
>
> Thank you all in advance.
> FSB
>
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Thesis ideas

2007-03-02 Thread Felix St. Bernard

I don't know how you guys feel about me asking this on this group but 
I'm at a loss. I'm looking for an undergrad thesis idea. I was wondering 
if anyone had any ideas. I ask here because my interests include web 
programming, php (and cakephp). I major in Informatica which in English 
may be more like Software and Information engineering. I also have a 
vested interest in business sciences(Business admin, accounting, 
business economics etc). Anyway I think I've said enough. Any suggestions?

By the way, those of you who gripe because this is off topic, please 
know that I understand your gripe and don't need to be reminded. If you 
have suggestions for websites/resources that help with these sorts of 
decisions I would appreciate that more than someone's rants about things 
they can't really control.

Thank you all in advance.
FSB

--~--~-~--~~~---~--~~
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 plugin for eclipse?

2007-03-02 Thread Norm

I would love to see a eclipse plugin for cakephp! Never developed one
before but would be more than willing to play tester as needed. If you
want to get it going I'll try to help out best I can.


--~--~-~--~~~---~--~~
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 versus Symfony ?

2007-03-02 Thread Mariano Iglesias

Hahaha oh yeah, forgot about that one ;)

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de Dr. Tarique Sani
Enviado el: Sábado, 03 de Marzo de 2007 01:13 a.m.
Para: cake-php@googlegroups.com
Asunto: Re: CakePHP versus Symfony ?

CakePHP apps run without any modifications in Joomla and Drupal!!


--~--~-~--~~~---~--~~
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: So frustrated

2007-03-02 Thread Dr. Tarique Sani

On 3/3/07, John David Anderson (_psychic_) <[EMAIL PROTECTED]> wrote:
> Most of the current focus has been on the manual for CakePHP 1.2. A
> strong MVC section has been added, along with some stronger
> explanations of Cake-flavored MVC architecture. I'm about 40 pages

Nice to know that - can't there be some collaborative method to keep
adding to and refining the content

Also if people could see the work done till now they would perhaps not
crib so much!

Cheers
Tarique

P.S. I know that wiki failed ;)
-- 
=
PHP for E-Biz: http://sanisoft.com
Cheesecake-Photoblog: http://cheesecake-photoblog.org
=

--~--~-~--~~~---~--~~
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 versus Symfony ?

2007-03-02 Thread Dr. Tarique Sani

Learning curve of CakePHP is much more gentle despite whatever people
say about the documentation. (I first got distracted then bored trying
to follow the Askeet series)

CakePHP apps run without any modifications in Joomla and Drupal!!


Cheers
Tarique

On 3/3/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote:
>
>
>
>
> And it doesn't hurt to learn that big players like IBM and Firefox (among
> several others) have opted to use CakePHP for their own developments…
>
>
> -MI
>
> ---
>
>  Remember, smart coders answer ten questions for every question they ask.
>  So be smart, be cool, and share your knowledge.
>
>  BAKE ON!
>
>  blog: http://www.MarianoIglesias.com.ar
>
>  
>
>
> De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
> de Michael Rubanov
>  Enviado el: Viernes, 02 de Marzo de 2007 03:55 p.m.
>  Para: cake-php@googlegroups.com
>  Asunto: Re: CakePHP versus Symfony ?
>
>
>
>
>
> Could anyone point me to some significant differences between CakePHP
>  and Symfony ? Also I am familiar with Ruby on Rails, so any
>  similarities or differences there might also be usefull.
>
>
>
>  >
>


-- 
=
PHP for E-Biz: http://sanisoft.com
Cheesecake-Photoblog: http://cheesecake-photoblog.org
=

--~--~-~--~~~---~--~~
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: habtm loads associated data, but won't save...

2007-03-02 Thread Mariano Iglesias

Seems like googling this problem would've helped you out:

http://www.cricava.com/blogs/index.php?blog=6&title=something_to_consider_wh
en_saving_habtm_&more=1&c=1&tb=1&pb=1

Posted on December 10.

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de jyrgen
Enviado el: Viernes, 02 de Marzo de 2007 11:04 p.m.
Para: Cake PHP
Asunto: Re: habtm loads associated data, but won't save...

- If you want to process / save HABTM data, it might be neccessary
to place a parent model fake field *before* the related form fields --


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Index for aros_acos

2007-03-02 Thread mozart_ar

I am beginning to use ACL, and I have a doubt. I do not see index in
the table aros_acos for the fields aro_id and aco_id. It must not have
them?


--~--~-~--~~~---~--~~
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: habtm loads associated data, but won't save...

2007-03-02 Thread jyrgen

Sam, thanks for your hint,

but my last post says it all, and might keep others from
running into the same headache.

- If you want to process / save HABTM data, it might be neccessary
to place a parent model fake field *before* the related form fields --

regards,

jyrgen



--~--~-~--~~~---~--~~
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: habtm loads associated data, but won't save...

2007-03-02 Thread Samuel DeVore

can you paste the form view in http://bin.cakephp.org/  really it will
help and that is what the bin is for.

Sam D

On 3/2/07, jyrgen <[EMAIL PROTECTED]> wrote:
>
> it seems that the first POSTed Array is the first one in the form
> that is declared.
>
> i will try to set up a fake parent form tag in order to force the
> browser to post the parent model data first, i'll let you know...
>
> cheers, jyrgen
>
>
>
> >
>


-- 
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

--~--~-~--~~~---~--~~
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: habtm loads associated data, but won't save...

2007-03-02 Thread jyrgen


I issued this right after the  tag

hidden('Author/fake'); ?>

and succeeded--- by means of this the browser is
forced to create the parent model first.

thanks for your attention,

jyrgen




--~--~-~--~~~---~--~~
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: habtm loads associated data, but won't save...

2007-03-02 Thread jyrgen

it seems that the first POSTed Array is the first one in the form
that is declared.

i will try to set up a fake parent form tag in order to force the
browser to post the parent model data first, i'll let you know...

cheers, jyrgen



--~--~-~--~~~---~--~~
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: habtm loads associated data, but won't save...

2007-03-02 Thread jyrgen

I'm sure nobody wants to see my entire form here.

But you're right, i should have posted some code earlier.

ok, here is a dump of $this->data after saving with the submit
button in the bottom of the form :

Array
(
[skill] => Array
(
[skill] => Array
(
[0] => 1
[1] =>
[2] =>
[3] => 3
[4] =>
)

)

[Author] => Array
(
[somevalue1] => 2
 [edit_presets] => do_editpresets
[id] => 1
)

)



and this with the submit button on top of the form :
Array
(
[Author] => Array
(
[edit_presets] => do_editpresets
[somevalue] => 2
[id] => 1
)

[skill] => Array
(
[skill] => Array
(
[0] =>
[1] =>
[2] => 3
[3] =>
)

)

)


Does it have something to do with how browser set up POST vars ?

jyrgen



--~--~-~--~~~---~--~~
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: habtm loads associated data, but won't save...

2007-03-02 Thread Samuel DeVore

try posting some code, I suggest using http://bin.cakephp.org/  asking
this kind of question is like asking someone to fix a problem with a
car with out seeing the car, just because you said, 'my car won't
start, can you tell me what's wrong.'  now I'm not saying we will be
able to help you fix it, but it could be so many things without seeing
the car who knows.  put as much effort into asking the question as you
would like people to put in to help you answer it and you may get
further from people.

Sam D

On 3/2/07, jyrgen <[EMAIL PROTECTED]> wrote:
>
> I found out, that the placement of the  submit button in a form
> (nested tables) has an influence on which model is saved first !
>
> therefore, when the submit button is on the bottom of the page
> the associated model appears first in $this->data, which caused
> the save failure.
>
> this is truly bizarre. has anybody encountered a similar situation ??
>
> regards, jyrgen
>
>
> >
>


-- 
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

--~--~-~--~~~---~--~~
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: habtm loads associated data, but won't save...

2007-03-02 Thread jyrgen

I found out, that the placement of the  submit button in a form
(nested tables) has an influence on which model is saved first !

therefore, when the submit button is on the bottom of the page
the associated model appears first in $this->data, which caused
the save failure.

this is truly bizarre. has anybody encountered a similar situation ??

regards, jyrgen


--~--~-~--~~~---~--~~
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 plugin for eclipse?

2007-03-02 Thread Langdon Stevenson

> Langdon says:
>> I love Eclipse
> 
> Maybe I am missing something... What plugins are you using Langdon? Do
> you have code completion for php, html, javascript, and css?

Hi Cook

I just use the php plugin too.  The reason that I love Eclipse is the 
combination of Eclipse project organisation, Ant for builds, code 
control with SVN, CVS, and Perforce, database management with DDLUtils.

As a package it means that I (almost) have one unified development 
environment.  I save a change and the automatic build copies the changed 
code to my development server.  Or, I run a production build and the 
whole lot is transferred (even the database) to the production server 
with my ISP, including automatically changing config settings for the 
target server.

I prefer this approach to having multiple apps (like code editor, FTP 
client, PHPMyAdmin etc) and having to flip between them to get stuff 
done.  Also, getting settings right for things like osCommerce between 
dev, staging, and production is a huge pain.

Eclipse is not perfect, but it does 90% of what I want and need, which 
is better than any combination of tools I have come across.

Regards,
Langdon

--~--~-~--~~~---~--~~
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: habtm loads associated data, but won't save...

2007-03-02 Thread jyrgen

sorry for my impatience,

an associated model doesn't save data to the intermediate lookup
table.

what might be the reason for this ?

j.



--~--~-~--~~~---~--~~
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: habtm loads associated data, but won't save...

2007-03-02 Thread John David Anderson (_psychic_)


On Mar 2, 2007, at 4:46 PM, jyrgen wrote:

>
> ? anybody ?

Please don't bump an issue without making an effort to improve how  
you asked your original question.

-- John

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: habtm loads associated data, but won't save...

2007-03-02 Thread jyrgen

? anybody ?



--~--~-~--~~~---~--~~
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: So frustrated

2007-03-02 Thread John David Anderson (_psychic_)


On Mar 2, 2007, at 4:05 PM, phirschybar wrote:

>
> John,
>
> Thanks for taking the lead on the docs. How is it coming?

Terrible.

Just kidding.

Most of the current focus has been on the manual for CakePHP 1.2. A  
strong MVC section has been added, along with some stronger  
explanations of Cake-flavored MVC architecture. I'm about 40 pages  
in, though the progress has slowed because of work. Some code comment  
blocks have also been revised (core.php being a good example) as I've  
been going through things cleaning it up.

Could be better, could be worse. I work on it when I can.

You tell *me* how it's coming along.

-- John

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: So frustrated

2007-03-02 Thread phirschybar

John,

Thanks for taking the lead on the docs. How is it coming?

On Mar 2, 2:59 pm, "John David Anderson (_psychic_)"
<[EMAIL PROTECTED]> wrote:
> On Mar 2, 2007, at 11:54 AM, [EMAIL PROTECTED] wrote:
>
>
>
> > If you are going to continue developing with cakePHP get used to this.
> > I love cakePHP for a lot of things, but this community has some
> > terrible documentation.
>
> I'm not a community, actually, as I'm the only one working on the
> docs. Thanks for that, though.
>
> -- John


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



habtm loads associated data, but won't save...

2007-03-02 Thread jyrgen

hey there,

i'm stuck again and don't know where to look for the error causing
this. is there any useful entity that i can debug when an associated
model (habtm) doesn't create table rows in the lookup table ?

thanks a lot !

jyrgen


--~--~-~--~~~---~--~~
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 plugin for eclipse?

2007-03-02 Thread [EMAIL PROTECTED]

That sounds great, let us know when your finished making it! Seriously
now That would be nice to have, I don't think anyone has made one
yet. I have considered it, but I am very hesitant since the php
development in eclipse is not that great "yet". When I say "php
development" I am referring to php, html, javascript, and css. Yes
there are plugins for each of those, but none of them are great.

i just started using eclipse for php dev. I like eclipse as a whole
(since I also program in java), but so far i am not impressed with
eclipse as a php ide. Unfortunately, I cant find anything I like
better, so I'll stick it out for a while, maybe it will grow on me.

Langdon says:
> I love Eclipse

Maybe I am missing something... What plugins are you using Langdon? Do
you have code completion for php, html, javascript, and css?



cook


--~--~-~--~~~---~--~~
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 plugin for eclipse?

2007-03-02 Thread Joe Crawford

On 3/2/07, Michael Rubanov <[EMAIL PROTECTED]> wrote:
> Very interesting question.
>
> May be community could share an experience with other ide's ?
>
> Which one is best suited for cakephp ?
>
> I actually miss the code completion future for view dimension in
> eclipsephp...

I would be very interested in this as well. I know that it's possible
- In Aptana (another Eclipse distro) it has hooks for things like
jQuery and Prototype -- so it seems like it would be straightforward
to do the same for cake. Maybe there's a standard api information
format used?

I use EasyEclipse for PHP.

Joe
--
http://artlung.com/
805-857-3951

--~--~-~--~~~---~--~~
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 versus Symfony ?

2007-03-02 Thread Mariano Iglesias
And it doesn't hurt to learn that big players like IBM and Firefox (among
several others) have opted to use CakePHP for their own developments.

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar

  _  

De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de Michael Rubanov
Enviado el: Viernes, 02 de Marzo de 2007 03:55 p.m.
Para: cake-php@googlegroups.com
Asunto: Re: CakePHP versus Symfony ?

 

Could anyone point me to some significant differences between CakePHP
and Symfony ? Also I am familiar with Ruby on Rails, so any
similarities or differences there might also be usefull.




--~--~-~--~~~---~--~~
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 plugin for eclipse?

2007-03-02 Thread Langdon Stevenson

I love Eclipse, so it would be interesting to see an Eclipse plugin that 
enhanced/eased the Cake development process

Langdon

--~--~-~--~~~---~--~~
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 versus Symfony ?

2007-03-02 Thread Mariano Iglesias
* Symfony has configuration files, configuration files and also.. MORE
CONFIGURATION FILES!

 

* Symfony has dependencies on libraries which code is not managed by the
framework.

 

* Symfony has slower performance than CakePHP (as shown by benchmarks)

 

* CakePHP is far more flexible (IMHO) when having to deal with real-world
complex applications, while Symfony seems to be built to do just standard
web sites

 

* CakePHP has a bigger, more active community

 

Last but not least, Symfony is not as cool as CakePHP ;)

-MI



  _  

De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de Michael Rubanov
Enviado el: Viernes, 02 de Marzo de 2007 03:55 p.m.
Para: cake-php@googlegroups.com
Asunto: Re: CakePHP versus Symfony ?

 

Could anyone point me to some significant differences between CakePHP
and Symfony ? Also I am familiar with Ruby on Rails, so any
similarities or differences there might also be usefull.




--~--~-~--~~~---~--~~
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: ACL problem

2007-03-02 Thread Mariano Iglesias

Both Aro, Aco and Acl on CakePHP's builtin ACL are standard tables. Just add
them as models to your controller:

var $uses = array ('Aro', 'Aco');

And then use them as a regular model. If you are curious as to how they are
built, look into for example Aro at
cake/libs/controller/components/dbacl/models/aro.php and you'll see that it
is defined as:

class Aro extends AclNode

And cake/libs/controller/components/dbacl/models/acl_node.php is defined as:

class AclNode extends AppModel

So it is a regular model for you, so you can do stuff like:

$newAlias = 'New Alias for my ARO';

$conditions = array (
'Aro.alias' => 'my_aro'
);

$result = $this->Aro->find($conditions, null, null, 0);

if ($result !== false)
{
$this->Aro->id = $result['Aro']['id'];
$this->Aro->saveField('alias', $newAlias);
}

Remember, whatever is on CakePHP database can be modelized.

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de [EMAIL PROTECTED]
Enviado el: Viernes, 02 de Marzo de 2007 02:56 p.m.
Para: Cake PHP
Asunto: ACL problem

So. What happens when a user's username changes?  The new username
does not appear as a valid alias in the ARO table.  If I do a
check('newusername', 'someAco') it will return false.  I can't seem to
find a method to update the alias of an ARO object, or to copy the
permissions of one ARO to another.


--~--~-~--~~~---~--~~
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 plugin for eclipse?

2007-03-02 Thread Michael Rubanov
Very interesting question.

May be community could share an experience with other ide's ?

Which one is best suited for cakephp ?

I actually miss the code completion future for view dimension in
eclipsephp...

On 3/3/07, Trav <[EMAIL PROTECTED]> wrote:
>
>
> I have used cakephp for some personal projects and I develop eclipse
> plugins for my working job and I was wondering if anyone knew of a
> cakephp plugin for eclipse.
>
> I am familiar with the eclipse php plugin and it is very useful, but
> it would be nice to take it one step further.
>
>
> >
>
-- 
Best Regards,

Michael Rubanov.

--~--~-~--~~~---~--~~
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 apparently don't understand htaccess

2007-03-02 Thread Trav

My problem was that I am using subdirectories.  The following linked
help me configure cake appropriately.

http://www.chriscassell.net/log/2006/07/27/how_to_install_.html

On Feb 25, 10:07 pm, "Trav" <[EMAIL PROTECTED]> wrote:
> Here is my apache.conf entry:
>
> LoadModule rewrite_module modules/mod_rewrite.so
>
> ...
>
> Alias /cows "C:/projects/cows/app/webroot"
> 
> AllowOverride All
> Allow from all
> 
>
> And i have a a News controller so I can hit this url:
>
> http://localhost/cows/index.php?newsor 
> evenhttp://localhost/cows/index.php/news
> However, shouldn't I expect to hithttp://localhost/cows/news?  I get
> a 'Bad request' every time.  Any thoughts on what I am doing wrong?
>
> thanks,
> -Trav


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: include variables in phpcake

2007-03-02 Thread nate

The solution is to set your variables in the controller with $this-
>set().  In Cake 1.2 you can also use $this->set() in views.

On Mar 2, 4:17 pm, "jamiro" <[EMAIL PROTECTED]> wrote:
> hello, I need a solution to this problem,
> I have a file config.php:
>  
>
> I have a file page.thtml
> 
> 
>
> result:
> Notice: Undefined variable: x in /var/www/html/
>
> Also I test with :  vendor('config'); not work
>
> PS: Using include('config.php'); it works but there is no another
> solution? 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: implementing a drop-down/select box

2007-03-02 Thread edwardmolasses

sorry, nevermind, i found out it's HtmlHelper::selectTag


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



cakephp plugin for eclipse?

2007-03-02 Thread Trav

I have used cakephp for some personal projects and I develop eclipse
plugins for my working job and I was wondering if anyone knew of a
cakephp plugin for eclipse.

I am familiar with the eclipse php plugin and it is very useful, but
it would be nice to take it one step further.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



implementing a drop-down/select box

2007-03-02 Thread edwardmolasses

Hello,

I had a silly question, but i can't seem to find the answer in the
manual. I want to create a drop-down menu or select box in my form.
I'm using htmlhelper in my form and i'm not sure how to setup a drop-
down/select box when i'm using htmlhelper.

A sample of code from my form (the first few lines) is:

 formTag('/users/register') ?>
 Please fill out the form below to register an account.


 First Name:
 inputTag('User/first_name', array('size' =>
'40' )) ?>
 tagErrorMsg('User/first_name', 'first name is
invalid') ?>

Could anyone point to some instruction on how to add a similar input
for a drop-down/select box? Maybe a tutorial?

thanks,
andrew.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



include variables in phpcake

2007-03-02 Thread jamiro

hello, I need a solution to this problem,
I have a file config.php:
 

I have a file page.thtml



result:
Notice: Undefined variable: x in /var/www/html/

Also I test with :  vendor('config'); not work

PS: Using include('config.php'); it works but there is no another
solution? 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: Pass an array as a parameter

2007-03-02 Thread f.


Hi zipman

> but if I have $arr=array('key1'=>'value1','key2','value2')
> and I want to pass that as an argument of foo I cannot use the code
> above.

Why not do

http://localhost/cake/tests/foo/
some_string?key1=value1&key2=value2','main')> Click me 

In fact I have an app with drag and drop article sorting where I POST
the new order of items via AJAX and the url looks like:
/admin/articles/sort/2?sortlist[]=1&sortlist[]=11
then the receiving function admin_sort($id) in my articles controller
gets the id (of the category, in the example "2") and inside that
function I have access to my sortlist via:
$this->params['url']['sortlist']
(which turns out to be an array;)

greets,

frank


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: how to populate a second select-box by selecting a first with ajax ?

2007-03-02 Thread fredBH

i get it

Follow the LANGDON code,

On VIEW, the main SELECT:

selectTag('Animal/animal_type_id', $AnimalTypeArray,
$html->tagValue('Animal/anima_Typel_id'), array());?>

Where $animalTypeArray is a generatedList() in function add() in
controller

and

observeField('AnimalTypeAnimalId', array('frequency'
=> '1','url' => '/Animais/FindRace/', 'update' => 'box')); ?>
 

On CONTROLLERi put :

function FindRace() {
$this->set('raceArray', $this->Animal->Race-
>generateList(array('animal_type_id' =>$this->data['Animal']
['animal_type_id']),"nome ASC",null,"{n}.Race.id","{n}.Race.nome"));
}


So... ANOTHER VIEW the i have to create the template for the function
findRace( find_race.thtml )

selectTag('Animal/race_id', $racaArray, $html-
>tagValue('Animal/race_id'), array());?>


Thx For all
Bye

On 2 mar, 16:51, "fredBH" <[EMAIL PROTECTED]> wrote:
> oh god... i still can understand it...
>
> how is code int controller ?
>
> thx for u attetion
> :)
>
> On 17 fev, 03:57, Langdon Stevenson <[EMAIL PROTECTED]> wrote:
>
> > Hi NOSLOW
>
> > The most important part of the code that I use is pasted below.  It
> > comes from the view file
>
> > 1.
> > --
> > This bit renders the select tag that we want to monitor.  It's just a
> > standard select tag.
>
> >  >echo $html->selectTag(
> >  'Batch/lot_number_type',
> >  $lotNumberTypes,
> >  null,
> >  array(),
> >  array(),
> >  true
> >);
> > ?>
>
> > 2.
> > --
> > This is the target that the new select tag will go into:
>
> > 
>
> > 3.
> > --
> > This is the observer that watches for a change in the first select tag.
> >   When it sees a change it:
>
> > - Calls the 'url' listed below
> > - Which returns a rendered select tag
> >(that is just a regular Cake view with no layout)
> > - Updates the contents of div named 'box' with the returned select tag
>
> >  >echo $ajax->observeField(
> >  'BatchLotNumberType',
> >  array(
> >'frequency' => '1',
> >'url' => '/batches/get_lot_nos/',
> >'update' => 'box'
> >  )
> >);
> > ?>
>
> > --
>
> > Nate's approach that he posted a link to looks like it might be the
> > cleaner faster approach, but I haven't sat down and worked out exactly
> > how it works yet.
>
> > The above code works ok, and you can improve it with the various Options
> > that the ajax helper offers.
>
> > Hope that this is useful.
>
> > Regards,
> > Langdon
>
> > NOSLOW wrote:
> > > Langdon,
>
> > > Any chance that you can post some code snippets of the key pieces of
> > > the view and controller code? I plan on enhancing the UI of my web app
> > > with AJAX, but first I'm building the app without it. However, I may
> > > sneak in a preview of what that might look like as a teaser for my
> > > team members if it's fairly painless. I need to stay focused on the
> > > core development for now, so seeing actual code would be extremely
> > > helpful before I start playing with it.
>
> > > Thanks,
> > > NOSLOW


--~--~-~--~~~---~--~~
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: multi-page forms

2007-03-02 Thread fr3nch13

not sure, but you could always invofe the $this-
>requestAction('othercontroller/othermethod/param1');

On Mar 2, 8:48 am, "keymaster" <[EMAIL PROTECTED]> wrote:
> Had another look at the form wizard.
>
> Studying the code in more detail helped me understand what can be
> abstracted out of routine multi-page forms processing. It was a good
> exercise.
>
> For those interested, looks like the cake wizard would save the
> following code every step of the way:
>
> 1. Navigation
> 
>
> - your code doesn't have to check if the next or previous buttons were
> pressed, the wizard does this based on the name of the link
> ("previous" or "next").
>
> - your code doesn't have to figure out which action to call, as that
> is configured up front in "ways", when you init the wizard.
>
> - if you didn't have the wizard, each of your form actions would have
> to determine if the "Next" or "Previous" link was pressed, then
> redirect itself to the proper action.
>
> - Also, if you have multiple ways through your steps, the wizard
> handles those transparently to you, so you don't have to check at each
> step where to go next. For example, if the user is not registered, the
> wizard will know to first take him to the registration page, then to
> the login page to login, then back to the page which required login in
> the first place. (of course, in your validation routines you would
> have to change the "way" if you see the user is not logged in, I
> think).
>
> 2. Checking for the presence of data
> -
>
> - the wizard checks to see if there is form data submitted, and if
> not, calls the current action to redisplay the form with the error
> messages as appropriate.
>
> - if you didn't have the wizard, you would have to perform this check.
> Not much, but is one less thing to do.
>
> 3. Validation
> ---
>
> - the wizard calls the appropriate validation routines you supply each
> step of the way, and reinvokes the same action (which causes the
> associated view to be displayed) if there are errors.
>
> - if there are no errors, it invokes the action for the next step,
> according to the "ways" you defined at init time.
>
> - If you didn't have the wizard, you would have to call validate
> yourself (if you had multiple models involved, or custom validation).
> Again, not much, but something else your code doesn't have to do.
>
> 4. Accumulating and storing/ retrieving form data in Sessions
> -
>
> - after each step, the wizard takes care of storing and accumulating
> all the form field data in cake sessions, so you don't have to.
>
> - after reading and writing all the form variables to the session, the
> wizard updates everything into the regular cake format  
> $this->data['model']['field'] style (even though it is managing it
>
> underneath in sessions) so you can process it like usual cake
> programming (ie. both Save  validate will find the data).
>
> - by using sessions, it eliminates for you some of the data
> accumulation problems of BACK and FORWARD through the steps, and deals
> with the session variables transparently to you. Your code doesn't
> need to be concerned with sessions at all.
>
> - if you didn't have the wizard, you would have to manage the form
> data yourself in sessions, and update the $this->data['model']
> ['field'] yourself from the sessions before saving.
>
> 5. Clearing the session data at the end
> -
>
> - after the last step, the wizard clears the session data.
>
> - if you didn't have the wizard, you would have to do this yourself.
>
> NOTE: all the above is only from reading the code. I have not played
> with it yet, so please take all the above with a grain of salt, and
> verify everything for yourself.
>
> Question
> -
>
> One of the things I was not sure about - perhaps someone can clarify -
> the way the wizard invokes your action is:
>
> $this->controller->$fct();   // $fct() is the name of your action
>
> Does this mean you must put all the actions for that multi-page form
> into a single controller?
>
> What do you do if it makes more sense to have different steps of the
> form processed by different controllers?


--~--~-~--~~~---~--~~
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: othAuth component v0.5.2 and Stable: 1.1.12.4205 go it?

2007-03-02 Thread [EMAIL PROTECTED]

exellent..this helped

On Jan 16, 8:50 pm, "Petr Vytlačil" <[EMAIL PROTECTED]> wrote:
> Yes i had a space in some source. THX


--~--~-~--~~~---~--~~
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: So frustrated

2007-03-02 Thread John David Anderson (_psychic_)


On Mar 2, 2007, at 11:54 AM, [EMAIL PROTECTED] wrote:

>
> If you are going to continue developing with cakePHP get used to this.
> I love cakePHP for a lot of things, but this community has some
> terrible documentation.

I'm not a community, actually, as I'm the only one working on the  
docs. Thanks for that, though.

-- John

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Possible use CakePHP without DocumentRoot ?

2007-03-02 Thread [EMAIL PROTECTED]

It's possible to use cakephp without defining DocumentRoot in Apache
configuration file?

I'm asking because I have strange URL's like this:
http://localhost/cake/app/webroot/index.php/cake/product/add

This should be http://localhost/cake/index.php/product/add

P.S. and how to disable index.php in URL ?

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
-~--~~~~--~~--~--~---



Pure Flex

2007-03-02 Thread randomblink

Alrighty...

I am designing an app that is 100% flex on the client side.
The only HTML will be the Flex Holder Page...
EVERYTHING else will be Flex talking to AMFPHP through the Gateway and
CakePHP being the framework on the server-side.

I have printed out the CakePHP manual, the CakeAMFPHP manual, and I am
still rather lost...

Does anyone know of a good example of a CakePHP setup that doesn't use
Views?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: how to populate a second select-box by selecting a first with ajax ?

2007-03-02 Thread fredBH

oh god... i still can understand it...

how is code int controller ?

thx for u attetion
:)


On 17 fev, 03:57, Langdon Stevenson <[EMAIL PROTECTED]> wrote:
> Hi NOSLOW
>
> The most important part of the code that I use is pasted below.  It
> comes from the view file
>
> 1.
> --
> This bit renders the select tag that we want to monitor.  It's just a
> standard select tag.
>
> echo $html->selectTag(
>  'Batch/lot_number_type',
>  $lotNumberTypes,
>  null,
>  array(),
>  array(),
>  true
>);
> ?>
>
> 2.
> --
> This is the target that the new select tag will go into:
>
> 
>
> 3.
> --
> This is the observer that watches for a change in the first select tag.
>   When it sees a change it:
>
> - Calls the 'url' listed below
> - Which returns a rendered select tag
>(that is just a regular Cake view with no layout)
> - Updates the contents of div named 'box' with the returned select tag
>
> echo $ajax->observeField(
>  'BatchLotNumberType',
>  array(
>'frequency' => '1',
>'url' => '/batches/get_lot_nos/',
>'update' => 'box'
>  )
>);
> ?>
>
> --
>
> Nate's approach that he posted a link to looks like it might be the
> cleaner faster approach, but I haven't sat down and worked out exactly
> how it works yet.
>
> The above code works ok, and you can improve it with the various Options
> that the ajax helper offers.
>
> Hope that this is useful.
>
> Regards,
> Langdon
>
> NOSLOW wrote:
> > Langdon,
>
> > Any chance that you can post some code snippets of the key pieces of
> > the view and controller code? I plan on enhancing the UI of my web app
> > with AJAX, but first I'm building the app without it. However, I may
> > sneak in a preview of what that might look like as a teaser for my
> > team members if it's fairly painless. I need to stay focused on the
> > core development for now, so seeing actual code would be extremely
> > helpful before I start playing with it.
>
> > Thanks,
> > NOSLOW


--~--~-~--~~~---~--~~
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: So confused

2007-03-02 Thread Chris Hartjes

On 3/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> If you are going to continue developing with cakePHP get used to this.
> I love cakePHP for a lot of things, but this community has some
> terrible documentation.
>
>

What documentation in particular do you think is terrible?  Does this
also mean you are offering to  contribute some documentation that is
not-so-terrible?


-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

rallyhat.com - digital photo scavenger hunt
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
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: So confused

2007-03-02 Thread [EMAIL PROTECTED]

If you are going to continue developing with cakePHP get used to this.
I love cakePHP for a lot of things, but this community has some
terrible documentation.


skatona wrote:
> oh man, thank you.  I've been going crazy thinking that they wouldn't
> possibly let something like that slip by, so have been staring at each
> and every individual character in my code to see what I messed up.
> Over and over.
>
> Thanks a ton!
>
> On Mar 1, 2:30 pm, "bernardo" <[EMAIL PROTECTED]> wrote:
> > You are right. There is a bug in the code used in the screencast. I
> > think the problem is that edit.thtml is copied from add.thtml but
> > forget to include the line  hidden('Post/id'); ?> so
> > the id is not posted and the controller ends adding a new post. The
> > code in the manual is correct though.
> >
> > I wonder how nobody noticed this before...
> >
> > On Mar 1, 1:41 pm, "skatona" <[EMAIL PROTECTED]> wrote:
> >
> > > I must be losing it.
> >
> > > I'm a veteran php web developer and a friend said cakephp was awesome
> > > so I've checked it out and gone through a couple screencasts.  Am I
> > > crazy, or is the Blog Tutorial screencast wrong?  More specifically,
> > > the Edit functionality does NOT edit a post.  It merely Adds one.
> >
> > > Watch the screencast again.  You click Edit, it brings up the Title
> > > and Body textboxes with the information from that post, but when you
> > > edit it and save - it just creates a new post!  I thought Edit meant
> > > "change", not "give me the info so I can use it in another NEW post".
> >
> > > Someone please help me out here.
> >
> > > -Shaun


--~--~-~--~~~---~--~~
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: So confused

2007-03-02 Thread nate

Great, I'll take that as you voulenteering to fix it.  You can contact
the documentation lead at psychic at cakephp dot org.

On Mar 2, 1:54 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> If you are going to continue developing with cakePHP get used to this.
> I love cakePHP for a lot of things, but this community has some
> terrible documentation.
>
> skatona wrote:
> > oh man, thank you.  I've been going crazy thinking that they wouldn't
> > possibly let something like that slip by, so have been staring at each
> > and every individual character in my code to see what I messed up.
> > Over and over.
>
> > Thanks a ton!
>
> > On Mar 1, 2:30 pm, "bernardo" <[EMAIL PROTECTED]> wrote:
> > > You are right. There is a bug in the code used in the screencast. I
> > > think the problem is that edit.thtml is copied from add.thtml but
> > > forget to include the line  hidden('Post/id'); ?> so
> > > the id is not posted and the controller ends adding a new post. The
> > > code in the manual is correct though.
>
> > > I wonder how nobody noticed this before...
>
> > > On Mar 1, 1:41 pm, "skatona" <[EMAIL PROTECTED]> wrote:
>
> > > > I must be losing it.
>
> > > > I'm a veteran php web developer and a friend said cakephp was awesome
> > > > so I've checked it out and gone through a couple screencasts.  Am I
> > > > crazy, or is the Blog Tutorial screencast wrong?  More specifically,
> > > > the Edit functionality does NOT edit a post.  It merely Adds one.
>
> > > > Watch the screencast again.  You click Edit, it brings up the Title
> > > > and Body textboxes with the information from that post, but when you
> > > > edit it and save - it just creates a new post!  I thought Edit meant
> > > > "change", not "give me the info so I can use it in another NEW post".
>
> > > > Someone please help me out here.
>
> > > > -Shaun


--~--~-~--~~~---~--~~
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 versus Symfony ?

2007-03-02 Thread Mech7

>From what i read you only need PEAR on your development server.Also
the documentation seems to be a bit better with symfony, they have a
book that is also availalbe online for free and a tutorial where the
build a real world application: http://askeet.com/

Personally i never got PEAR cli working correctly with XAMPP so i just
gave up and went with learning CakePHP as Cake and Symfony both seem
like very good frameworks :)

On Mar 2, 7:54 pm, "Michael Rubanov" <[EMAIL PROTECTED]> wrote:
> Pear dependency :|
>
> On 3/2/07, surfivor <[EMAIL PROTECTED]> wrote:
>
>
>
> > Could anyone point me to some significant differences between CakePHP
> > and Symfony ? Also I am familiar with Ruby on Rails, so any
> > similarities or differences there might also be usefull.
>
> --
> Best Regards,
>
> Michael Rubanov.
> ##  ICQ 7299656  ##


--~--~-~--~~~---~--~~
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: Extending model

2007-03-02 Thread Zoltan

Thanks, I think this is just what I'm looking for. BTW: these docs are
very helpful.

On Mar 2, 12:40 pm, "jitka" <[EMAIL PROTECTED]> wrote:
> Hi Zoltan,
>
> if You're using CakePHP 1.2 already, then behavior is right place imo.
> Behavior is for Model just like Component for Controller, with one
> useful exception: it uses more callbacks ;)
>
> http://docs.cakephp.nu/classes/show/ModelBehavior


--~--~-~--~~~---~--~~
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 versus Symfony ?

2007-03-02 Thread Michael Rubanov
Pear dependency :|

On 3/2/07, surfivor <[EMAIL PROTECTED]> wrote:
>
>
>
> Could anyone point me to some significant differences between CakePHP
> and Symfony ? Also I am familiar with Ruby on Rails, so any
> similarities or differences there might also be usefull.
>
>
> >
>


-- 
Best Regards,

Michael Rubanov.
##  ICQ 7299656  ##

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



sessions problem

2007-03-02 Thread jamiro

hi ,
I have a problem in the handling of sessions, my configuration in
core.php is:
define('CAKE_SESSION_SAVE', 'php');
define('CAKE_SECURITY', 'medium');
now my problem is when refresh the page (or change the page), my
session id changes and I cannot read the stored thing previously:

here an example of my situation:

 file: a_controller.php
 function index($id=1) {
 $this->Session- write('estandar', $id);
}
file: b_controller.php
 function index() {
 $estandarSession=$this->Session- read('estandar');
}
$estandarSession receives nothing... some suggestion? thanks

sorry for my terrible english ...


--~--~-~--~~~---~--~~
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 versus Symfony ?

2007-03-02 Thread hydra12

This post has some info that might help you:
http://snook.ca/archives/php/symfony_1_0_released/

hydra12

On Mar 2, 1:02 pm, "Christian Winther [cwi.dk]" <[EMAIL PROTECTED]>
wrote:
> Did you even bother to search the group or google before asking ?.
>
> -Original Message-
> From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
>
> Of surfivor
> Sent: 2. marts 2007 19:39
> To: Cake PHP
> Subject: CakePHP versus Symfony ?
>
>  Could anyone point me to some significant differences between CakePHP
> and Symfony ? Also I am familiar with Ruby on Rails, so any
> similarities or differences there might also be usefull.


--~--~-~--~~~---~--~~
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 versus Symfony ?

2007-03-02 Thread Christian Winther [cwi.dk]

Did you even bother to search the group or google before asking ?.

-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of surfivor
Sent: 2. marts 2007 19:39
To: Cake PHP
Subject: CakePHP versus Symfony ?



 Could anyone point me to some significant differences between CakePHP
and Symfony ? Also I am familiar with Ruby on Rails, so any
similarities or differences there might also be usefull.




--~--~-~--~~~---~--~~
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: Pass an array as a parameter

2007-03-02 Thread zipman

No, that's not what I mean.

I don't want to get the arguments in the function body.
My problem is how to call the function.

If the argument was just a string

I could write



http://localhost/cake/tests/foo/
some_string','main')> Click me 

(update_div is a javascript function to change innerHtml of div wiith
the given id(main above))

but if I have $arr=array('key1'=>'value1','key2','value2')
and I want to pass that as an argument of foo I cannot use the code
above.


So I am asking if there is any way I can do that.
Even how to explicitly call somehow test_controller->foo($array)
in a view template


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



CakePHP versus Symfony ?

2007-03-02 Thread surfivor


 Could anyone point me to some significant differences between CakePHP
and Symfony ? Also I am familiar with Ruby on Rails, so any
similarities or differences there might also be usefull.


--~--~-~--~~~---~--~~
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: Turn off all http headers

2007-03-02 Thread floepi

Ahh actually when i compared the two files in a Hexeditor i found a
newline character which is somewhere created in my cake code.

Will try to hunt it down and hopefully make that work...

Cheers



On Mar 2, 6:32 pm, "floepi" <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> sorry to be not very clear about it. Yes a whole bunch of headers are
> always sent but from my understanding the excel stream gets confused
> with the Cake Session cookie. I ran the php script to create the Excel
> file as a standalone and then in cake. The standalone works well, the
> one in cake can't be opened in Excel due to a formatting error.
>
> The only difference between the two is in the headers. The cake one
> has an additional Session cookie set.
>
> So i assume that is what is causing the problem. Maybe i can
> deactivate that for a layout or something
>
> Cheers
>
> Phil
>
> On Mar 2, 6:03 pm, Felix Geisendörfer <[EMAIL PROTECTED]> wrote:
>
> > > Maybe I'm an idiot,
>
> > Well ... just kidding - I love your stuff ; ). But what I doubt is that
> > the header that phil copied was sent by CakePHP:> GET 
> > /userAdmin/reports/createExcel HTTP/1.1
> > > Host: useradmin.dev.web.mpc.local
> > > User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1) Gecko/
> > > 20061010 Firefox/2.0
> > > Accept: text/xml,application/xml,application/xhtml+xml,text/
> > > html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> > > Accept-Language: en-gb,en;q=0.5
> > > Accept-Encoding: gzip,deflate
> > > Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> > > Keep-Alive: 300
> > > Connection: keep-alive
> > > Cookie: CAKEPHP=ntn92a5u894e0lvnn7bgi8k1a4
>
> > To me this is something that "Mozilla/5.0 (X11; U; Linux i686; en-GB;
> > rv:1.8.1) Gecko/20061010 Firefox/2.0" would send to a server, but not
> > CakePHP to a client ; ). You probably copied the GET request instead of
> > the response one.
>
> > Anyway, what you (phil) probably need is to either overwrite the
> > 'Content-type' header or to send us some more information about the
> > excel stream format and if you get any error messages or something.
>
> > -- Felix
> > --http://www.thinkingphp.orghttp://www.fg-webdesign.de
>
> > Chris Hartjes wrote:
> > > On 3/2/07, floepi <[EMAIL PROTECTED]> wrote:
>
> > >> are breaking the export when i use the normal send excel stream
> > >> option. Does anyone know how i can easily turn the http headers of for
> > >> a layout??
>
> > >> Thanks
>
> > >> Phil
>
> > > Maybe I'm an idiot, but won't ANYTHING that is served up by a web
> > > server have http headers attached to it?  Cake uses headers for
> > > sessions, so that would break Cake for sure, wouldn't it?


--~--~-~--~~~---~--~~
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: Ajax->editor Not Taking Options?

2007-03-02 Thread [EMAIL PROTECTED]

OK, I see what has happened.  I have v1.7.0 of the script.aculo.us
library and and the Ajax helper has not been updated to allow for new
options like submitOnBlur.  I modified my ajax.php helper to allow the
new options i wanted to use and all is well.

Carry on. Nothing to see here.

On Mar 2, 11:43 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hey all,
>
> I'm fairly new to cake and have no previous experience with ajax, but
> I am trying to implement an edit-in-place field. So I have:
> 
> id']);
> 
> When I click on the username field, the text turns into an input box.
> However, it's not the right size, and I don't want the OK button and
> Cancel link to show up - I'd like the update to occur on blur (i.e.  href="http://script.aculo.us/current/test/functional/
> ajax_inplaceeditor_test.html">demo).  So, I tried passing various
> things like 'submitOnBlur' => true --
> echo $ajax->editor('username_' . $user['User']['id'], '/' . $this->name 
> . '/ajax_edit_username/' . $user['User']['id'],
>
> array('submitOnBlur' => true);
>
> Nothing that I put in the options array shows up when the page loads,
> however.  When I look at the source of the index, the script for the
> editor is still there and still works, but none of the options appear
> in the HTML.  Any ideas?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Turn off all http headers

2007-03-02 Thread floepi

Hi all,

sorry to be not very clear about it. Yes a whole bunch of headers are
always sent but from my understanding the excel stream gets confused
with the Cake Session cookie. I ran the php script to create the Excel
file as a standalone and then in cake. The standalone works well, the
one in cake can't be opened in Excel due to a formatting error.

The only difference between the two is in the headers. The cake one
has an additional Session cookie set.

So i assume that is what is causing the problem. Maybe i can
deactivate that for a layout or something

Cheers

Phil

On Mar 2, 6:03 pm, Felix Geisendörfer <[EMAIL PROTECTED]> wrote:
> > Maybe I'm an idiot,
>
> Well ... just kidding - I love your stuff ; ). But what I doubt is that
> the header that phil copied was sent by CakePHP:> GET 
> /userAdmin/reports/createExcel HTTP/1.1
> > Host: useradmin.dev.web.mpc.local
> > User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1) Gecko/
> > 20061010 Firefox/2.0
> > Accept: text/xml,application/xml,application/xhtml+xml,text/
> > html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> > Accept-Language: en-gb,en;q=0.5
> > Accept-Encoding: gzip,deflate
> > Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> > Keep-Alive: 300
> > Connection: keep-alive
> > Cookie: CAKEPHP=ntn92a5u894e0lvnn7bgi8k1a4
>
> To me this is something that "Mozilla/5.0 (X11; U; Linux i686; en-GB;
> rv:1.8.1) Gecko/20061010 Firefox/2.0" would send to a server, but not
> CakePHP to a client ; ). You probably copied the GET request instead of
> the response one.
>
> Anyway, what you (phil) probably need is to either overwrite the
> 'Content-type' header or to send us some more information about the
> excel stream format and if you get any error messages or something.
>
> -- Felix
> --http://www.thinkingphp.orghttp://www.fg-webdesign.de
>
> Chris Hartjes wrote:
> > On 3/2/07, floepi <[EMAIL PROTECTED]> wrote:
>
> >> are breaking the export when i use the normal send excel stream
> >> option. Does anyone know how i can easily turn the http headers of for
> >> a layout??
>
> >> Thanks
>
> >> Phil
>
> > Maybe I'm an idiot, but won't ANYTHING that is served up by a web
> > server have http headers attached to it?  Cake uses headers for
> > sessions, so that would break Cake for sure, wouldn't it?


--~--~-~--~~~---~--~~
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: Cache an object, not a view

2007-03-02 Thread phirschybar

Where would those first 2 functions go, ideally? In
app_controller.php? Still getting feet warm with cake. Thanks.

On Mar 2, 12:50 pm, "Mandy" <[EMAIL PROTECTED]> wrote:
> http://mandysingh.blogspot.com/2007/02/caching-with-cakephp.html
>
> On Mar 2, 3:32 pm, "phirschybar" <[EMAIL PROTECTED]> wrote:
>
> > well gee. There you have it ;). Thanks.
>
> > On Mar 1, 11:03 pm, "Grant Cox" <[EMAIL PROTECTED]> wrote:
>
> > >http://bakery.cakephp.org/articles/view/249
>
> > > phirschybar wrote:
> > > > I see lots of info on caching views in the manual but I am wondering
> > > > of I can cache an object as easily. Just a simple array of data so
> > > > that I do not have to hit the DB on every page.- Hide quoted text -
>
> > - Show quoted text -


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Installing Cake on 1 subdomain with .htaccess, not multiple instances of apps

2007-03-02 Thread [EMAIL PROTECTED]

Thanks a lot for your help!  I've been frustrated with this all week!
Unfortunately, this didn't work.  I assume its because I followed one
of these instructions wrong, so to clarify:

> Try this - first, make a cake folder inside your root folder and put cake in 
> it (app, cake, etc).

When you say 'root' here you mean the root for all web activities
right? ('public_html' as opposed to /root?)

> Now put your app in it's own folder in the root (dev, in your case).

When you say put my app in it's own folder, does this mean the 'app/'
folder or just the webroot folder?  Wouldn't the first option create a
duplicate app folder different from the one in the first step?

> Now your root should have something like the following:wp-admin, wp-content, 
> wp-includes, cake, dev.

OK!  This is definitely the case.

In fact the whole thing, just to be clear looks like this
public_html/
   wp-admin
   wp-content
   wp-includes
   cake
  app/
  cake/
  docs/
  vendors/
   dev/
   webroot/

Does that look right?

> In your dev folder, in webroot, edit your index.php file.  Change this line:
>  define('CAKE_CORE_INCLUDE_PATH', ROOT.DS);
> to look like this:
>  define('CAKE_CORE_INCLUDE PATH', ROOT.DS.'cake');

Yup. Did this.

> Now you can browse tohttp://yourdomain/devand see your app without
> having to alter your .htaccess rules.  If you want to add a new app,
> make a new folder in your root, put your app in, and edit it's webroot/
> index.php file.

At this point I'm just getting this:
Warning: main(cake/basics.php): failed to open stream: No such file or
directory in /home/tropedc/public_html/dev/index.php on line 54


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



ACL problem

2007-03-02 Thread [EMAIL PROTECTED]

I am starting to implement security through ACL, and I have a
problem... perhaps I have structured things improperly, but I don't
think so.

I have an ARO for each user (and for each group).  The
aros.foreign_key corresponds with users.id and aros.alias corresponds
to user.username.  When I need to do a check(), I check based on the
alias, since that is known through the current session as ['User']
['username'].

So. What happens when a user's username changes?  The new username
does not appear as a valid alias in the ARO table.  If I do a
check('newusername', 'someAco') it will return false.  I can't seem to
find a method to update the alias of an ARO object, or to copy the
permissions of one ARO to another.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Ajax->editor Not Taking Options?

2007-03-02 Thread [EMAIL PROTECTED]

Hey all,

I'm fairly new to cake and have no previous experience with ajax, but
I am trying to implement an edit-in-place field. So I have:

id']);

When I click on the username field, the text turns into an input box.
However, it's not the right size, and I don't want the OK button and
Cancel link to show up - I'd like the update to occur on blur (i.e. http://script.aculo.us/current/test/functional/
ajax_inplaceeditor_test.html">demo).  So, I tried passing various
things like 'submitOnBlur' => true --
echo $ajax->editor('username_' . $user['User']['id'], '/' . $this-
>name . '/ajax_edit_username/' . $user['User']['id'],
array('submitOnBlur' => true);

Nothing that I put in the options array shows up when the page loads,
however.  When I look at the source of the index, the script for the
editor is still there and still works, but none of the options appear
in the HTML.  Any ideas?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Email Component and UTF8 Subject

2007-03-02 Thread nateklaiber

Cake 1.2 has a new email component, I believe that is what he is
referring to.

On Mar 2, 10:44 am, "bernardo" <[EMAIL PROTECTED]> wrote:
> What component?
> The one that uses the phpmailer library handles encoding of the
> headers fine.
> Also note that by calling  utf8_decode you are converting your subject
> to iso8859-1, so not only would you lose the characters that cannot be
> converted but you would still need to appropriately encode the
> header!
>
> On Mar 2, 10:46 am, "Alex" <[EMAIL PROTECTED]> wrote:
>
> > Maybe I'm wrong but I think the Email Component doesn't handle UTF8
> > subjects correctly. I have to wrap a utf8_decode() around my subject
> > to send it correctly.
> > Maybe the setting $this->Email->charset = 'utf-8' only impacts the
> > text to be send?
>
> > Greetings from Brasil,
> > Alex


--~--~-~--~~~---~--~~
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: Pass an array as a parameter

2007-03-02 Thread Christian Winther [cwi.dk]

Debug( func_get_args() )  would probadly output array( 0 => lala, 1 => id ) 

Not sure if that's what you want

-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of zipman
Sent: 2. marts 2007 14:38
To: Cake PHP
Subject: Pass an array as a parameter


Hello,

is there any way that I can call a function through url and pass an
array as a parameter?

For example

if I have a function in my test controller
function lala($id)
{
}

I can call it through /tests/lala/id

but if
function foo($array)
{
}

where $array is an array

how can I call a controller function from a view and pass an array as
a parameter?

I have a view where I have a button and I have connected the onclick
event
with calling that function.

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: Multiple file upload ?

2007-03-02 Thread Christian Winther [cwi.dk]

iF you just need a simple 'plain old multi upload' feature, just do:


And then debug( $this->data['Upload'] );  in your controller show contain an
array of file info (tmp path ect)

-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Mech7
Sent: 2. marts 2007 17:28
To: Cake PHP
Subject: Multiple file upload ?


Is there a explanation or tutorial anywhere which explains how to do
multiple file uploads and store the name in the database?

I have found this: http://thinkingphp.org/demos/cake-timer/
but it looks a little complicated and uses a perl script :(




--~--~-~--~~~---~--~~
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: spreadsheet_excel_writer and cakephp

2007-03-02 Thread Christian Winther [cwi.dk]

Debug = 0

-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of floepi
Sent: 2. marts 2007 17:40
To: Cake PHP
Subject: Re: spreadsheet_excel_writer and cakephp


I have the same problem but i think it comes down to the little
annotation in cake which displays how long it took.



or something. Does anyone now how to turn that off ?

Cheers

Phil



On Jan 5, 2:12 am, "roman_coder" <[EMAIL PROTECTED]> wrote:
> Here is some code.  I also have the path topearin the vendors
> directory in my include path.
> .;C:\Program Files\xampp\htdocs\mem\vendors\Pear
>
> Call from within view:
>
>  vendor('Pear\Spreadsheet\Excel\Writer');
>
> $workbook = new Spreadsheet_Excel_Writer();
> $worksheet =& $workbook->addWorksheet();
>
> //Set Column Zoom to 75%
> $worksheet->setZoom(75);
>
> //Set Column Sizes
> $worksheet->setColumn(0,0,4.43);
>
> // Create a format for Titles
> $titleFormat =& $workbook->addFormat();
> $titleFormat->setBold();
> $titleFormat->setSize('14');
>
> $worksheet->write(0,1,'Events Details - Trust and
> Safety',$titleFormat);
> $workbook->send('ListVie1w.xls');
> $workbook->close();
> ?>
>
> Code from call outside of Cake:
> require_once 'Spreadsheet/Excel/Writer.php';
>
>  $workbook = new Spreadsheet_Excel_Writer();
> $worksheet =& $workbook->addWorksheet();
>
> //Set Column Zoom to 75%
> $worksheet->setZoom(75);
>
> //Set Column Sizes
> $worksheet->setColumn(0,0,4.43);
>
> // Create a format for Titles
> $titleFormat =& $workbook->addFormat();
> $titleFormat->setBold();
> $titleFormat->setSize('14');
>
> $worksheet->write(0,1,'Events Details - Trust and
> Safety',$titleFormat);
> $workbook->send('ListView.xls');
> $workbook->close();
> ?>




--~--~-~--~~~---~--~~
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: Extending model

2007-03-02 Thread Christian Winther [cwi.dk]

And its singleton ;)

-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of jitka
Sent: 2. marts 2007 18:41
To: Cake PHP
Subject: Re: Extending model


Hi Zoltan,

if You're using CakePHP 1.2 already, then behavior is right place imo.
Behavior is for Model just like Component for Controller, with one
useful exception: it uses more callbacks ;)

http://docs.cakephp.nu/classes/show/ModelBehavior




--~--~-~--~~~---~--~~
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: Turn off all http headers

2007-03-02 Thread Felix Geisendörfer
>
> Maybe I'm an idiot, 
Well ... just kidding - I love your stuff ; ). But what I doubt is that 
the header that phil copied was sent by CakePHP:
> GET /userAdmin/reports/createExcel HTTP/1.1
> Host: useradmin.dev.web.mpc.local
> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1) Gecko/
> 20061010 Firefox/2.0
> Accept: text/xml,application/xml,application/xhtml+xml,text/
> html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> Accept-Language: en-gb,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Cookie: CAKEPHP=ntn92a5u894e0lvnn7bgi8k1a4
To me this is something that "Mozilla/5.0 (X11; U; Linux i686; en-GB; 
rv:1.8.1) Gecko/20061010 Firefox/2.0" would send to a server, but not 
CakePHP to a client ; ). You probably copied the GET request instead of 
the response one.

Anyway, what you (phil) probably need is to either overwrite the 
'Content-type' header or to send us some more information about the 
excel stream format and if you get any error messages or something.

-- Felix
--
http://www.thinkingphp.org
http://www.fg-webdesign.de


Chris Hartjes wrote:
> On 3/2/07, floepi <[EMAIL PROTECTED]> wrote:
>   
>> are breaking the export when i use the normal send excel stream
>> option. Does anyone know how i can easily turn the http headers of for
>> a layout??
>>
>> Thanks
>>
>> Phil
>> 
>
> Maybe I'm an idiot, but won't ANYTHING that is served up by a web
> server have http headers attached to it?  Cake uses headers for
> sessions, so that would break Cake for sure, wouldn't it?
>
>
>   

--~--~-~--~~~---~--~~
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: Extending model

2007-03-02 Thread jitka

(continuing)

Also: there is quite new method 
http://docs.cakephp.nu/classes/show/Model#isUnique
;)

So: imaginary method UniqueUrlBehavior::beforeSave() can either
invalidate 'url' field or customize generated url to be unique - and
with usage of behavior it is 'few minute/codeline work' ;)

Jitka aka poLK


--~--~-~--~~~---~--~~
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: Extending model

2007-03-02 Thread fr3nch13

If your using 1.1.x you can use app_model.php like you would use
app_controller.php.
I'm sure this has been talked about on this group before. search for
"app_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: Cache an object, not a view

2007-03-02 Thread nate

http://php.net/serialize

On Mar 1, 10:05 pm, "phirschybar" <[EMAIL PROTECTED]> wrote:
> I see lots of info on caching views in the manual but I am wondering
> of I can cache an object as easily. Just a simple array of data so
> that I do not have to hit the DB on every page.


--~--~-~--~~~---~--~~
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: Cache an object, not a view

2007-03-02 Thread Mandy

http://mandysingh.blogspot.com/2007/02/caching-with-cakephp.html

On Mar 2, 3:32 pm, "phirschybar" <[EMAIL PROTECTED]> wrote:
> well gee. There you have it ;). Thanks.
>
> On Mar 1, 11:03 pm, "Grant Cox" <[EMAIL PROTECTED]> wrote:
>
>
>
> >http://bakery.cakephp.org/articles/view/249
>
> > phirschybar wrote:
> > > I see lots of info on caching views in the manual but I am wondering
> > > of I can cache an object as easily. Just a simple array of data so
> > > that I do not have to hit the DB on every page.- Hide quoted text -
>
> - Show quoted text -


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Turn off all http headers

2007-03-02 Thread Chris Hartjes

On 3/2/07, floepi <[EMAIL PROTECTED]> wrote:
>
>
> are breaking the export when i use the normal send excel stream
> option. Does anyone know how i can easily turn the http headers of for
> a layout??
>
> Thanks
>
> Phil

Maybe I'm an idiot, but won't ANYTHING that is served up by a web
server have http headers attached to it?  Cake uses headers for
sessions, so that would break Cake for sure, wouldn't it?


-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

rallyhat.com - digital photo scavenger hunt
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
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: Extending model

2007-03-02 Thread jitka

Hi Zoltan,

if You're using CakePHP 1.2 already, then behavior is right place imo.
Behavior is for Model just like Component for Controller, with one
useful exception: it uses more callbacks ;)

http://docs.cakephp.nu/classes/show/ModelBehavior


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Turn off all http headers

2007-03-02 Thread floepi

Hi all,

i am trying to use the excel writer from pear but it seems that the
headers sent by cake


GET /userAdmin/reports/createExcel HTTP/1.1
Host: useradmin.dev.web.mpc.local
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1) Gecko/
20061010 Firefox/2.0
Accept: text/xml,application/xml,application/xhtml+xml,text/
html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: CAKEPHP=ntn92a5u894e0lvnn7bgi8k1a4

are breaking the export when i use the normal send excel stream
option. Does anyone know how i can easily turn the http headers of for
a layout??

Thanks

Phil


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



sticking to the relational paradigm

2007-03-02 Thread jyrgen

Hello all,

How do you treat model fields that may have many values ?

I guess it is a bad idea to store multiple values in a single
field, i.e. in this fashion :

field : 1,0,1,0,1,1

lets say this field can store six values as a comma separated string.
This is how i already implemented it...

Do you agree that i'll be better of using a HABTM relation between
the fields and possible values via a lookup table ?
(like the Post<->Tag example from the manual?)

If so, can somebody point me to the Tag model, which has been
omitted in the manual ? It just lists the code for the Post model,
and i think there have to be declared something similiar for the
Tag model as well...

Thanks !

Jyrgen


--~--~-~--~~~---~--~~
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: spreadsheet_excel_writer and cakephp

2007-03-02 Thread floepi

I have the same problem but i think it comes down to the little
annotation in cake which displays how long it took.



or something. Does anyone now how to turn that off ?

Cheers

Phil



On Jan 5, 2:12 am, "roman_coder" <[EMAIL PROTECTED]> wrote:
> Here is some code.  I also have the path topearin the vendors
> directory in my include path.
> .;C:\Program Files\xampp\htdocs\mem\vendors\Pear
>
> Call from within view:
>
>  vendor('Pear\Spreadsheet\Excel\Writer');
>
> $workbook = new Spreadsheet_Excel_Writer();
> $worksheet =& $workbook->addWorksheet();
>
> //Set Column Zoom to 75%
> $worksheet->setZoom(75);
>
> //Set Column Sizes
> $worksheet->setColumn(0,0,4.43);
>
> // Create a format for Titles
> $titleFormat =& $workbook->addFormat();
> $titleFormat->setBold();
> $titleFormat->setSize('14');
>
> $worksheet->write(0,1,'Events Details - Trust and
> Safety',$titleFormat);
> $workbook->send('ListVie1w.xls');
> $workbook->close();
> ?>
>
> Code from call outside of Cake:
> require_once 'Spreadsheet/Excel/Writer.php';
>
>  $workbook = new Spreadsheet_Excel_Writer();
> $worksheet =& $workbook->addWorksheet();
>
> //Set Column Zoom to 75%
> $worksheet->setZoom(75);
>
> //Set Column Sizes
> $worksheet->setColumn(0,0,4.43);
>
> // Create a format for Titles
> $titleFormat =& $workbook->addFormat();
> $titleFormat->setBold();
> $titleFormat->setSize('14');
>
> $worksheet->write(0,1,'Events Details - Trust and
> Safety',$titleFormat);
> $workbook->send('ListView.xls');
> $workbook->close();
> ?>


--~--~-~--~~~---~--~~
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: store global config?

2007-03-02 Thread jyrgen

Yes it is !

At least in all controllers, from there you can pass everything to
your views via

$this->set

cheers, jyrgen


--~--~-~--~~~---~--~~
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: store global config?

2007-03-02 Thread Mech7

I see is the configure class everywhere accesible ?

On Mar 2, 4:00 pm, "dhalsim" <[EMAIL PROTECTED]> wrote:
> Personnaly, i have created a app.php (where app is the name of my
> application) in /app/config/ which store my configuration in an
> array,
> and i added one simple line in the /app/config/bootstrap.php :
>
> Configure::load('app');
>
> After that you can access configuration variables with
> Configure::read('lang') or whatever stored in your array.
>
> On 2 mar, 14:41, "Mech7" <[EMAIL PROTECTED]> wrote:
>
> > Where do you store global configurations.. like things you wan't to
> > keep at one place for example admin email, upload path etc..


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Multiple file upload ?

2007-03-02 Thread Mech7

Is there a explanation or tutorial anywhere which explains how to do
multiple file uploads and store the name in the database?

I have found this: http://thinkingphp.org/demos/cake-timer/
but it looks a little complicated and uses a perl script :(


--~--~-~--~~~---~--~~
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: troubles with cake_1.1.13.4450

2007-03-02 Thread [EMAIL PROTECTED]

Great ! it works!
to work on my "Category" Model, I need to type now :

loadModel('Category');
$r = new Category;
$b = $r->findAll();

the rests classes are loaded directly.
Thaxs so much !
---
Dan


On 1 mar, 20:41, "Mariano Iglesias" <[EMAIL PROTECTED]>
wrote:
> You need to provide us with more information than that for us to understand
> your problem.
>
> If it is working on 1.1.8 it is most likely because you are doing:
>
> $model = new Model()
>
> When in 1.1.13 you should be doing:
>
> loadModel('Model');
> $model = new Model();
>
> -MI
>
> ---
>
> Remember, smart coders answer ten questions for every question they ask.
> So be smart, be cool, and share your knowledge.
>
> BAKE ON!
>
> blog:http://www.MarianoIglesias.com.ar
>
> -Mensaje original-
> De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
> de [EMAIL PROTECTED]
> Enviado el: Jueves, 01 de Marzo de 2007 07:41 p.m.
> Para: Cake PHP
> Asunto: Re: troubles with cake_1.1.13.4450
>
> No,, sorry
>
> No case.
>
> the cakephp frwk cant load my model.
> Its curious coz in version 1.1.8 its works perfectly.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Extending model

2007-03-02 Thread Zoltan

Hi,

I'm working on a project that stores a custom url for articles, so a
story named "Big News at Soby's" becomes "big_news_at_sobys"
automatically. I've put the method to handle the text conversion in
the model as part of a BeforeSave function (based heavily on some code
I found on Symfony's website). Now I'm realizing that the code is also
going to have to query the model to figure out if the url generated is
unique (and append a number to it if not).

My question is: since this is getting a bit involved, I'd like to use
this method in a few other models, and I'm wondering if there's a
better place to store methods than in the model's class itself. I read
a bit about behaviours in 1.2- is this what they're intended for or
should I be putting this in the vendor folder?

Thanks,
Zoltan


--~--~-~--~~~---~--~~
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: ajax editor and view

2007-03-02 Thread dhalsim

I've checked this already but it is not the problem.
So I solve the problem in controls.js from script.aculous lib with a
kindy trim function on the new value.

On 28 fév, 17:16, "bernardo" <[EMAIL PROTECTED]> wrote:
> Make sure the spaces are not in your source files (before or after the
> php tags) as these spaces will be added to the ajax response.
>
> On Feb 28, 10:13 am, "dhalsim" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I've put an ajax editor in my view and the problem I have is when I
> > edit my field for the second or more time, the value in the text field
> > is prefixed with sereval tabulation (I don't see directly the value in
> > the input). I don't understand where they come from.
>
> > this is a piece of my view :
> > 
> >   
> > 
> > editor('ajax_edit_nom','/utilisateurs/ajax_update/'.
> > $user['utilisateurid'].'/nom')); ?>
>
> > and my UtilisateursController with the ajax_update() method :
>
> > function ajax_update($id,$sub)
> > {
> > $value = $this->params['form']['value']; //new value
> > to save
>
> > $this->Utilisateur->id = $id;
> > if (!$this->Utilisateur->saveField($sub, $value,
> > true))
> > {
> > $this->set('error', true);
> > }
> > $user = $this->Utilisateur->read(array($sub), $id);
> > $this->set('value',$user['Utilisateur'][$sub]);
> > $this->layout = 'ajax';
> > }
>
> > and finally th ajax_update.thtml
> > 
>
> > If anybody has an idea...


--~--~-~--~~~---~--~~
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: store global config?

2007-03-02 Thread dhalsim

Personnaly, i have created a app.php (where app is the name of my
application) in /app/config/ which store my configuration in an
array,
and i added one simple line in the /app/config/bootstrap.php :

Configure::load('app');

After that you can access configuration variables with
Configure::read('lang') or whatever stored in your array.

On 2 mar, 14:41, "Mech7" <[EMAIL PROTECTED]> wrote:
> Where do you store global configurations.. like things you wan't to
> keep at one place for example admin email, upload path etc..


--~--~-~--~~~---~--~~
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: Email Component and UTF8 Subject

2007-03-02 Thread bernardo

What component?
The one that uses the phpmailer library handles encoding of the
headers fine.
Also note that by calling  utf8_decode you are converting your subject
to iso8859-1, so not only would you lose the characters that cannot be
converted but you would still need to appropriately encode the
header!

On Mar 2, 10:46 am, "Alex" <[EMAIL PROTECTED]> wrote:
> Maybe I'm wrong but I think the Email Component doesn't handle UTF8
> subjects correctly. I have to wrap a utf8_decode() around my subject
> to send it correctly.
> Maybe the setting $this->Email->charset = 'utf-8' only impacts the
> text to be send?
>
> Greetings from Brasil,
> Alex


--~--~-~--~~~---~--~~
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: function for other functions in controller?

2007-03-02 Thread Brad Daily

Prepend their names with an underscore:

// A normal, viewable action
function index() {
$this->_dry();
}

// Private function, not available via a URL
function _dry() {
// Blah
}

On Mar 2, 10:08 am, "Mech7" <[EMAIL PROTECTED]> wrote:
> How should i add functions in controller which don't need a view or
> model but are only used in a controller to make the code what easier
> to read? So that you can't acces them through the url ?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



function for other functions in controller?

2007-03-02 Thread Mech7

How should i add functions in controller which don't need a view or
model but are only used in a controller to make the code what easier
to read? So that you can't acces them through the url ?


--~--~-~--~~~---~--~~
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: Installing Cake on 1 subdomain with .htaccess, not multiple instances of apps

2007-03-02 Thread hydra12

Try this - first, make a cake folder inside your root folder and put
cake in it (app, cake, etc).  Now put your app in it's own folder in
the root (dev, in your case).  Now your root should have something
like the following:wp-admin, wp-content, wp-includes, cake, dev.

In your dev folder, in webroot, edit your index.php file.  Change this
line:
 define('CAKE_CORE_INCLUDE_PATH', ROOT.DS);
to look like this:
 define('CAKE_CORE_INCLUDE PATH', ROOT.DS.'cake');

Now you can browse to http://yourdomain/dev and see your app without
having to alter your .htaccess rules.  If you want to add a new app,
make a new folder in your root, put your app in, and edit it's webroot/
index.php file.

I hope that helps!
hydra12

On Mar 1, 7:57 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> The documentation over at the CakePHP manual is far too complex for
> what I think I'm trying to do.  I have an account on a shared server
> and the top level domain is already running wordpress.  If I put Cake
> in the top level, that will break Wordpress, right?  So I created a
> subdomain "dev" and installed Cake there.  And I created a .htaccess
> file like this:
>
> 
> RewriteEngine On
> RewriteBase /
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule . /app/webroot/ [L]
> 
>
> Weird.  This only *partly* works.  For instance, the CSS files are not
> being included.  When called directly, i.e. dev.domain.com/css/
> cake.generic.css I only get back the index.php file in webroot.  Also,
> I set up a controller called "notes" and can call it only through the
> app directory, i.e. dev.domain.com/app/notes and it works (no css).
> However,  dev.domain.com/notes only returns me to the index.php


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: INSERT into databases

2007-03-02 Thread Chris Hartjes

On 2/27/07, Felix St. Bernard <[EMAIL PROTECTED]> wrote:
> That was enough said Don't you think? I understand how queries like
> his may "upset" you but keep your frustrations to yourself. You could
> have also just made reference to the recent post "CakePHP IRC and
> GoogleGroup Etiquette Suggestions" which may help this newby not repeat
> what he just did. And that would be a whole lot less rude on your part.
> If you can't do that then save yourself some typing time and just not
> reply. Everyone has to start somewhere. Have a nice day.
>
> FSB

I guess you could've saved yourself some typing time as well and not
replied to me either, eh Felix? The younger version of me would've
taken great offense at you've said, telling me I don't have a right to
be frustrated and to not express myself.  After all, you're expressing
your frustrations and opinions.  I'd like to think I'm allowed to do
the same.

Anyway, here's my point:  rude dickheads like myself are needed on a
mailing list such as this one to remind people that there are certain
rules to be followed, and one of those are to not expect people giving
up their own free time (unless there are some very lucky people on
this list who get paid to work on CakePHP) to provide with all the
answers so you can just cut-and-paste without learning anything.  I'm
100% positive I'm not the only one on this mailing list who feels this
way, I'm just one of the few who actually says it out loud...er on the
mailing list.

I'm all for helping people who are at least TRYING to learn something.
 Asking such a broad-based question as the one that started this
thread means the person hasn't even bothered to do a shred of
research.

So, Mani, I highly suggest you search through the manual, look at the
blog tutorial, and search the google groups archive for this mailing
list.  If the answer isn't in there, then I'm sure someone (hey, it
might even be me) will be more than happy to answer your question.
I'm not such a bad guy, honest.

Give someone code, they learn nothing.  Teach them why their code
isn't working and they'll learn something.

-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

rallyhat.com - digital photo scavenger hunt
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
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: best practice multiple checkboxes

2007-03-02 Thread GreyCells

I wrote the fomx helper as a proof of concept, although I am using it
in a development environment, I'll probably tidy it up before using it
in production. ('though there's always the hope it'll end up in the
core:). It is tightly tied to the 1.2 FormHelper and I have not even
looked at the 1.1 code (which I think is in HtmlHelper, not
FormHelper), but there is no reason why you couldn't do the same thing
in 1.1.

Once the 1.2 FormHelper stabilizes a bit, I'll clean up the
FormxHelper or better still, create a patch to integrate into the core
if the devs would like me to.

~GreyCells

On Mar 2, 11:14 am, "szeta" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> has anybody managed to use formx-helper (or something similar) on
> stable?
>
> I did not yet get formx-helper work on the version I use on the
> project:
> 1.1.11.4064
>
> Kind regards
> Ralph
>
> On 26 Feb., 18:29, "szeta" <[EMAIL PROTECTED]> wrote:
>
> > excellent!
> > Thanks for all the hints!
>
> > On 23 Feb., 15:13, "bbuchs" <[EMAIL PROTECTED]> wrote:
>
> > > "GreyCells" also wrote a Helper for this purpose - I'm using it on a
> > > 1.2 project now, and it's great. I think the HTML it outputs could be
> > > a little cleaner, but it does what it should.
>
> > >https://trac.cakephp.org/ticket/1901
>
> > > I'm hoping something like this makes it into the source - from a
> > > usability perspective, multiple-select option lists are horrible.
>
> > > On Feb 23, 4:56 am, "szeta" <[EMAIL PROTECTED]> wrote:
>
> > > > Does anybody have an idea here?
>
> > > > Every hint is appreciated. :-)
> > > > Regards
> > > > Ralph
>
> > > > On 22 Feb., 10:23, "szeta" <[EMAIL PROTECTED]> wrote:
>
> > > > > Hello,
>
> > > > > I'm using CakePHP now for a few months on a project and I really love
> > > > > the framework.
> > > > > It helped me to safe a lot of time!
>
> > > > > But one thing, I always run into is, that it's not so easy to generate
> > > > > comfortable checkboxes (e.g. for maintaining HABTM relations).
>
> > > > > I tried e.g. $html->checkboxMultiple and it works, that's already much
> > > > > better than the scroll-box baked by default.
>
> > > > > But I'd like to give more Information to the related items (not only
> > > > > the primary key, but also the name or something else..)
>
> > > > > How do you handle this? Is there a method I have overseen?
>
> > > > > Best wishes!
> > > > > Ralph


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Email Component and UTF8 Subject

2007-03-02 Thread Alex


Maybe I'm wrong but I think the Email Component doesn't handle UTF8
subjects correctly. I have to wrap a utf8_decode() around my subject
to send it correctly.
Maybe the setting $this->Email->charset = 'utf-8' only impacts the
text to be send?

Greetings from Brasil,
Alex


--~--~-~--~~~---~--~~
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: UTF8 and CakePHP - Best Practices

2007-03-02 Thread Alex



On 9 Feb., 21:27, "Grant Cox" <[EMAIL PROTECTED]> wrote:
> I use the following.  I believe I copied most of it from Felix or
> Daniel, but it was a while ago and I can't really remember :)
>

Hi,

Now I'm using this function, too :-)
I wonder if there is any Component for File-operations like recursive
functions. Maybe this slug function should be useful for such a
component.

Bye,
Alex


--~--~-~--~~~---~--~~
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: multi-page forms

2007-03-02 Thread keymaster

Had another look at the form wizard.

Studying the code in more detail helped me understand what can be
abstracted out of routine multi-page forms processing. It was a good
exercise.

For those interested, looks like the cake wizard would save the
following code every step of the way:

1. Navigation


- your code doesn't have to check if the next or previous buttons were
pressed, the wizard does this based on the name of the link
("previous" or "next").

- your code doesn't have to figure out which action to call, as that
is configured up front in "ways", when you init the wizard.

- if you didn't have the wizard, each of your form actions would have
to determine if the "Next" or "Previous" link was pressed, then
redirect itself to the proper action.

- Also, if you have multiple ways through your steps, the wizard
handles those transparently to you, so you don't have to check at each
step where to go next. For example, if the user is not registered, the
wizard will know to first take him to the registration page, then to
the login page to login, then back to the page which required login in
the first place. (of course, in your validation routines you would
have to change the "way" if you see the user is not logged in, I
think).

2. Checking for the presence of data
-

- the wizard checks to see if there is form data submitted, and if
not, calls the current action to redisplay the form with the error
messages as appropriate.

- if you didn't have the wizard, you would have to perform this check.
Not much, but is one less thing to do.

3. Validation
---

- the wizard calls the appropriate validation routines you supply each
step of the way, and reinvokes the same action (which causes the
associated view to be displayed) if there are errors.

- if there are no errors, it invokes the action for the next step,
according to the "ways" you defined at init time.

- If you didn't have the wizard, you would have to call validate
yourself (if you had multiple models involved, or custom validation).
Again, not much, but something else your code doesn't have to do.


4. Accumulating and storing/ retrieving form data in Sessions
-

- after each step, the wizard takes care of storing and accumulating
all the form field data in cake sessions, so you don't have to.

- after reading and writing all the form variables to the session, the
wizard updates everything into the regular cake format  $this-
>data['model']['field'] style (even though it is managing it
underneath in sessions) so you can process it like usual cake
programming (ie. both Save  validate will find the data).

- by using sessions, it eliminates for you some of the data
accumulation problems of BACK and FORWARD through the steps, and deals
with the session variables transparently to you. Your code doesn't
need to be concerned with sessions at all.

- if you didn't have the wizard, you would have to manage the form
data yourself in sessions, and update the $this->data['model']
['field'] yourself from the sessions before saving.

5. Clearing the session data at the end
-

- after the last step, the wizard clears the session data.

- if you didn't have the wizard, you would have to do this yourself.


NOTE: all the above is only from reading the code. I have not played
with it yet, so please take all the above with a grain of salt, and
verify everything for yourself.


Question
-

One of the things I was not sure about - perhaps someone can clarify -
the way the wizard invokes your action is:

$this->controller->$fct();   // $fct() is the name of your action

Does this mean you must put all the actions for that multi-page form
into a single controller?

What do you do if it makes more sense to have different steps of the
form processed by different controllers?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



store global config?

2007-03-02 Thread Mech7

Where do you store global configurations.. like things you wan't to
keep at one place for example admin email, upload path etc..


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Pass an array as a parameter

2007-03-02 Thread zipman

Hello,

is there any way that I can call a function through url and pass an
array as a parameter?

For example

if I have a function in my test controller
function lala($id)
{
}

I can call it through /tests/lala/id

but if
function foo($array)
{
}

where $array is an array

how can I call a controller function from a view and pass an array as
a parameter?

I have a view where I have a button and I have connected the onclick
event
with calling that function.

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
-~--~~~~--~~--~--~---



Link image to correct path

2007-03-02 Thread Mech7

I can't get an image to link correctly to the path.. right now i have
cake in a subdir but when i move it to other server / dir i don't want
to change it all again. How can i do this inside a controller? as it
look from a different directory then the root.

Cake is in
\portfolio

and the images are in
\portfolio\app\webroot\img\portfolio

I hava a controller called items and with this code

link($html->image('portfolio/'.$file['thumb']),
'/img/portfolio/'.$file['name'],
$htmlAttributes=null,
$confirmMessage=false,
$escapeTitle=false);
?>

It will link to: http://localhost/portfolio/items/img/portfolio/pixelsoul.jpg
so it take items also as a dir :(


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Inflections problem?

2007-03-02 Thread Petry

Hi people,

I'm a brazilian developer an I have a problem with singular and plural
rules:

The word "Noticia" the plural form is "Noticias" (words ending by
"ia", the plural form is "ias")
The word "Album" the plural form is "Albuns" (words ending by "m", the
plural form is "ns")

Well for these cases, I've create in inflections.php two rules:

$pluralRules = array('/(.*)m$/i' => '\1ns', '/(.*)ia$/i' => '\1ias');

$singularRules = array('/(.*)ns$/i' => '\1m','/(.*)ias$/i' => '\1a');

but when I create the MVC files with bake, for the word "Noticia",
bake writes "Noticium"


Why can i fix this problem?

Petry
www.mdpetry.net


--~--~-~--~~~---~--~~
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: Integrating phpGACL with CakePHP

2007-03-02 Thread Mariano Iglesias

Ok the programmatic part is about done (missing a few things but nothing
that prevents you from already playing with it). I temporarily stored it in:

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

I will add a couple more things to it, then build the plugin for
manipulating ACL data through web, and then write an article detailing how
to use it.

I'm pasting here (sorry for the length) a quick readme file I wrote as help.
Note that it doesn't give you the explanation of lots of things that are
already available through the component, but the component source code is
well-documented so it should help.

Scragz, regarding re-using the DB connection, I need to look into it as
phpGACL uses ADODB so I need to find out how to provide ADODB with an
already open link.

Anyway quick readme:

INSTALL
---

Grab latest copy of phpGACL from http://phpgacl.sourceforge.net/ and extract
inside your app/vendors directory on a directory named phpgacl. You can
instead extract it on CakePHP's main vendors directory.

Don't follow the installation procedure shown on phpGACL, as the component
will install the necessary database tables. To let it install for the first
time, all you need to do is:

1. Make sure that $autoInitialize is set to true on the component.

2. If you also want your controller/actions to be inserted as available in
phpGACL, make sure that $autoInstallControllers is set to true on the
component.

3. Add PhpGacl as a component to any controller in your application (or even
AppController) using the $components variable, and that's it.

4. Access that controller via your browser. When CakePHP initializes the
component, it will check that it first needs to install phpGACL on your
database.

By default the following information is added to phpGACL when the component
is run for the first time:

a. An ACO section called "access", with an ACO object called "execute"
assigned

b. An AXO group called "controller"

c. If point 2 above is true, then an AXO section for each controller, and an
AXO action for each action in that controller.

Note that you won't have to understand all this concepts (ARO, ACO, and AXO)
if you use the functions provided by the component.

All instructions below will assume that you are executing them on a
controller where PhpGacl is added as a component. To let the component be
available on all controllers, just add it to your AppController class.

ADDING CONTROLLERS TO phpGACL
-

On step 2 at the installation instructions I've shown you how to let the
component install all your controller/actions into phpGACL. However, that
action is only run the first time (naturally) and you may even ommit that
step as you wish to install the controller information yourself.

To install a controller and all its accessible actions into phpGACL, from
your controller do:

$this->PhpGacl->saveController('Posts');

where 'Posts' is a valid CakePHP controller name (what you specify on the
variable $name in the controller.) Note that if the controller wasn't added
before to phpGACL, it will be created and all its actions stored. Otherwise
only actions that were added will be added to phpGACL.

SPECIFYING IDs FOR GROUPS AND USERS
---

On the quick notes below you'll see that you have to specify an identifier
whenever you are manipulating user or group information. Why is this? Why
isn't the component taking care of generating a unique ID? Because the idea
of this component is to be integrated with your existing authentication
scheme, so you should be already storing users and groups your way. The
component adds the necessary layers to provide access control to those users
and groups.

ADDING/MODIFYING USERS
--

To add or modify a user, do:

$this->PhpGacl->save($identifier, $name);

where $identifier is the identifier of the user you would like to add (any
valid string or integer), and $name the name you want to set to the user. If
you don't set a name the $identifier will also be used as the name instead.

Examples:

$this->PhpGacl->save(1, 'mariano.iglesias');

To modify a user's name just set the new name in the $name parameter,
keeping the same identifier.

To delete a user just do:

$this->PhpGacl->del($identifier);

ADDING/MODIFYING GROUPS
---

To add or modify a group, do:

$this->PhpGacl->saveGroup($identifier, $name);

where $identifier is the identifier of the group you would like to add (any
valid string or integer), and $name the name you want to set to the group.

Examples:

$this->PhpGacl->saveGroup('authenticated', 'Authenticated');
$this->PhpGacl->saveGroup('editor', 'Editor');
$this->PhpGacl->saveGroup('developer', 'Developer');

You can also specify that a group belongs to a parent by adding a third
parameter that indicates the parent identifier:

$this->PhpGacl->saveGroup('reviewer', 'Reviewer', 'editor');

To modify a group's name just set the new name in the $name parameter,
keeping the same ident

  1   2   >