Re: Email Component Advantages

2008-02-20 Thread Siebren Bakker
I think the biggest reasonings behind the inclusion of a cake email component are reliability, interoperability, and ease of maintenance. With the cake email component, they have a guarantee that it will work with cake, as is, without the need to modify someone else's code to make it fit, and they

Magic Squirrel reloaded

2008-02-20 Thread deia
Here is the magic squirrel reloaded, she saves the forest from fire :0 http://www.mediaportal.ro/play.php?pid=12190SUPER%20COOL http://www.mediaportal.ro/play.php?pid=12419Ecureuil Enjoy it! --~--~-~--~~~---~--~~ You received this message because you are

Re: Validation error message don't display

2008-02-20 Thread BobbyGriffin
What does $this-User-validates() return (this does validation without saving)? Also try doing something like $this- invalidate('username', 'test') in your beforeValidate function in the User model and see if that triggers a display error. Other than that, post your code and maybe we could help

saveField issues

2008-02-20 Thread geordie
please help. probably a stupid error, but i'm having a hard time figuring out why my saveField() call does not stick. i'm relatively new to this so could be a newb problem. in lightboxes_controller i have the following lines of code... $this-Lightbox-id = $id;

ajax-observeField ignores value change by JavaScript

2008-02-20 Thread teknoid
It seems that observeField does not recognize when the value of a field has been changed by javascript. It only triggers on manual change. Is there any way to solve this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Pagination with complex query (again)

2008-02-20 Thread MonkeyGirl
Thanks for the help! I've looked at the source code again, trying to understand why what you're doing is working, and it's starting to make a bit more sense to me now. Judging by this: http://api.cakephp.org/1.2/libs_2controller_2controller_8php-source.html#l00970 ...it appears that the

Re: cakephp 1.2 pagination problem.

2008-02-20 Thread Mr-Yellow
http://api.cakephp.org/1.2/paginator_8php-source.html#00287 It seems to me that it's missing the code to pass in any existing params or the full URL of the current page. Ticket time? -Ben On Feb 20, 10:26 am, Mouse[ON] [EMAIL PROTECTED] wrote: hi guys,  maybe someone could help me, today

Re: Auth Component - Should authError be displayed if session times out?

2008-02-20 Thread Baz
They wanted something slightly different in that ticket. And I believe the functionality they wanted is already in $this-Session-valid()... I *think* my problem is that beforeFilter() is run twice: once with the invalid session, then another time for another redirect, with a new Session. So when

Re: cakephp 1.2 pagination problem.

2008-02-20 Thread Mr-Yellow
http://www.domain.com/controller/action/test/test:1/page:2 results in: http://www.domain.com/controller/action/page:1 http://www.domain.com/controller/action/page:3 -Ben On Feb 20, 10:26 am, Mouse[ON] [EMAIL PROTECTED] wrote: hi guys,  maybe someone could help me, today i hit a wall when

Re: cakephp 1.2 pagination problem.

2008-02-20 Thread Mr-Yellow
Sorry google sent me to a single msg page instead of the thread page, didn't see the rest. -Ben On Feb 21, 10:21 am, Mr-Yellow [EMAIL PROTECTED] wrote: http://www.domain.com/controller/action/test/test:1/page:2 results

Re: Slow render time with large view files

2008-02-20 Thread nate
Without seeing the code it's really hard to say. The only thing I can suggest is thorough, controlled benchmarking. Make one change at a time, make sure the rest of the environment is consistent, and test the crap out of it. On Feb 19, 4:35 pm, bgmill [EMAIL PROTECTED] wrote: I've come across

Re: saveField issues

2008-02-20 Thread Siebren Bakker
Not exactly sure about this, but shouldn't the SQL UPDATE statement be: UPDATE `lightboxes` SET `status` = 'saved' WHERE `id` = `21` instead of: UPDATE `lightboxes` SET `status` = 'saved' WHERE `id` IN (21) I'm not an SQL guru, so feel free to correct me if I'm wrong here. If that is the correct

Simple 1.2 Ajax Form?

2008-02-20 Thread [EMAIL PROTECTED]
Can someone post all the MVC files for a simple form submit with Ajax? For example a form with name and a radio button to un/subscribe to a mailing list (controller sends and email and sets a msg with setFlash)? --~--~-~--~~~---~--~~ You received this message

Re: book/manual

2008-02-20 Thread John David Anderson (_psychic_)
On Feb 20, 2008, at 2:19 PM, Samuel DeVore wrote: Book is the planned new manual for cakephp 1.2 John wrote up a little summary at http://bakery.cakephp.org/articles/view/what-s-up-docs Manual is for cakephp 1.1 and is does not have user added comments and really doesn't support

Re: Auth Component - Should authError be displayed if session times out?

2008-02-20 Thread Baz
OK, I've confirmed it with $this-Session-valid(). The problem is the redirects to the login page. Let me explain: 1. We're logged in. This creates a session. 2. Session expires. 3. We try to access somewhere else, we jump into beforeFilter(), where Session is invalid. 4. We are

Re: Simple 1.2 Ajax Form?

2008-02-20 Thread Chris Hartjes
On Wed, Feb 20, 2008 at 7:57 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Can someone post all the MVC files for a simple form submit with Ajax? For example a form with name and a radio button to un/subscribe to a mailing list (controller sends and email and sets a msg with setFlash)?

Re: Auth Component - Should authError be displayed if session times out?

2008-02-20 Thread EchoChargen
Baz, Your steps above are what I see in my testing as well.I also noticed that when my session times out, auth.redirect was always set in the new session I'd see when hitting step #4. So I did this in my Users- login method: function login() { $this-disableCache();

ajax helper select combo box

2008-02-20 Thread Salam Fall
Hello All, I was wondering how I can use the ajaxhelper to generate a form select combo box and then update a DOM ID / DIV when one of the item in the combo list box is selected. Any help on how to achieve this will be helpful. Thanks --~--~-~--~~~---~--~~ You

Re: Auth Component - Should authError be displayed if session times out?

2008-02-20 Thread EchoChargen
Another thing of note, is if I run through the steps: 1. login, get redirected to what I have in Auth-loginRedirect 2. let session expire 3. click a link to a protected action and get redirected to Auth- loginAction, and in my case above get a flash message with your session timed out. 4. At this

Validation of one field for two different pages in cakephp.

2008-02-20 Thread bhushan A
Hi all, i have one field 'abc'(numeric) in 'xyz' table .i want to provide validation for two different logins.. i.e for users login, this field should not exceed '5' and for admin's login this should not exceed '1' . How to achieve this. Should i change Model or view.? Please help.

Re: How i can use numbers instead of * in Routes.php

2008-02-20 Thread mclight
Thanks a lot! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more

Re: Auth Component - Should authError be displayed if session times out?

2008-02-20 Thread francky06l
I have made it work, the only thing I had problem was the first time on the page but this can be fixed with Baz approach (Cookie). Baz if you pass twice in befoeFilter, you can detect it by setting a variable (maybe static) in beforeFiler ? On Feb 21, 5:32 am, EchoChargen [EMAIL PROTECTED]

testing in cakephp 1.1

2008-02-20 Thread Jay
Hello All, I am new to development in cakephp. Currently I am testing my code written in cake 1.1.*. For this I need test suite 1.0.0.0 But problem here is that the available test suite are difficult to configure with cake 1.1 . I can switch to cake 1.2, which has integrated test development

newbie : want 2 pagination on a same page of same table

2008-02-20 Thread manuj
I have one table name users In this I like to paginate two different users list one is from asia (first list) and another from africa (second list) Problem is coming that when i go to second page of first list (asian users) it also shows the second page of second list (african users) i have

Re: newbie : want 2 pagination on a same page of same table

2008-02-20 Thread rtconner
you need to make two models (one for each type of user). then paginate 2 models on one page as you would normally paginate two models on one page. On Feb 21, 12:19 am, manuj [EMAIL PROTECTED] wrote: I have one table name users In this I like to paginate two different users list one is from