Re: flash session and authentication not work in production

2014-12-13 Thread CUCULEAC STEFAN
Hello Sekou. I'm not an expert in Cakephp but before anyone can tell you something t think you have to check logs to see if you have errors there. If you have could you post them? maybe someone can advise you. sâmbătă, 13 decembrie 2014, 21:05:14 UTC+2, Sekou Dioubate a scris: > > > hello, >

Update field aflter select other

2014-07-19 Thread CUCULEAC STEFAN
label' => false, 'empty' => 'Towns', )); echo $this->Form->input('User.city', array( 'readonly' => 'readonly', 'class' => array('form-control', 'chosen-select&#

Re: Form Uploaded Image not exist when Edit form

2014-07-16 Thread CUCULEAC STEFAN
is->Session->setFlash(__('The user could not be saved. Please, try again.')); } } else { $options = array('conditions' => array('User.' . $this->User->primaryKey => $id)); $this->request->data = $this->User->find('first', $opt

Re: Use 2 tables for update

2014-07-02 Thread CUCULEAC STEFAN
'user_id'; *otherwise it didn't know witch id field to use and i was inserting a new row, not updating the one allready used joi, 26 iunie 2014, 14:19:23 UTC+3, CUCULEAC STEFAN a scris: > > No one? > > > > -- > View this message in context: > http://cake

David Persson's Media Plugin

2011-05-04 Thread Stefan Schlesinger
pastie.org/private/wrgxo9sdspar3sdxgrpyyq and the field if its read by the Artist view: http://666kb.com/i/bt7evphoib2ca2m6y.gif Regards, Stefan. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and

Re: Should id be hidden value?

2009-09-06 Thread stefan blickensdoerfer
hi baked views should not be used as final solution for an application. but you can use the security component to avoid manipulation of form data. regards On Sun, Sep 6, 2009 at 3:32 PM, thesti wrote: > > hi, > > i'm learning CakePHP and i take the Blog tutorial. > > and as i came to the mod

Routing Plugins

2009-09-05 Thread Stefan
Hey hello i'm new to cakephp but i think it's a really cool thing to learn and so fare all went well. But now I have a problem and i can't figure it out by my self. I have a plug in and I visit the plug in over the url pluginname/ controller/action and i want to go back over a navigation menue th

Cake 1.2 Session Write

2008-04-22 Thread Stefan
I developed a rather large amount of code on Cake 1.1. At the end of the View, I wrote some data back to Session->write. I can't seem to find the proper object to get to the Session from the View in Version 1.2. Any clues would be greatly appreciated. --~--~-~--~~~---

Boolean value postgres

2008-02-15 Thread Stefan
ere is a function "boolean" in dbo_postgres.php that does the mapping, but it seems that the values stored from the database to the model are not translated. Regards Stefan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Model->Del() causes SQL Error

2008-01-29 Thread stefan
e why the {alias} would be required in that > position by any SQL database? > > On Jan 25, 12:44 pm, stefan <[EMAIL PROTECTED]> wrote: > > > thanks for your tips. > > > i'm using 1.2.0.6311 beta right now, hopefully there are no other > > problems when

HABTM data after Validation Error

2008-01-25 Thread stefan
so i have another simple question: i have a simple edit form with some habtm-relations. if i use data validation and get a validation error while saving, in the following edit-view none of the related data is loaded. but if i manually do a $model->read i loose the user-input from the post data. i

Re: Model->Del() causes SQL Error

2008-01-25 Thread stefan
{Alias} FROM Table must be non-standard because > you don't normally put {alias} in that position. I posted a bug > report: > > #3984 (Delete {alias} from Table - non-standard SQL which stops > Firebird working) > > See the 'Problem with Delete' thread or the bug

Model->Del() causes SQL Error

2008-01-24 Thread stefan
anies` AS `Company` WHERE `Company`.`id` IN (11) why does cake to that? i could of course write my own query as this is a very tiny one, but i would like to understand why cake does this... thanks a lot stefan --~--~-~--~~~---~--~~ You received this message because you

Re: PHP Version 6 compatibilty

2007-12-19 Thread Stefan
I guess the real question was: Will CakePHP be compatible with PHP6? Thanks Stefan --~--~-~--~~~---~--~~ 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@google

PHP Version 6 compatibilty

2007-12-18 Thread Stefan
Having good ol SQL Server character coding problem. Supposedly PHP6 fixes the problem, Cake compatible with V6 or not? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send ema

onError - the query which produced the error ?

2007-06-11 Thread Stefan
Hi, Can I get the query in production mode without using logs when a SQL error occurs ? I made an onError() in AppModel which is sending an email with the last SQL error, but without the query some errors are difficult to trace. It seems that there is a way by using the query log but I don't wa

Re: ObserveField - Firefox Issue

2007-03-17 Thread Stefan
It can be done without $ajax->observeField, and it's better because IE doesn't know the ID of a SELECT (or maybe I'm not capable of doing it right): codeBlock("function fnSearch(el) { new Ajax.Updater('content', '".$html->url("/services/index")."', {asinchronous:true, evalScripts:true, parameters

Re: Help with ACL and/or tree behavior

2007-03-16 Thread Stefan
I found something but I'm not sure if it's correct: $aro = $this->Acl->Aro; $tree = $aro->behaviors["Tree"]; for a parent: $tree->setup($aro,array("parent" => "Aro.id")); // just "id" doesn't work $aro- >save(array('model'=>'Roles','foreign_key'=>'0','alias'=>'Parent')); for children: $tre

Re: Gettext unstable ¿?

2007-03-13 Thread Stefan
Using or where $data["description"] = "Description for product" and comes from db is the same thing. locale/your language/LC_MESSAGES/default.po file must have the translation for string "Product description". --~--~-~--~~~---~--~~ You received this message bec

Re: i18n language name

2007-02-23 Thread Stefan
Ok, I understand. Something about the __() function: I wanted to translate the title of a link : e($html- >link(__("LABEL_TERMS_CONDITIONS"), "/terms")); gives : Règles et Conditions, title outside the tags. The right solution : e($html->link(__("LABEL_TERMS_CONDITIONS", true), "/terms")); That

i18n language name

2007-02-23 Thread Stefan
Hi, The ISO language name for french is fra , fre. I made a directory app/locale/fra/LC_MESSAGES/ and put there a default.po and default.mo and followed the instructions about using i18n : $language = 'fra'; $this->Session->write('Config.language', $language); with a very simple page ( no cont

Ajax Updater and IE 6.0 errors

2006-12-16 Thread Stefan
If you are using the get method in ajax functions, use modrewrite (maybe it's not a modrewrite problem) and IE 6.0 reports errors add the dummy parameter to the ajax url option: WRONG URL: url = "/products/edit/2"; GOOD URL:url = "/products/edit/2/#";// even if the url has it's own parame

How To : Call the Model methods in beforeFilter in AppController

2006-10-07 Thread Stefan
In beforeFilter() in AppController it can be used : $this->{Inflector::singularize($this->name)}->findAll(); $this->{Inflector::singularize($this->name)}->read(); $this->{Inflector::singularize($this->name)}->query(); etc or $this->{Inflector::singularize($this->name)}->myfunction(); with myfu