Re: Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

2016-04-02 Thread Fabrício Muniz
Qual a dificuldade? 2016-04-02 18:09 GMT-03:00 Paulo Terra : > Estou tentando carregar o endereço a partir do CEP informado pelo usuário. > Apesar de encontrar várias pessoas perguntando por isso não encontro uma > resposta que funcione. Alguém já fez isso no CakePHP 3? > > --

Re: Database Error --- Error: SQLSTATE[42S02]: Base table or view not found: 1051 Unknown table 'Trade'

2014-11-10 Thread Fabrício Muniz
the log says: There's no join to the Trade table alias. Try to remove it from the fields key in your find(). Em 10/11/2014 09:45, Oluwasegun Adeleye Isaac highzi...@gmail.com escreveu: https://lh3.googleusercontent.com/-XHn5cb1sZgo/VGCknXfpLqI/Ags/Nx0GREa1HoM/s1600/error.PNG Hi

FileLog: error when renaming the filelog

2014-06-13 Thread Fabrício Muniz
Hi, I write an rest api that receive many request per seconds. I'm logging all the response (api_error, api_success, api_warning, api_info...) in the same specific log (api.log). The only override in the CakeLog::config() is: 'rotate' = 20 and there is a load balancing on the prod env. The

Re: How can I get the number of week in the year

2013-08-13 Thread Fabrício Muniz
Try to use a 'W' parameter in yours timestamp object manipulations: PHP pure: echo date('W', strtotime('2013-08-13')); in CakePHP: // called via TimeHelper echo $this-Time-format('W', $timestamp); // called as CakeTime App::uses('CakeTime', 'Utility'); echo CakeTime::format($timestamp, 'W');

Re: Add items to category

2013-05-13 Thread Fabrício Muniz
You can try to use a console command like: cake bake and use it to generate the respectives MVC - automagic ;) if your database is following the conversation, you will not have problems. 2013/5/13 Lilit lilitbaku...@gmail.com hi I have two tables` items and categories /categories/ id title

How to render a CSS/JS files with a version parameter?

2013-04-01 Thread Fabrício Muniz
Hello guys, I need help to solve the following problem: using: echo $ this- Html- css (array ('forms', 'tables', 'menu')); is rendered: link rel=stylesheet type=text/css href=/css/forms.css / link rel=stylesheet type=text/css href=/css/tables.css / link rel=stylesheet type=text/css