How to get JSON Response with AJAX link

2008-04-25 Thread Tomka
ot;complete" => "testfunction(request, json);") ); If I set the option "update" with an id of a div, I see the response: a well formatted JSON-Object - so "myjsonview" seems to be coded correctly. But how can a access this JSON-Object in my "complete&qu

Add new user form contains username of current user

2008-04-04 Thread Tomka
"label" => "Benutzername")); echo $form->end("Save new user"); I think the problem is that the current logged-in user is stored in the session. But how can I distinguish between this setting and the user-input? Thanks in advance. Tomka. --~--~-~--~~-

Re: Old Model layout accessed

2008-04-04 Thread Tomka
Argh! I found my problem: In my development folder (the location where I edit my files) the tmp-directory was not empty but contained a very old model-cache! Tomka. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Old Model layout accessed

2008-04-04 Thread Tomka
config/core.php Is there another position to activate development-mode in 1.2? Tomka --~--~-~--~~~---~--~~ 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@googlegroup

Old Model layout accessed

2008-04-04 Thread Tomka
isable this cache for development? Thanks in advance, Tomka. --~--~-~--~~~---~--~~ 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

Determine insert or update in beforeSave()

2008-04-04 Thread Tomka
Hello, is there a better way to see whether model->beforeSave() is invoked for an update or insert than to use if (empty($this->id) && empty($this->data[$this->alias]['id'])){ // insert } else { // update }

setflash does not work

2008-02-24 Thread Tomka
write('debug', 2); If i request this action in the browser I'm directly redirected and don't see the flash. What's wrong here? Thanks for answers, Tomka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Debug Level 3 does not work

2008-02-18 Thread Tomka
Hello. I'm using 1.2 beta. In my installation there seems to be no difference between debug level 2 and 3! I can't see any controller dump. Does anyone has a hint for me? Thanks in advance, Tomka. --~--~-~--~~~---~--~~ You received this message becau

Accessing schema in view

2008-02-17 Thread Tomka
Hello. I tried and searched for an hour, but I could not find a solution: How can I access the schema of a model in a view? Tomka. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To po

Paginator does not sort desc

2008-02-16 Thread Tomka
not sorted by this column before. Is there a solution for my problem other than writing an own helper extending the paginator? Tomka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To p

Image as Title in Paginator prev and next

2008-02-10 Thread Tomka
rmMessage=false, $escapeTitle=true) the last one. Thanks for answers. Tomka --~--~-~--~~~---~--~~ 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 unsubscr

Using view from a parent controller

2008-01-21 Thread Tomka
Hello. I wrote two controllers: ChildController extends ParentController and ParentController extends AppController If the action "foo" (which is defined in ParentController) is invoked on the ParentController cake displays the view "parent/foo". So far so good. If the action "foo" is invoked o