Re: Storing encrypted value using getter/setter not working. Stored in plain text.

2016-03-16 Thread Willem
Eventually i changed it to a varbinary(65000) column and it started to work. In Cakephp 2 it worked with a varchar column. now it needs to be binary in 3 and have enough space. On Wednesday, March 16, 2016 at 10:19:38 AM UTC+1, heavyKevy wrote: > > I hate to state the obvious, but did you verify

Re: Storing encrypted value using getter/setter not working. Stored in plain text.

2016-03-15 Thread Willem Schwarte
n sus aciertos?, si yo aprendo de mis errores > constantemente... > > > 2016-03-15 13:46 GMT-05:00 Willem : >> saving to the database cuts off the encrypted data. varchar(255) and text >> fields both have this issue.. >> is this a bug in CakePHP >> -- >> Sign u

Re: Storing encrypted value using getter/setter not working. Stored in plain text.

2016-03-15 Thread Willem
*saving to the database cuts off the encrypted data. varchar(255) and text fields both have this issue.. * *is this a bug in CakePHP* -- Sign up for our Newsletter for updates. http://cakephp.org/newsletter/signup We will soon be closing this Google Group. But don't worry, we have something be

Re: Storing encrypted value using getter/setter not working. Stored in plain text.

2016-03-15 Thread Willem
When I try as follows, the value gets stored encryted, but I cannot read it as the getDecryptedUsername function returns false at the decrypt line: protected function _setUsername($username) { $key = 'wt1U5MACWJFTXGenFoZoiLwQGrLgdbHA'; if(strlen($username) > 0) { $username = Security::encrypt

Storing encrypted value using getter/setter not working. Stored in plain text.

2016-03-15 Thread Willem
I am trying to save a string value in the database. this value needs to be encrypted. I tried to create a _set and _get function to encrypt/decrypt this. here is the code: protected function _setUsername($username) { $key = 'wt1U5MACWJFTXGenFoZoiLwQGrLgdbHA'; if(strlen($username) > 0) { $u

Re: What is the meaning of this error in cakephp 3?

2016-03-14 Thread Willem Schwarte
So what was the problem? > Op 14 mrt. 2016 om 12:43 heeft Clement Crownrise > het volgende geschreven: > > Thanks All, the error has been fixed. > > > >> On Saturday, March 12, 2016 at 10:30:25 AM UTC+1, Clement Crownrise wrote: >> Hello, I am doing the blog tutorial in cakephp 3, but I got

Re: What is the meaning of this error in cakephp 3?

2016-03-13 Thread Willem Schwarte
Yes. That should solve it. - willem > Op 13 mrt. 2016 om 08:42 heeft heavyKevy het > volgende geschreven: > > You also need to make sure that you add the following line near the top of > the file after the namespace with the other use statements: > > use Cake\Event\Eve

Re: What is the meaning of this error in cakephp 3?

2016-03-12 Thread Willem Schwarte
Just as it says. You need to have the same method signature as the one you are overriding. Thus: public function beforeFilter(Event $event) { return null; } you forgot the parameter. Willem > On 12 Mar 2016, at 10:30, Clement Crownrise > wrote: > > Hello, I am do

Re: How To / Example of OO Inheritance for CakePHP 3

2016-01-26 Thread Willem
, 2016 at 4:50:52 PM UTC+1, Willem wrote: > > > how would one create a CakePHP3 app and what database tabels would i need > to create an app that uses inheritance. > > for example fictional setup: > > [Person] <--- [Customer] > [Person]<--- [Manager] > >

How To / Example of OO Inheritance for CakePHP 3

2016-01-25 Thread Willem
how would one create a CakePHP3 app and what database tabels would i need to create an app that uses inheritance. for example fictional setup: [Person] <--- [Customer] [Person]<--- [Manager] All Persons have "name". Customer has "order_amount". Manager has "sales_total". Person has a method

CakePHP 3 - Catch invalidargument email -> to exception

2015-12-29 Thread Willem
How can we catch an invalid email exception? Cake throws and invalidargumentexception. Invalid email: "bassdsd.cs#adcdc.com"InvalidArgumentException This does not work, the catch is not reached: $toEmailAddress = "bassdsd.cs#adcdc.com"; $email = new Email('default'); try { $email->t

cakephp 3 Insert with Query Builder update Timestamp fields

2015-12-22 Thread Willem
Using the query builder to insert multiple rows of data the timestamp fields are not automatically updated, is this correct? so i changed my code a little to add the fields myself. Not sure if this is the best way or am i missing something $oQuery = $this->query(); > > if (($handle = fopen($t

Seeking some CakePHP tutoring

2015-09-20 Thread Willem
Why not just install wordpress as a cms for a simple website? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and

Re: Editor for Cakephp

2015-06-23 Thread Willem Schwarte (Prive)
I like the fact that with PHPStorm you have zero-config debugging. That is. install wamp, install Phpstorm, set xdebug config option in php.ini, start debugging.Piece of cake :-) On Wed, Jun 24, 2015 at 5:52 AM, Reuben wrote: > For a long time, I used Eclipse with PDT, and associated .ctp files

Re: Editor for Cakephp

2015-06-13 Thread Willem Schwarte
Phpstorm is awesome > Op 11 jun. 2015 om 11:45 heeft Pamela Whittaker > het volgende geschreven: > > What do you suggest as an editor for CakePHP please? I use Dreamweaver cs6 > for PHP but that doesn't open .ctp files. Thanks > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > F

Detecting file size overflow (POST Content-Length of 30980857 bytes exceeds the limit of 2097152 bytes)

2015-04-13 Thread Willem
When uploading a file bigger then the post_max_size setting in php.ini the $_FILES global will be empty. CakePHP does not give an error and saves the rest of the data (as the $this->data still has data for the rest of the model) How can i catch this in CakePHP? -- Like Us on FaceBook https:

Re: [Cake 2.6.3] Cake's FileUpload Validation not working; what is wrong?

2015-04-13 Thread Willem
> > On Monday, 13 April 2015 11:17:13 UTC+3, Willem wrote: >> >> I have a model "Attachment" which Belongs to another model (hasMany >> Attachment). >> >> In model Attachment I put a validator (from the Cake helpbook) to check >> against filet

Re: [Cake 2.6.3] Cake's FileUpload Validation not working; what is wrong?

2015-04-13 Thread Willem
gt; you have points to a field named "submittedFile" :) > Which is the correct one? > Enjoy, John > > On Monday, 13 April 2015 11:17:13 UTC+3, Willem wrote: >> >> I have a model "Attachment" which Belongs to another model (hasMany >> Attachment).

[Cake 2.6.3] Cake's FileUpload Validation not working; what is wrong?

2015-04-13 Thread Willem
I have a model "Attachment" which Belongs to another model (hasMany Attachment). In model Attachment I put a validator (from the Cake helpbook) to check against filetypes. After saveAssociated i would expect an error if uploaded a .txt file, but the model is save successfully? *Add.ctp* for

Re: Generate XML using controller and force it to sent as download

2014-01-02 Thread Willem
Still haven't figured this out. Is this at all possible with CakePHP? I can't imagine it would not be possible. thanks On Thursday, December 19, 2013 5:16:50 PM UTC+1, Willem wrote: > > Hi, > > Goal: I have a button on a page. When user clicks it should generate a X

Generate XML using controller and force it to sent as download

2013-12-20 Thread Willem
Hi, Goal: I have a button on a page. When user clicks it should generate a XML file and make it download (instead of opening in browser window). Cake version: 1.3 So I create a HTML link like this: link( __('Generate XML file', true), > array('action'=>'generateXMLFile','ext'=>'xml'), > array

RSS & RequestHandler problem in Safari

2008-12-19 Thread willem
Hi everyone, I'm just getting started using cakePHP by going through the IBM tutorials, and I have a problem which I don't understand, and I also haven't found a solution on the web. I'm trying to set up an RSS feed using the RSS helper and the RequestHandler component. Everything works exactly a