Questions tagged as 'cakephp'

1
answer

Dropdown with default value and option "all"

Using CakePHP in my project, I created a dropdown to use to search the database for values and strings . I need to create an "all" option to search all the results and to be the "default" option of this dropdown . How can I do this? Co...
asked by 09.01.2015 / 16:26
1
answer

true giving problem (bug) in code [closed]

Good evening guys, I was developing a script in php and when I put the true being passed by parameter to a function into an array dynamically, it gave a bug. I can not explain the right bug, but the function works pretty much like array_uniqu...
asked by 30.11.2018 / 02:13
2
answers

View neighborhood according to City - CAKEPHP

I'm using cakephp in a real estate project, when I add a real estate the client selects the city, so I need to be listed the list of neighborhoods in this city .... View / add: echo $this->Form->input('cidade', array('label...
asked by 27.02.2014 / 12:57
1
answer

CakePhp via Shell returns error: class HelloShell could not be loaded

I configured and installed everything with CakePhp for use via the command line in ubuntu. I created and saved the following: class HelloShell extends AppShell { public function main() { $this->out('Hello world.'); } } What is their...
asked by 09.02.2014 / 11:22
1
answer

How to translate cakephp 3

I generated the default.pot , I created the pt_BR folder at: link /src/Locale/pt_BR/default.po and put it in config / app.php 'defaultLocale' => env('APP_DEFAULT_LOCALE', 'pt_BR'), translation made with poEdit , but does...
asked by 15.07.2016 / 00:56
1
answer

Testing app locally in browser?

I am trying to develop a hybrid application using ionic and angularjs and for this I am testing in the browser. When I do ionic serve it creates a local server with the address localhost:8100/#/main and my webservice is also in...
asked by 13.11.2015 / 03:15
1
answer

What is the appropriate place to allocate Javascript and CSS libraries in CakePHP 3

What is the appropriate place to allocate the Javascript and CSS libraries and plugins in CakePHP 3, since there was a major change in the directory structure of this version to earlier. All files .js and .css have...
asked by 24.07.2015 / 18:24
1
answer

How to use beforeSave in CakePHP 3?

I'm trying to get the image array to handle In CakePHP 2, I did this: public function beforeSave($options = array()) { if(!empty($this->data['User']['picture']['name'])... Could someone explain the new syntax of Cake 3:...
asked by 08.05.2015 / 02:21
1
answer

Modal edit cakephp

I'm doing a CRUD all in my INDEX but I'm having trouble with the bootstrap modal parts. I made an EDIT button where it gets id but when I click it it always follows the modal empty. <a data-toggle="modal" data-target="#myModal2" class="btn...
asked by 09.05.2015 / 15:45
1
answer

Get value from a radius in jquery cakephp

In my code I have a radio and would like to get the selected option in a variable in my jquery function. Button Input: <?php echo $this->Form->input('attendance_status_id', array( 'type' => 'radio',...
asked by 09.04.2015 / 23:14