Re: Cake php 3.0

2015-12-22 Thread Leandro Machado Pereira
Bruna, você pode incluir no seu router.php a configuração da rota padrão. http://book.cakephp.org/3.0/en/development/routing.html#quick-tour On Tue, Dec 22, 2015, 08:39 wrote: > Boa tarde..estou usando o cake php 3.0,no meu localhost a aplicação ja > esta pronta

Re: Configuration Problem

2015-11-25 Thread Leandro Machado Pereira
Man, you need to run composer for install dependencies of cake. See this post with the same problem of you: http://stackoverflow.com/questions/30412844/installing-cakephp-3-manually-without-composer []'s Em ter, 24 de nov de 2015 às 20:42, sebastian Oldani < sebastianold...@gmail.com> escreveu:

Re: How to run multiple development cakephp projects on the same cake server?

2015-08-17 Thread Leandro Machado Pereira
You can use another port to second application. See this example in cake book: http://book.cakephp.org/3.0/en/installation.html#development-server Em seg, 17 de ago de 2015 às 04:40, Raul Magdalena Catala raulmagdal...@gmail.com escreveu: How can i run multiple development cakephp projects

Re: Cakephp 2.6.4 - On IIS localhost works fine, after uplocal to Hostgator don't

2015-05-05 Thread Leandro Machado Pereira
Try to enable the display_errors options in your php.ini or in .htaccess. You shouldn't had use the session with the native Em ter, 5 de mai de 2015 11:18, CLÁUDIO BAIMA baimaclau...@gmail.com escreveu: Hi all, At our local server we developed an application (it is a Win 7 environment with

Re: How do I update cakephp existing app?

2015-01-28 Thread Leandro Machado Pereira
You can do composer.phar update Em qua, 28 de jan de 2015 14:22, frocco faro...@gmail.com escreveu: Hello, I see cakephp 3 has been updated, how do I update my current app that is using an older version of cakephp 3? Thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find

Re: CakePHP 3.0, Any chat application for cakephp?

2015-01-21 Thread Leandro Machado Pereira
to communicate with the Node.js server? ;) I assume you suggest him to use Websockets but they'll work with php as well, see the Ratchet lib for php. On Tuesday, January 20, 2015 at 10:31:18 AM UTC+1, Leandro Machado Pereira wrote: I think node.js is more better for chat than ajax. Em ter, 20 de jan

Re: CakePHP 3.0, Any chat application for cakephp?

2015-01-20 Thread Leandro Machado Pereira
I think node.js is more better for chat than ajax. Em ter, 20 de jan de 2015 06:21, Jungsuk Lee eric.se...@gmail.com escreveu: Hi I'm working on cakephp to build a website and i'd like to add chatting feature in it. and I'm considering Javascript based chat application. Using AJAX was too

Re: 3.0 e mysql fields ENUM

2015-01-20 Thread Leandro Machado Pereira
/ mark Am Donnerstag, 15. Januar 2015 23:18:45 UTC+1 schrieb Leandro Machado Pereira: I gave up using enum. Thanks. Em Thu Jan 15 2015 at 17:31:51, Leandro Machado Pereira llper...@gmail.com escreveu: Hey guy, I tried to do work my fields with mysql ENUM. In cake 2.0 i used this helper

3.0 e mysql fields ENUM

2015-01-15 Thread Leandro Machado Pereira
Hey guy, I tried to do work my fields with mysql ENUM. In cake 2.0 i used this helper. http://www.drawbackz.com/stack/251186/cakephp-2-0-use-mysql-enum-field-with-form-helper-to-create-select-input.html But in cake 3.0 i'm have dificults for work fine. I received errors in this line.

Re: 3.0 e mysql fields ENUM

2015-01-15 Thread Leandro Machado Pereira
I gave up using enum. Thanks. Em Thu Jan 15 2015 at 17:31:51, Leandro Machado Pereira llperei...@gmail.com escreveu: Hey guy, I tried to do work my fields with mysql ENUM. In cake 2.0 i used this helper. http://www.drawbackz.com/stack/251186/cakephp-2-0-use-mysql-enum-field-with-form

3.0 - Inflections

2015-01-13 Thread Leandro Machado Pereira
My friends, i try to customize my inflections for cake 3.0 rc1. When i used cake 2.0 i used this: // Plural to singular Inflector::rules('singular', [ 'rules' = [ '/^(.*)(oes|aes|aos)$/i' = '\1ao', ], 'irregular' = [ 'panels' = 'panel', 'Requests' =

Re: 3.0 - Inflections

2015-01-13 Thread Leandro Machado Pereira
So, i found the answer, but i'm testing yet. Inflector::rules('singular', ['/^(.*)(oes|aes|aos)$/i' = '\1ao', '/^(.*)ao$/i' = '\1oes']); Em Tue Jan 13 2015 at 10:30:55, Leandro Machado Pereira llperei...@gmail.com escreveu: My friends, i try to customize my inflections for cake 3.0 rc1

Re: CakeAdvent 2014

2014-12-04 Thread Leandro Machado Pereira
Thank you José, it's awesome! Em qui, 4 de dez de 2014 01:17, Jose Diaz-Gonzalez j...@savant.be escreveu: Hi All! My name is Jose Diaz-Gonzalez, one of the core developers of CakePHP. You may have seen me in some of your codebases (especially if you use cakephp-upload) or from homebrew-php.

Re: display pure html page without layout

2014-11-24 Thread Leandro Machado Pereira
Hey Guy, try this: http://paswellness.de/app/webroot/test/Massage_Video.html Em Mon Nov 24 2014 at 13:27:50, Frank Hassani p...@onefh.com escreveu: Hi Steven, trying it that way, but no luck yet http://files.panodome.com/uploads01/2014-11-24---16-27-02.jpg -- Like Us on FaceBook

Re: Cakephp 3.0 - How to apply condition at find list method

2014-11-20 Thread Leandro Machado Pereira
Hi Dear, see this: http://book.cakephp.org/3.0/en/orm/query-builder.html#the-query-object try this: $departments = $this-Companies-Departments-find('list') -select(['id', 'name']) -where(['id !=' = 1]) -order(['created' = 'DESC']); Em Thu Nov 20 2014 at 12:07:22,

Re: custumize $this-Html-link()

2014-11-10 Thread Leandro Machado Pereira
see this: http://stackoverflow.com/questions/16964599/how-to-write-html-tag-in-cakephp-link I hope help you. 2014-11-10 13:08 GMT-02:00 Yannick Nascimento yannicknascime...@gmail.com: https://lh3.googleusercontent.com/-wlDzHgOGX-c/VGDUvb_lDYI/BdI/QwDQB40_Y4o/s1600/link.PNG hi

Re: 3.0 - input without model name

2014-11-06 Thread Leandro Machado Pereira
@glk, if you do this: ?=$this-Form-create($contacts, ['type' = 'post', 'class' = 'well'])? ?=$this-Form-input('*Contacts*.nome',['label'='name:'])? ?=$this-Form-end(); ? But, in this example, you will have to change all the views. 2014-11-06 1:39 GMT-02:00 glk g...@kaup.com: Hello Mark,

Re: 3.0 - input without model name

2014-11-05 Thread Leandro Machado Pereira
Thank you Mark, for reply. http://pastebin.com/rL0eBfnZ 2014-11-05 10:45 GMT-02:00 mark_story mark.st...@gmail.com: What does come out for your form create() call and the input()? -mark -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP

Re: 3.0 - input without model name

2014-11-05 Thread Leandro Machado Pereira
the view putting in $this-Form-input('namemodel.nameipunt'); this change would spend much time. Sorry, for the last message broken. 2014-11-05 10:50 GMT-02:00 Leandro Machado Pereira llperei...@gmail.com: Thank you Mark, for reply. http://pastebin.com/rL0eBfnZ 2014-11-05 10:45 GMT-02:00

3.0 - input without model name

2014-11-04 Thread Leandro Machado Pereira
Hi people, i have trying to do a simple crud using cake 3.0. My controller https://github.com/llpereiras/meucake3/blob/master/src/Controller/ContatoController.php My formhelper, it's is a copy of the gourmet/twitterbootstrap

Re: UOLHost + Mod_Rewrite

2014-07-24 Thread Leandro Machado Pereira
Eduardo, eu tive aplicações no uol e não tive problemas. Eu usava: a href=?=Router::url('/', true)?contato/enviar span class=btn btn-primary col-md-12 Contato /span /a Em 23 de julho de 2014 15:07, Eduardo Monteiro edmonteiro...@gmail.com escreveu: Pessoal, Desenvolvi uma aplicação usando

Re: Sending a 404 header from the controller

2014-07-11 Thread Leandro Machado Pereira
You should see this http://pastebin.com/zNB6SFg7 2014-07-11 10:31 GMT-03:00 Alex Bovey a...@bovey.co.uk: Hello all, I would like one of my controller methods to be able to send a 404 Not Found header, but still render the view as normal. I've tried both of the following at the beginning

Re: 404 for all requests undefined in routers

2014-06-13 Thread Leandro Machado Pereira
Hi, see this: http://pastebin.com/zNB6SFg7 They are comments in portuguese, but this code is you will like to do. Regards. 2014-06-12 5:46 GMT-03:00 Anja Liebermann c...@anjaliebermann.de: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Can you please post at least a part of your setup?

Re: Start x skeleton x Crud

2014-05-27 Thread Leandro Machado Pereira
Arlei, a versão 3 está em desenvolvimento, bem avançado, então pode conter erros. Eu começaria com a versão 3 mesmo, pq o Model mudou bastante. Segue link da versão 3: http://book.cakephp.org/3.0/pt/getting-started.html Em 27 de maio de 2014 08:53, Maicon Pinto

Re: Unable to read uploaded file

2014-04-24 Thread Leandro Machado Pereira
See if your form have enctype=multipart/form-data Hugs 2014-04-24 16:52 GMT-03:00 Marco Maranao ma...@maranao.ca: Hello, As stated in the subject, using the File API, when I try to read an uploaded file to prepare it to save to the database, it's blank. Any insight is appreciated.

Re: iOS app development

2014-04-03 Thread Leandro Machado Pereira
Try using extension for Google Chrome, Chrome UA Spoofer, for simulation iOS user agent in your browser. Regards. 2014-04-03 7:28 GMT-03:00 Jeremy Burns jeremybu...@classoutfit.com: We're developing an iOS app alongside a CakePHP web app. At this point the iOS developer is using the XCode

Re: 3.0 - Cake not connecting to MySql DB

2014-03-16 Thread Leandro Machado Pereira
The error composer timeout, see this: https://getcomposer.org/doc/04-schema.md#config http://www.papayasoft.com/2013/08/22/composer-process-timeout-when-fetching-large-repositories/ Try use *COMPOSER_PROCESS_TIMEOUT=2000 php composer.phar install* 2014-03-16 6:38 GMT-03:00 AD7six

Re: Is Cake Dead Or Just Catching Up?

2014-03-12 Thread Leandro Machado Pereira
Hi, guys. I searched in stack overflow for tags cakephp, zend and laravel. I saw this cake and zend have 2.5~2.6k of answer to today versus laravel have 680. Cake have 28 asked today(150 this week) , Zend have 23 asked today(127 this week) and laravel have 23 asked today(254 this week). Tags

Re: Boris REPL with 3.x

2014-03-06 Thread Leandro Machado Pereira
try so namespace App\Controller; 2014-03-03 0:45 GMT-03:00 Dr. Tarique Sani tariques...@gmail.com: The console starts fine but I get Class 'App' not found whenever I try anything like App::uses to get started On Fri, Feb 28, 2014 at 5:59 PM, José Lorenzo jose@gmail.com wrote:

Re: phpCAS with CakePHP

2014-02-24 Thread Leandro Machado Pereira
Excuse me, but what is phpCas ? Thanks. 2014-02-24 9:03 GMT-03:00 Stephen S hellospeak...@gmail.com: Github[1] and the bakery[2]? [1] http://www.github.com [2] http://bakery.cakephp.org On 21 February 2014 20:41, Taylor Thomas datat...@gmail.com wrote: So I have a phpCAS auth

Re: vcalendar appended to multipart email as text/calendar MIME type

2014-02-24 Thread Leandro Machado Pereira
Try this http://support.microsoft.com/kb/287625/en 2014-02-22 19:49 GMT-03:00 Brian Love br...@brianflove.com: Hello, Does anyone know if it is possible to attach a vcalendar via CakeEmail? I have dug through the documentation and don't see a way to do this. The vcalendar needs to be

Re: CakePhp Auth Allow specific actions of specific controllers

2014-02-17 Thread Leandro Machado Pereira
So Try, $this-Auth-allow(array('controller' = 'users' , 'action' = 'view')); $this-Auth-allow(array('controller' = 'users' , 'action' = 'add')); $this-Auth-allow(array('controller' = 'users' , 'action' = 'edit')); 2014-02-15 22:35 GMT-02:00 euromark dereurom...@gmail.com: Where did you get

Re: Cake Php starter

2014-02-05 Thread Leandro Machado Pereira
Try start with this: http://book.cakephp.org/2.0/en/getting-started.html Regards 2014-02-05 Mohammed Azharuddin azharmsc.s...@gmail.com: Dear Group Members.., Hope this mail reach you all with good Health.. i going to start one project with cake i have not used Cake and any framework

Re: cakePHP File Download was not found or not readable

2014-01-24 Thread Leandro Machado Pereira
Verify if the path to folder is files/file_name 2014/1/24 Anna P apad...@o2.pl Thanks for suggestion, but I already tried that. The files folder has 0777 permissions. I also tried to change files attributes to 0777, but the problem still occurs. -- Like Us on FaceBook

Re: Getting time out Exception in Cakephp 3 while fetching through composer

2014-01-20 Thread Leandro Machado Pereira
See this: http://www.papayasoft.com/2013/08/22/composer-process-timeout-when-fetching-large-repositories/ Regards 2014/1/19 Bayezid Alam bayezid...@gmail.com Hi friends, i am trying to get CakePHP 3 through composer and getting Timeout exception. Please see the below attachment.

Re: CakePHP 3.0.0 dev preview 1 released

2014-01-07 Thread Leandro Machado Pereira
Hi, Mark ! Congratulations for your work, is very awesome. Excuse me for my bad English. I tried to install the version dev, i found some difficulties, but i now it's working. I followed this post : http://bakery.cakephp.org/articles/markstory/2014/01/05/cakephp_3_0_0_dev_preview_1_released I

Re: Layout question - adding a class to a wrapper div

2013-12-06 Thread Leandro Machado Pereira
Try this. In you controller $this-set('wrapperID', $myWrapperID); In your layout echo $wrapperID; Best regards; 2013/12/6 Dave M. mil...@gmail.com Let's say I have a default layout containing this body (overly-simplified): div id=wrapper div id=nav !-- some nav stuff -- /div

Re: Layout question - adding a class to a wrapper div

2013-12-06 Thread Leandro Machado Pereira
; } Is that too clumsy? On Friday, December 6, 2013 12:44:16 PM UTC-5, Leandro Machado Pereira wrote: Try this. In you controller $this-set('wrapperID', $myWrapperID); In your layout echo $wrapperID; Best regards; 2013/12/6 Dave M. mil...@gmail.com Let's say I have a default

Re: CAKEPHP Call Store procedure

2013-12-02 Thread Leandro Machado Pereira
I think, cake can be return true or false in $result. Try find result for some select; $this-begin(); $this-query(CALL procedure();); $result = $this-query(SELECT something); $this-commit(); 2013/12/2 Jorge Mariano Paz Flores mariano.paz.flo...@gmail.com Hi does anyone knows how to execute

Re: Cakephp CLI error

2013-11-21 Thread Leandro Machado Pereira
Try cd /path/to/cakephp/app call console\cake bake all 2013/11/20 David Rochelet droche...@gmail.com Hi, Seems you didn't configure your database. Try this : http://book.cakephp.org/2.0/fr/console-and-shells/code-generation-with-bake.html It is mentionned that you have first to create

Re: New to Cake PHP.

2013-10-12 Thread Leandro Machado Pereira
enable in php.ini in your installation. 2013/10/11 Shikhar kumar kke.shik...@gmail.com Hello, I have installed cake php version 2.4.1 but I am stuck to install it.My PHP version is 5.3.18. It shows the error:Class PDO not found.My question is: 1.What is Class PDO.? 2.How can I enable

Re: Accessing things in $this-request-data

2013-10-06 Thread Leandro Machado Pereira
Hello, When your used action add, after Item-save, the Model is updated the $this-Item-id, with the last id inserted. Try $this-Item-id I think, the Model is updated after your save. Regards 2013/10/3 Paul Willis paul.wil...@me.com In my ItemsController I'm editing an item and then want