Questions tagged as 'cakephp-3'

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

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

Leave component following the CakePHP standard

How can I improve this CakePHP 3.0 Component (inside the controller folder)    Question discussed in: Post functional code in stackoverflow for refactoring? 1st: to use external libs (stored in the vendor folder) I'm using th...
asked by 02.12.2015 / 14:14
0
answers

CakePHP "action" with various functions

I have a few points about how I can improve this "add action" in my "controller": Some descriptions: In the system the user can upload a Product to a single form, in the system a Product is composed of Product , Product...
asked by 02.12.2015 / 17:13
0
answers

How to insert async and defer attributes without the value with CakePHP 3?

I'm using the CakePHP 3.0.3 PHP Framework and would like to know how to enter the keywords defer and async in the script tags and omit the values: / p> How to insert a script with the framework: <?= $this->Html->script('jquery-1...
asked by 23.07.2015 / 15:08
1
answer

Access method using dash (-) in URL CakePHP 3

I have a signature method: public function mostPopular() I'm trying to access it via URL as follows: products/most-popular however I'm being directed to an Error page:    The most popular action is not defined in Products...
asked by 31.07.2015 / 23:29
1
answer

Failed to pass html menu to CakePHP

In the link below I have a perfectly working Menu in Codepen as below link: link Starting CSS #DPrincipais { display: block; } #TrabalhoRendimento { display: none; } #Referencia { display: none; } #Comprovante { display: none;...
asked by 30.11.2017 / 21:09
1
answer

CakePHP 3 - How to do rollback

In cakephp 2, you save them in a transactional way with $data_source->begin(); , $data_source->commit(); , or $data_source->rollback(); . So when I needed to insert into more than one table, and the data would be depen...
asked by 13.12.2016 / 21:12
1
answer

Change admin access URL

Galera, is the following: I create several sites and systems, and most of them exist in the administrative area. I do until then in the basics of being "urldosite.com.br/ admin ". Now, for the sake of security too, I want to start exchanging...
asked by 05.10.2016 / 17:06
1
answer

How to fix the error Impossible to generate condition with empty list of values for field (Tags.title)

I'm playing cakephp 3 by doing the cookbook bookmarker tutorial. I'm implementing the action in controller bookmarks / tags, but when trying to access the error appear the title of the question: Impossible to generate condition with empty list o...
asked by 11.07.2016 / 20:30