Questions tagged as 'cakephp'

1
answer

Problems relating CakePhp Templates

This is the Model User class User extends AppModel { public $name = 'User'; public $useTable = 'users'; public $displayField = 'name'; public $belongsTo = array( 'Role' => array( 'className' => 'Role', 'f...
asked by 04.04.2014 / 16:09
2
answers

Fatal error: Can not unset string offsets

After uploading my site, the form to insert images no longer works, clicking the button to save I get:    Fatal error: Can not unset string offsets in ... app / Plugin / Uploader / Model / Behavior / FileValidationBehavior.php on line...
asked by 07.05.2014 / 15:53
3
answers

How to display in alphabetical order - Cakephp

I'm listing neighborhoods, when I select instead of getting the value from the list, json_encode is returning its position. ex: -BAIRRO I -BIRTH II If I select "Neighborhood II", it will return me: "1" "0" -BAIRRO I "1" -BAIRRO I...
asked by 21.02.2014 / 13:14
1
answer

Update with HABTM template - CakePHP

I'm having trouble inserting or changing data using the HABTM template, it does not recognize 3 fields, but is recognizing hidden fields normally. It follows the files with programming, they are 3 tables, one with the data of the clients, oth...
asked by 29.04.2014 / 16:38
0
answers

Use mysql view with cakephp

Hello. I look for expenses according to certain parameters and display the results in the cakephp view. But when I delete an expense, I have to search again. How do I resolve this without having to search every time I delete a result? Would a vi...
asked by 16.12.2018 / 00:55
0
answers

Fill in two fields (Form-input) with linked selection

Personal I have a problem, I find myself in the following situation I have a product batch registration form, which in practice it searches for a product already registered, but I need to expand this batch register, which in addition to searc...
asked by 17.12.2018 / 14:11
0
answers

URL not found in CakePHP

I'm using CakePHP's Bake to make it easier to develop, I've analyzed the Models and Controllers that it generated and they're ok. Follow the index method line in one of the controllers. public function index() { $this->Category->recu...
asked by 05.12.2018 / 18:02
1
answer

How to save a HABTM after the save in the controller?

I have a table on Users HABTM Solicitations . After salver my request, I want to include a new data in table solicitations_users if($this->request->is('post')) { $this->Solicitation->save($this->request->...
asked by 17.03.2014 / 14:28
1
answer

Configure Cake bake for Cake Version 2.x

I have a Cake 2.3 libary on my Ubuntu 13.10 configured and running normally. When I try to use cake bake, it automatically assumes Cake 1.3 Welcome to CakePHP v1.3.14 Console Question: How do I configure cake bake to use Cake version 2.3?...
asked by 17.03.2014 / 15:27
0
answers

How to insert custom content inside a JavaScript lightBox?

Good afternoon guys, need a help, I'm learning javascript in the marra and I would like to know how to insert content (in this case a .ctp file) into this light box. I'm using Cake PHP Form Button echo $this->Html->div("col-md-4"...
asked by 25.10.2018 / 19:46