localize table header

2015-03-10 Thread Radharadhya Dasa
Hi, How to localize model field names in table header in CakePHP 3? echo $this-Paginator-sort('User.name') will give me User name, but I would need it localized. rrd -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this

Re: Condition with AND and ARRAY

2015-03-10 Thread michel martins
But worked with IN and it don't made the search correctly. When I click in filter tag it shows me all products with tags selected, and not the products with the combined tags. Example: Product 1 - tags: mom - child - birthday Product 2 - tags: mom - adult - party Product 3 - tags: mom -

Re: Schema migration in CakePHP-3

2015-03-10 Thread Gaurav Kumar
Thank you. On Monday, March 9, 2015 at 10:33:28 AM UTC+5:30, Dakota wrote: How do you delete the table? If you simply run DROP TABLE too; then the migration won't run again since Phinx still believes that the migration has run. To undo a migration you need to run bin/cake migrations

Re: localize table header

2015-03-10 Thread José Lorenzo
Check the other arguments of that function :) On Tuesday, March 10, 2015 at 2:18:31 PM UTC+1, Radharadhya Dasa wrote: Hi, How to localize model field names in table header in CakePHP 3? echo $this-Paginator-sort('User.name') will give me User name, but I would need it localized. rrd

Debugging Nested Associations, Containable

2015-03-10 Thread Ricardo Vieitez
Hello, I am trying to interrelate models from different data sources (Oracle and Active Directory in this case), and I am getting some funny behavior from recursive associations. Just to clarify: single level association work well. So, consider model A belongsTo B, and model B hasMany A. This