Re: possible bug in router.php

2008-11-15 Thread Petr 'PePa' Pavel
I'm not sure what you're asking about. I already gave you the value of $authRedirect... Petr Dne 15.11.2008 0:13, validkeys napsal(a): what is the value of your authRedirect? On Nov 14, 12:35 pm, Petr 'PePa' Pavel [EMAIL PROTECTED] wrote: Hello everyone, I'd like to share with you

Re: sql queries being executed in wrong order on db?

2008-11-15 Thread pigeon
Anyone, please? I tried both execute and save for the insert, but it always gets executed last, after my selects the code resides in a component // update request $rqs = new RequestStatus(); $rqs-addStatus($requestid,'request_submitted'); // get the request data $req = new Request(); $r =

Re: best practices: disable/hide links which are denied by ACL?

2008-11-15 Thread Günther Theilen
dr. Hannibal Lecter wrote: I'm halfway through the ACL implementation (well, almost...), and I was wondering: is it better to hide the links which are denied by ACL (we're talking about the already logged-in user), or show them and give the user the Auth message not enough privileges?

Re: Help needed for inline WISIWYG editor...

2008-11-15 Thread Aneesh S
Hi, I'm using yahoo editor in my project, but i am now kind of stuck in the middle. Everything but the add link and add image is working. Both are not coming but not in a separate layer as it is supposed to be. I'm attaching a screenshot... How can i fix this problem...? Please help me out

Determinate layout controller inside app_error.php

2008-11-15 Thread [EMAIL PROTECTED]
Hi I have this question: I would make My Error Handling. I would determinate the layout of the controller that calls my error function inside the error function. How can I do it? Many Thanks Marco --~--~-~--~~~---~--~~ You received this message because you are

Re: Determinate layout controller inside app_error.php

2008-11-15 Thread Kyo
I'm not clear on what you are trying to do but...I'm assuming you already have CakePHP's ErrorHandler class, which captures and handles all cakeError() calls, so why not use it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: possible bug in router.php

2008-11-15 Thread validkeys
In your post, it just says that it redirects to a login form. Did you setup your auth redirect variable manually or are you using the default users/login? Sorry, just trying to help. On Nov 15, 3:04 am, Petr 'PePa' Pavel [EMAIL PROTECTED] wrote: I'm not sure what you're asking about. I already

Saving a model inserts 2 records - help!

2008-11-15 Thread glastoveteran
Hi all, I've done several projects with Cake now so I'm not a newbie as such but I've come across a weird problem where my model save function is inserting two records whenever I call a model's save function. The code isn't executing in a loop and calling the model create() function beforehand

Re: view variables

2008-11-15 Thread thatsgreat2345
Either use forms that are POST, or use GET, which Post you don't see and would be access by $this-data in your controller, or Get variables are passed in the url such www.example.com/tests/index/var1/var2 On Nov 14, 10:41 pm, nikunj [EMAIL PROTECTED] wrote: hi,   I want to use view variables

Re: problem using find method in cakephp with conditions contains 'LIKE'

2008-11-15 Thread Bilel
Thank you ! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more

Re: Tree behavior problem

2008-11-15 Thread havanna
Hello, I come a little bit forward: If I activate admin routing in core.php, I got this double entries as described. If I deactivate it, everything works fine. It seams like an error in cake. Any idea? Regards Thomas On 12 Nov., 13:52, havanna [EMAIL PROTECTED] wrote: Hello together, I have

Re: Variating right menu based on content

2008-11-15 Thread Luenyar
Um, this might be kinda hacky, but I'm using the following currently and it functions fine for me. In my default layout: div id=sidebar echo @$this-element('sidebars/' . $this-params['controller'] . '/' . $this-params['action']); /div So I have, for example, \elements\sidebars\requests

Can't use internationalization on input label

2008-11-15 Thread Mateo San Román
Hello When I try to use the __() function on echo $form-input('names', array( 'label' = __('Names'))); on a view, the output shows both default table field name AND its internationalization. Thanks in advance. --~--~-~--~~~---~--~~ You received this message

Re: RC3 file cache trouble

2008-11-15 Thread Tyler S.
I ran into the same problem last night. A temporary solution that worked for me was to hand-code the form, rather than using the form helper. - Tyler On Nov 6, 12:32 pm, Brett Wilton [EMAIL PROTECTED] wrote: Have been trying to figure out this for a while now, anyone used thefileengine

Easily Validate Cake Models

2008-11-15 Thread trevorsg
Hello, I've been working on something for the last week or so that I think will make everyone's Cake development easier. To me, the most frustrating part of starting a new Cake application is going through each model and writing out the $validate array. Therefore, I created php script that helps

Re: Confusion with $uniqueIds in dbo_source.php

2008-11-15 Thread Mauro Zadu
I'm with you Brenton! Can you share the modification you made to dbo_source.php? Did you consider open a ticket with this issue? Thank you On 4 nov, 06:43, Brenton B [EMAIL PROTECTED] wrote: Still no love, hey? I'm not sure how else to explain this other than to ask why dbo_source.php is

Dynamic Logic

2008-11-15 Thread korcan
Has anyone ever put logic into a db table? I want to allow a user to make a variety of selections for how to handle something and store them in the DB, however I want the controller to use this logic when the user is logged in. Anyone ever do this? How would you recommend accomplishing this?

Performance

2008-11-15 Thread Thiago
Today I made a page that uses 20 querys to show all informations... I want to know if it can't be really bad to my mysql server... I mean, this page will receive around 40.000 visits a day, that's a lot... --~--~-~--~~~---~--~~ You received this message because

Re: Another HABTM issue : row with same Id getting over-written

2008-11-15 Thread Mauro Zadu
Did you fin any solution to this issue? I have the same problem. thank you! On 8 oct, 19:00, Brenton B [EMAIL PROTECTED] wrote: Yes. That was one of the first things I tried because I had extra field info on the join table. As the dbo_source.php code shows, it's just not allowing other ids

Re: Can't use internationalization on input label

2008-11-15 Thread David C. Zentgraf
echo $form-input('names', array( 'label' = __('Names', true))); On 16 Nov 2008, at 13:15, Mateo San Román wrote: Hello When I try to use the __() function on echo $form-input('names', array( 'label' = __('Names'))); on a view, the output shows both default table field name AND its