Cakephp 3 tag plugin

2016-01-08 Thread lorenzoshake
Is there a complete plugin for tags in cake3? i'm watching https://github.com/UseMuffin/Tags but is not complete ( can't edit, can't filter, etc etc) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you

Re: belongsToMany issue

2015-10-27 Thread lorenzoshake
Il giorno lunedì 26 ottobre 2015 18:58:55 UTC+1, John Andersen ha scritto: > > Is your Achievements class an extension of the Table class? > >> >> oh, yes ! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message

Re: belongsToMany issue

2015-10-26 Thread lorenzoshake
26 October 2015 18:44:29 UTC+2, lorenzoshake wrote: >> >> i 've a strange assoc problem: >> >> class Achievements >> { >> $this->belongsToMany('SocialUsers', [ >> 'foreignKey' => 'achievement_id', >> 'tar

belongsToMany issue

2015-10-26 Thread lorenzoshake
i 've a strange assoc problem: class Achievements { $this->belongsToMany('SocialUsers', [ 'foreignKey' => 'achievement_id', 'targetForeignKey' => 'user_id', 'joinTable' => 'achievements_users', 'through'=>'AchievementsUsers' ]); ...

Cake3, rss helper and cdata

2015-10-06 Thread lorenzoshake
How to display cdata with rss helper ? -- 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 stop receiving emails

Re: Compare 2 date in cake3

2015-09-02 Thread lorenzoshake
Il giorno mercoledì 2 settembre 2015 10:20:53 UTC+2, Anthony GRASSIOT ha scritto: > > Could you show your controller finction ? > these validation are used when using newEntity() or patchEntities'), not > save(). > > the other validation condition works fine ; here the method: public

Re: Compare 2 date in cake3

2015-09-02 Thread lorenzoshake
Il giorno mercoledì 2 settembre 2015 02:24:34 UTC+2, Anthony GRASSIOT ha scritto: > > 'custom',['rule' => [$this, 'checkDate']] > > this doesn't seems to be a correct syntax... Why don't you use one of the > proposed solution ? > > $value->gte raise errors ( is a query method); the strange

Re: Compare 2 date in cake3

2015-09-02 Thread lorenzoshake
Il giorno mercoledì 2 settembre 2015 11:24:15 UTC+2, Anthony GRASSIOT ha scritto: > > That what I thought. Validation is not applied if you set the value > directly with a setter like you does. You need to use patchEntity(). > > > i think so, but the other validation rules works fine! --

Re: Compare 2 date in cake3

2015-09-02 Thread lorenzoshake
Il giorno mercoledì 2 settembre 2015 12:17:42 UTC+2, Anthony GRASSIOT ha scritto: > > And that's normal and make sense because $calendar->start_date and > $calendar->end_date are the only fields for which you use setters... > >> >> ok, solved ;) just format date in array data first to process

Re: Compare 2 date in cake3

2015-09-01 Thread lorenzoshake
Il giorno martedì 1 settembre 2015 10:44:40 UTC+2, lorenzoshake ha scritto: > > > > Il giorno lunedì 31 agosto 2015 18:34:37 UTC+2, Anthony GRASSIOT ha > scritto: >> >> Maybe something like: >> >> 'compare' => [ >>

Re: Compare 2 date in cake3

2015-09-01 Thread lorenzoshake
Il giorno lunedì 31 agosto 2015 18:34:37 UTC+2, Anthony GRASSIOT ha scritto: > > Maybe something like: > > 'compare' => [ > 'rule' => function ($value, $context) { > return $value->gte($context['data']['start_date']); >

Compare 2 date in cake3

2015-08-31 Thread lorenzoshake
I've been tried with: $validator ->add('end_date', [ 'valid'=> ['rule' => 'date'] , 'compare' =>['rule' => ['comparison', '>' ,'start_date']] ] ); but doesn't work; how to validate start_date and end_date ( end must be greater than

cake 3, import a class stored in webroot

2015-06-25 Thread lorenzoshake
Hi, how can i import a class Foo stored in webroot/class/Foo.php in cake3? -- 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

Re: Editor for Cakephp

2015-06-23 Thread lorenzoshake
Il giorno sabato 13 giugno 2015 09:12:42 UTC+2, Pamela Whittaker ha scritto: What do you suggest as an editor for CakePHP please? I use Dreamweaver cs6 for PHP but that doesn't open .ctp files. Thanks coda 2 -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

View Cells cache

2015-03-06 Thread lorenzoshake
hi, i'm develop with cake 3 and i'm using view cells feature cache. The cache is created but the method called is always called. Example: $cell = $this-cell('Posts::getLatest', [], ['cache' = true]); echo $cell; the cache is created but i put an echo in getLatest method, the echo will print:

Re: can't get locale from view

2013-08-27 Thread lorenzoshake
solved, can't use variables in __d function -- 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 stop receiving

can't get locale from view

2013-08-26 Thread lorenzoshake
when i try to launch cake i18n extract --plugin Pluginame i get: Invalid marker content in viewfile.ctp:79 * __d( PLUGIN_DOMAIN,'delete') for all messages in views ; if i open the default.pot file i get only the message that i put in models ( no __d function ) every help is welcome ;)

cakephp lost prefix in associations

2013-04-11 Thread lorenzoshake
i'm writing a cake plugin: everythings works fine but if i link models (belongsTo)got errors: *Error: *Table *table_name* for model *model_bame* was not found in datasource *default*. If i remove belongsTo it's all ok! I put the prefix in the AppModel plugin class: AppModel Plugin Class:

Re: how to implement Smarty 3?

2012-11-29 Thread lorenzoshake
Il giorno sabato 17 novembre 2012 15:21:56 UTC+1, Martin Aguilar ha scritto: For years I've been working on my own framework but now I wan't to migrate to cakephp. On my framework I used smarty for themes and to separate code from views. I always find smarty clean, nice and with a very

pagination with lat lng

2012-08-03 Thread lorenzoshake
morning, i have a problem with cakephp 1.3: $this-paginate['fields'] = id, $sql_for_distance as distance; $data = $this-paginate('Item', array('distance 50' )); I got mysql error: field distance not exists. Anyone got the same error? Solution? Thanks in advance -- Our newest site for the

Re: pagination with lat lng

2012-08-03 Thread lorenzoshake
$sql_for_distance is the classic function to calculate distance with latlng -- 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 help others with their CakePHP related questions. To