Questions tagged [cakephp-3.1]

Questions about the 3.1.x branch of the CakePHP MVC framework. Use this tag in combination with the general [cakephp] tag. If your question applies to CakePHP more generally, use only the [cakephp] tag.

CakePHP 3.1

CackePHP is a PHP development framework using Associative Data Mapping, Front Controller and MVC design patterns.

Version 3.1.0 was released in September 2015.

Resources

109 questions
0
votes
1 answer

CakePHP 3: Upload multiple files and save file names in associated model?

I need to create the upload process where the user can upload multiple files at once, using the file field with html5 multiple attr. Name of the file must be saved in the associated model. I can run successfully upload one file and save the file…
Salines
  • 5,674
  • 3
  • 25
  • 50
0
votes
3 answers

CakePHP 3.1: Save in joinTable same foreign key but different _joinData

I have this association in model that i want to save: $this->belongsToMany('Tags', [ 'className' => 'Tags', 'joinTable' => 'tags_associations', 'foreignKey' => 'foreign_key', 'targetForeignKey' => 'tag_id' ]); I want to save in associated…
DarioLap
  • 177
  • 2
  • 13
0
votes
1 answer

CakePHP 3.1: Validation for translate behaviour fields (i18n)

I'm trying to add an item including multiple translations in one form with the CakePHP translate behaviour. How can I validate the translation fields? E.g. make specific languages required? Let's assume you have a simple items table with a separate…
0
votes
0 answers

CakePHP 3.x How to call Api -> controller -> action From Src -> controller -> action?

We're trying to build another app for API purposes so according our requirements we've made changes in the composer file to autoload api Controller and Model etc. Like this: "autoload": { "psr-4": { "App\\": "src" …
Vinod Patidar
  • 685
  • 4
  • 17
1 2 3 4 5 6 7
8