Re: Overriding translations

2015-11-27 Thread Aday Talavera
C), José Lorenzo escribió: > > Did you read this part? > > > http://book.cakephp.org/3.0/en/core-libraries/internationalization-and-localization.html#creating-your-own-translators > > On Tuesday, November 24, 2015 at 3:00:30 PM UTC+1, Aday Talavera wrote: >> >> My current

Overriding translations

2015-11-24 Thread Aday Talavera
My current and default app locale is "es_ES". I generated my default.pot using I18n shell and my en_US translations in default.po and default.mo inside en_US folder. es_ES doesn't have .po and .mo files at all, because the "native language" of the app strings is es_ES. How can I override a tra

Re: Encyption/Decryption of Form Fields in CakePHP 3

2015-09-30 Thread Aday Talavera
You can try to use my CipherBehavior plugin. https://github.com/adayth/cakephp-cipher-behavior El domingo, 23 de agosto de 2015, 22:13:34 (UTC+1), Alexander Slotty escribió: > > Hello, > > I was hoping someone could help with my task. It should be "relatively" > simple: I want to have some for

Re: Avoid converting date/datetime fields to Cake/Time instances with CakePHP 3

2015-06-13 Thread Aday Talavera
will disable the converting in the whole application > But in any case, what are the reasons for disabling it? > > On Friday, June 12, 2015 at 12:17:37 PM UTC+2, Aday Talavera wrote: >> >> It seems that the only way is to change column schema type from 'date' to >

Re: Avoid converting date/datetime fields to Cake/Time instances with CakePHP 3

2015-06-12 Thread Aday Talavera
It seems that the only way is to change column schema type from 'date' to 'string'. Maybe could be a good idea to have a function to do such changes on an easy way. El miércoles, 13 de mayo de 2015, 21:33:08 (UTC+1), Aday Talavera escribió: > > First off, sorry fo

Re: Avoid converting date/datetime fields to Cake/Time instances with CakePHP 3

2015-05-25 Thread Aday Talavera
Up! El miércoles, 13 de mayo de 2015, 21:33:08 (UTC+1), Aday Talavera escribió: > > First off, sorry for the "question spam". I'm just posting all issues of > the last two weeks in a short period of time. I hope that this isn't > disturbing anyone. > > Whi

Re: hello every body; I have a little problem. when I use localhost in bookmarker example, it not take css format options, when I use localhost:8765 all works ok, where is the diference???

2015-05-25 Thread Aday Talavera
Probably you don't have mod rewrite enabled. El viernes, 15 de mayo de 2015, 20:08:15 (UTC+1), Jesus Cantú escribió: > > hello every body; > > I'm new with cake, I'm traying to do the examples, then I used the > composer and I create database files of bookmarker, but I have a little > problem

Avoid converting date/datetime fields to Cake/Time instances with CakePHP 3

2015-05-13 Thread Aday Talavera
First off, sorry for the "question spam". I'm just posting all issues of the last two weeks in a short period of time. I hope that this isn't disturbing anyone. While trying to figure how to use combine with collections and entities (is in other thread) I didn't found an easy way to avoid date

Re: Appliying translate behavior in 3.0 to already existing rows

2015-05-13 Thread Aday Talavera
ble > > On Tuesday, May 12, 2015 at 10:40:25 AM UTC+2, Aday Talavera wrote: >> >> While following the guide >> http://book.cakephp.org/3.0/en/orm/behaviors/translate.html >> <http://www.google.com/url?q=http%3A%2F%2Fbook.cakephp.org%2F3.0%2Fen%2Form%2Fbehavi

Re: cakephp3 - Trying to use combine() with entities without sucess

2015-05-12 Thread Aday Talavera
function in the second argument will return the same row without > extracting any property from it. This is also equivalent to doing: > > $combined = collection($entities)->indexBy('id')->groupBy('group'); > > On Saturday, May 9, 2015 at 4:33:54 PM UTC+2, Aday

Appliying translate behavior in 3.0 to already existing rows

2015-05-12 Thread Aday Talavera
While following the guide http://book.cakephp.org/3.0/en/orm/behaviors/translate.html to apply translate behaviour to my models I detected some problems, but I don't know if I'm following bad the guide or if the guide needs to be improved. Let me explain using an example. I had this table in

Re: Retrieving data from blob data type - cakephp 3

2015-05-10 Thread Aday Talavera
For Cake3, look at these manual entries: http://book.cakephp.org/3.0/en/orm/saving-data.html#saving-complex-types http://book.cakephp.org/3.0/en/orm/database-basics.html#adding-custom-database-types For Cake2 you could use SerializableBehaviour from CakeDC/Utils plugin: https://github.com/CakeDC

cakephp3 - Trying to use combine() with entities without sucess

2015-05-09 Thread Aday Talavera
In CakePHP 2 I usually used Hash::combine to provide me some useful grouping of the DB data. Let me show you an example: Original array: find('all', $query); ?> // Output array( (int) 0 => array( 'DataRow' => array( 'id' => '70', 'section_id' => '2',

Re: Html Helper: Better way to generate table ?

2015-05-09 Thread Aday Talavera
I've this methods in a helper: Html->tag('table', null, array('class' => $table_class)); if (!empty($headers)) { $content .= $this->Html->tag('thead', $this->Html->tableHeaders( $headers, array('class' => $header_class))); } if (!empty($rows)) { $co