Re: Magic of UpdateAll

2014-07-17 Thread Maicon Pinto
This can help you? $this-Picture-query(UPDATE User SET status='active';); Em terça-feira, 17 de junho de 2014 09h10min30s UTC-3, સાદીકહસન પલસાણીયા escreveu: $this-loadModel('User'); $this-User-updateAll(array('stauts'='active'),array()); Above code equvivalent SQL query is generated like

Re: Start x skeleton x Crud

2014-05-27 Thread Maicon Pinto
Oie Arlei, O meu lugar é na documentação mesmo. Existe um tutorial para iniciantes. Se já souber como funciona o MVC, vai ser barbada. http://book.cakephp.org/2.0/pt/getting-started.html Qualquer coisa avisa. Em domingo, 25 de maio de 2014 10h45min25s UTC-3, Arlei Ferreira Farnetani

Re: CakePHP 1.2 Layout error

2013-01-02 Thread Maicon Pinto
Hello Marco, Do you can to put of source code of your Layout? ;) Em quarta-feira, 2 de janeiro de 2013 03h39min30s UTC-3, marco metal escreveu: Hi, I made a custom layout for admin panel. The problem is when i validated my HTML i am getting an error ** *Non-space characters found

Re: queries on HABTM relationships

2013-01-02 Thread Maicon Pinto
array('*id*'='can_access_admin') Do you have sure is ID? Usually ID is numeric. Em terça-feira, 1 de janeiro de 2013 19h23min58s UTC-3, Stefano Campanella escreveu: Hello all, this is my first time posting here. I recently started to study how to use CakePHP and I'm trying to develop

Chat with CakePHP...

2012-02-23 Thread Maicon Pinto
Hello, I'm working with cakephp, and I want to develop a chat. Does anyone here have a simple tutorial how to tip? Thanks... -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others

ACL - Access Control List - Lista de Controle de Acesso

2011-09-10 Thread Maicon Pinto
Galera, sei que o espaço aqui é em inglês, mas sei que tem uma galera brasileira, que posta aqui. Alguém aqui trabalha com ACL? Estou seguindo o exemplo abaixo: http://book.cakephp.org/pt/view/1543/Sistema-Simples-com-controle-ACL-Lista-de-controle Gostaria de implementar maior restrição à

Re: Different ACL permissions

2011-09-08 Thread Maicon Pinto
Eu não sei se isso pode ajudar, mas quando fiz este exemplo: http://book.cakephp.org/view/1550/Setting-up-permissions Faltava carregar o Modelo, desta forma: $this-loadModel('Group'); sendo o código parcial: function initDB() { *$this-loadModel('Group');* $group = $this-Group;