2 Gwoo: Zeroes as named and unnamed parameters. Continuation of discussion ot ticket 4917

2008-06-14 Thread Serge Rodovnichenko
OK. Zero cannot be an unnamed parameter like this: /mycontroller/index/ 0, it's a feature. But this the test below fails too: $result = Router::url(array('controller'=>'mycontroller', 'action'=>'index', 'id'=>0)); $expected = '/mycontroller/index/id:0'; $this->assertEqual($result, $expected); So

Re: How to change the argument separator for named params?

2008-06-14 Thread Matt Huggins
@Marcin - I searched all over for argSeperator (and argSeparator, I guess whoever coded the feature can't spell though :P ). I found a bunch of articles saying to set a variable $argSeperator in app_controller.php to another character to make it work, but it didn't work for me. @Nate - I already

Re: not working

2008-06-14 Thread silverquick
Sorry for the (sort of) double post there, G. Groups didn't seem like the post was going through. On Jun 12, 10:13 pm, silverquick <[EMAIL PROTECTED]> wrote: > It sounds like the .htaccess file in your Cake root dir is not being > recognised. Sorry if you know this already but by default it conta

Re: How strong is Security::cipher() ?

2008-06-14 Thread Joel Perras
> In CakePHP I noticed the cipher() function as part of the Security > class. At first glance however, I wasn't able to discern what type of > encryption scheme is being used. It's a simple symmetric key bitmask cipher. > My question is this: How does CakePHP's cipher() function stack up > again

RE: ACL inherit access not working

2008-06-14 Thread Christian Winther
RC1 / SVN HEAD of cake1.2 - and what dbo type? -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of elGEoRgE Sent: 15. juni 2008 01:11 To: CakePHP Subject: ACL inherit access not working I have 2 tables: users and groups. So I setup my aco/aro config

Re: Number helper bug

2008-06-14 Thread Eriky
Thank you. After all, I think the book is wrong on this point so instead I submitted a change to the book! On 11 jun, 23:31, Grant Cox <[EMAIL PROTECTED]> wrote: > Create an account athttps://trac.cakephp.org/register > > Then readhttps://trac.cakephp.org/wiki/bugreport > > and you will be able t

ACL inherit access not working

2008-06-14 Thread elGEoRgE
I have 2 tables: users and groups. So I setup my aco/aro configuration accordingly. The problem is that when I setup the parent permission, the check for child permissions wont work: I created the schema from scratch: --- cd 1.2.x.x_14.06.2008/cake/console $ ./cake schema run create DbAcl

RE: How strong is Security::cipher() ?

2008-06-14 Thread Christian Winther
I don’t recall blowfish ever being secure ;) -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of seedifferently Sent: 14. juni 2008 23:13 To: CakePHP Subject: How strong is Security::cipher() ? Dear group, I'm writing an app in CakePHP and need to

bus error from cake console if working directory not .../cake/console

2008-06-14 Thread scott.graessle
I have my cake/console directory in my path. 'cake' gives the expected welcome message if invoked w/o arguments from any directory, but 'cake myshell' fails with a 'bus error' if I try to run from my app directory. It only works from cake/console (where I must run it as 'cake -app ../../app myshel

How strong is Security::cipher() ?

2008-06-14 Thread seedifferently
Dear group, I'm writing an app in CakePHP and need to encrypt highly sensitive information in one part of the app. I know that no encryption plan is absolutely bulletproof, but I've used PHP's mcrypt function in the past with satisfactory results. In CakePHP I noticed the cipher() function as pa

Accepting PayPal payments in Cake1.2

2008-06-14 Thread Fahad
hello, i have already noticed a component for accepting paypal payments in cake1.1, but couldnt make it work in cake1.2 cake1.1 paypal component is here on bakery http://bakery.cakephp.org/articles/view/paypal-direct-payment-api-component can anyone please help me with it? thanks -- Fahad http:

CakePHP email attachment problem

2008-06-14 Thread Manu0310
Hi, I am building an application that checks a pop3 email box and if there are new messages, it then checks what messages have attachments, and parses the attachments that are images(jpg,png,gif only). So in essence it is an application that allows users to send images via email and then they get

Re: SaveAll() and 'validate' => 'first' is not working

2008-06-14 Thread francky06l
If you set atomic => true, it should work since it will issue a rollback for transaction. Can you set debug to 2 and look at the DB traces I guess your table are in ISAM, try with innoDb hth On Jun 14, 2:25 pm, Jaime <[EMAIL PROTECTED]> wrote: > BTW I'm using Cake 1.2.0.7125 RC1 (model.php revisi

Possible bug in Auth?

2008-06-14 Thread heavyKevy
Hello, Has anyone else noticed that Auth with Acl is not working in RC1? It seems that this call in startup is not allowing the IsAuthorized to be called automatically because it will never go past here unless allow has been set for the current url. line290 of auth.php if ($loginAction != $url &

Re: 1.2 revamped

2008-06-14 Thread Chris Hartjes
On Sat, Jun 14, 2008 at 12:35 AM, garrettjohnson <[EMAIL PROTECTED]> wrote: > > Sorry if this seems like a horrible question, but i am new to php, but > i have been looking around for a framework to develop with while i > mess with php, i have heard in the past that since cake was origally > built

pagination question

2008-06-14 Thread Alain Veylit
Hopefully a simple question: is there a way to change the number of page links from the default 8 in the pagination component on a per-controller basis? I tried to figure it out but wasn't successful, Alain --~--~-~--~~~---~--~~ You received this message because

Re: How to perform find without redundant model name in results array

2008-06-14 Thread Tim Fisken
On Jun 12, 12:54 pm, AD7six <[EMAIL PROTECTED]> wrote: > It's redundant only if you have no model associations unless you want > to risk for example, Post.comment being impossible to access. But shouldn't this logic also apply to associated models. Currently, if you have a post and its comments,

1.2 revamped

2008-06-14 Thread garrettjohnson
Sorry if this seems like a horrible question, but i am new to php, but i have been looking around for a framework to develop with while i mess with php, i have heard in the past that since cake was origally built with php4. Is 1.2 revamped to take advantage of the new object oriented features i

Re: Conventions - Process - More than one object to tag

2008-06-14 Thread José Pablo Orozco Marín
Thanks. But i want a Tags table for post and another Tags table for user profiles. The association for each one is HasONe. Can i use? posts posts_posttags posttags profiles profiles_profiletags profiletags Abhimanyu Grover escribió: > Just use > > posts_tags > profiles_tags > > Remember,

Re: Update 2 div with ajax which sintax please?

2008-06-14 Thread francky06l
You could declare, after the list of comment, an empty "comment" for future insertion : Then in your view, make a javascript block : $last_post = ''.$comment.''; // format the display of your comment $last_post .= ''; // add a new place holder for last_comment $last_post = str_replace(arr

Re: Update 2 div with ajax which sintax please?

2008-06-14 Thread Novice
Hello fracnky, I dont actually yield out the whole comment pane from the view of add action after the user has published a comment. I yield out only the single comment the user has posted or error in case there is an error. Thats why i am facing the trouble.. I hope i were clear. thanks. On Jun

Re: SaveAll() and 'validate' => 'first' is not working

2008-06-14 Thread Jaime
BTW I'm using Cake 1.2.0.7125 RC1 (model.php revision 7118) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this grou

SaveAll() and 'validate' => 'first' is not working

2008-06-14 Thread Jaime
Hi group, I'm not sure if I'm misunderstoonding something or if I've found a bug in /libs/model/model.php. It happens when I use saveAll() to save a bunch of records of the same model: $this->Mymodel->saveAll($this->data['Mymodel'], array('validate' => 'first')) This should do two things: 1.-

Re: Advanced Sorting on an unexisting column

2008-06-14 Thread Abhimanyu Grover
Had a look, I think its best to add a field - that was my last option though... Thanks for help though.. :) On Jun 14, 9:18 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On Fri, Jun 13, 2008 at 7:36 PM, Abhimanyu Grover <[EMAIL PROTECTED]> > wrote: > > > Is there any workaround I can do? >

Re: Update 2 div with ajax which sintax please?

2008-06-14 Thread francky06l
you can update several divs using a view such as : echo $ajax->div('div1'); .. .. html code or javascript echo $ajax->divEnd('div1'); echo $ajax->div{'div2') .. html echo $ajax->divEnd('div2'); The div1 and div2 will be updated if they are into the 'update' array.. div1, could be the error div,

Re: Update 2 div with ajax which sintax please?

2008-06-14 Thread Novice Programmer
Hello Alessio, If i understood it correctly, then you are having a comments box where the user posts comment, after he posted the comment you want to update comments area without updating the page, right? if thats the case, then i am also stuck with a same problem. My question is that how do you d

View this page "CakePHP In The Wild"

2008-06-14 Thread Kim F
I noticed i forgot to add my links in alphabetical order, also moved another link i saw mas misplaced Click on http://groups.google.com/group/cake-php/web/cakephp-in-the-wild - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~~---~--

distinguishing between ajax validation and sucess

2008-06-14 Thread Novice
Hello guys, I have a page where users can post comments on the enteries. When ever the user posts a comment the flow goes to usual Comments controller's add function, if the call to add succeeds then i update the comments area with the new posted comment using script aculo'ish effects. Now if hav

Bakery login problem. I forgot my username :-)

2008-06-14 Thread Serge Rodovnichenko
I forgot my username in bakery. :-) How to restore it? 'Reset password' just resets password :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegro