Re: How can I use CakePHP on Heroku without getting logged out everytime I do an update?

2013-03-03 Thread Thiago Belem
Maybe storing the session on the database or with memcache? -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn

Code coverage from command line?

2013-03-02 Thread Thiago Belem
tests via the *phpunit*command and not the cake test shell? I tried to find/include a bootstrap file but I kept getting lots of class not found errors for App, CakeTestSuite and stuff. Regads., -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP

Re: Code coverage from command line?

2013-03-02 Thread Thiago Belem
Thank you Iva! I achieved the same results using a phpunit.xml file: https://gist.github.com/TiuTalk/5073889 How I get a code coverage report while using *cake test app case* :) -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando

Re: How to use TimeHelper to output the data like (Y minutes ago, X hours ago or Z days ago).

2013-03-01 Thread Thiago Belem
http://book.cakephp.org/2.0/en/core-utility-libraries/time.html#CakeTime::timeAgoInWords -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont...@thiagobelem.net *Skype / gTalk

Re: error on installation -db config file

2013-02-26 Thread Thiago Belem
Please, copy the content of the file to: https://gist.github.com/ and post the link here. -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont...@thiagobelem.net *Skype / gTalk

Re: error on installation -db config file

2013-02-26 Thread Thiago Belem
There's the } from the class definition? That's why I asked for the whole file. Maybe there's something wrong with your password? It contains ' ? And what about your PHP version? -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando

Re: error on installation -db config file

2013-02-26 Thread Thiago Belem
I would say the problem is here: 'prefix' = '',); Please, try again with the default database.php.default renamed to database.php without altering anything. -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http

Re: error on installation -db config file

2013-02-26 Thread Thiago Belem
Rename or delete the file and see if the error go away. -- Thiago Belem Enviado pelo celular Em 27/02/2013 00:58, Osgaldor Storm osgal...@gmail.com escreveu: The file is renamed database.php and I went and got a fresh copy of the file and the error was the same. I tried commenting out

Re: Model Subject not found

2013-02-25 Thread Thiago Belem
of the given model. Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com

Re: Google Analytics API - gapi plugin

2013-02-22 Thread Thiago Belem
Did you tried it outside CakePHP? -- Thiago Belem Enviado pelo celular Em 22/02/2013 18:24, April DeRossett april.deross...@gmail.com escreveu: Hello!! I finally figured out how to integrate the GAPI- Google Analytics AIP PHP Interface into my cake project...But, it is painfully slow. Here

Re: Aplicação não sobe

2013-02-15 Thread Thiago Belem
Renato, Essa lista é para discussões em inglês, para postar sua discussão em português usa a lista CakePHP Tuga cakephp...@googlegroups.com. Att., -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd

Re: Git submodule for behaviors/components/helpers

2013-02-08 Thread Thiago Belem
= StateMachine.StateMachine That's correct! :) -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn

Re: Best way to get Twitter bootstrap working!

2013-01-17 Thread Thiago Belem
https://github.com/slywalker/TwitterBootstrap -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn

Re: Login Session content

2013-01-09 Thread Thiago Belem
You have to update/rewrite the session values when the Group/User is saved... AFAIK there's no built-in way of doing this. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the

Re: Login Session content

2013-01-09 Thread Thiago Belem
Just to make it clear: AFAIK there's no built-in way of doing this (update the session when the user is saved) automatically, you need to do this on beforeSave or afterSave callbacks. []s -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP ---

Re: How to disable pluralize in cake 2.x

2012-08-28 Thread Thiago Belem
Irregular: People = Person Uninflected: Kelas = Kelas Cya, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn

Re: Migration from version 2.0 to version 2.2

2012-08-25 Thread Thiago Belem
I think you can just replace the core folder and you're good to GO. No need to create a new app. And take a look at the migration guides: http://book.cakephp.org/2.0/en/appendices.html -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this

Re: SecurityComponent black-holing my controller test case

2012-08-25 Thread Thiago Belem
Noone have a tip or a link to help me with this? Just show me some controller POST unittests and I'll figure it out. :) Att., -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont

Re: AppController::beforeRender() fails to fire when rendering an error page

2012-08-25 Thread Thiago Belem
AFAIK, only your application controllers extend AppController, not the error controller. So yeah, they will not trigger the AppController callbacks. Em 25/08/2012 22:15, amfriedman amfried...@gmail.com escreveu: Hey folks, strange problem here with Cake 2.2.1 When I have an error or

Re: Bcrypt Authenticate plugin

2012-08-23 Thread Thiago Belem
I'm already using the 2.3 native way of doing it, thanks -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to

SecurityComponent black-holing my controller test case

2012-08-23 Thread Thiago Belem
/TestSuite/ControllerTestCase.php : 189 Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn

Bcrypt Authenticate plugin

2012-08-22 Thread Thiago Belem
starting to work on the components? My intention is to create a BcryptAuth component where you can configure the hashing cost. I would love to hear from you all before goin any deep into this. Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de

Re: Bcrypt Authenticate plugin

2012-08-22 Thread Thiago Belem
Oh gosh.. I've almost reinvented the wheel :P I've already updated my project to use the native blowfish algo, thank you! :) -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To

Re: Form div styling

2012-08-16 Thread Thiago Belem
Maybe something like this: echo $this-Form-input('name', array('div' = array('class' = 'div-class'), 'before' = 'div class=input', 'after' = '/div')) Please check the cookbook: http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#options -- You received this message because you

Users who try to sell plugins/support on the list

2012-08-13 Thread Thiago Belem
Hey guys, Try to sell plugins - on the list - is not against the rules? If the user does not answer further questions, and only responds when it can pass the link to his plugin (paid), this does not show bad faith? What can we do about this? I remember that few days ago some of these users were

Re: Date picker for CakePHP 2.0.3

2012-08-13 Thread Thiago Belem
Use a class, not an ID... Em 13/08/2012 21:04, Paolo pmoscate...@gmail.com escreveu: HELP! It worked fine with your step-by-step instructions, Florin. However, I'm building a search form where I need 2 different datepickers, but it's not working. I guess the problem is that two DOM elements

Re: Fat CakePHP

2012-08-07 Thread Thiago Belem
Please, Define lite version, what do you think that should be stripped out? -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to

Re: Content blocks via controller

2012-08-06 Thread Thiago Belem
Why not using a view var? If you're goin to format the keywords you should use a Helper. Att., -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont...@thiagobelem.net *Skype

Re: how clear cache this view

2012-07-21 Thread Thiago Belem
Maybe the URL shouldn't contain special characters? Att., -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn

Re: LESS CSS

2012-07-19 Thread Thiago Belem
URL to the file. Cya, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt

Re: CSS / JS Compression

2012-07-14 Thread Thiago Belem
Maybe http://code.google.com/p/minify/ ? Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn

Re: Duplicate query when use containable

2012-05-14 Thread Thiago Belem
Did you set the cacheQueries model property? http://book.cakephp.org/2.0/en/models/model-attributes.html#cachequeries -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont

Re: Get related model

2012-05-14 Thread Thiago Belem
$book = $this-Book-findById($id); $author = $book['Author']; -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web

Re: Server Move: Catch old details page url and forward to cake style url

2012-05-08 Thread Thiago Belem
CakePHP 2.0 has Router::redirect() http://book.cakephp.org/2.0/en/development/routing.html#redirect-routing -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont

Re: Hashing Password in CakePHP 2.1

2012-04-29 Thread Thiago Belem
I always recommend a moderate knowlegdge about PHP before adventuring with frameworks. There's a lot of things inside the frameworks that require language skills. Good luck, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando

Re: Hashing Password in CakePHP 2.1

2012-04-29 Thread Thiago Belem
, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt On Sun, Apr 29, 2012 at 16:39

Re: CakePHP 2.1.1 Performance

2012-04-27 Thread Thiago Belem
Can you provide more information about you server like os, versions, cache setup and etc? Regards, -- Thiago Belem Enviado do meu Android (e sujeito a erros do corretor automático) Em 27/04/2012 20:17, Mika mikabrownem...@gmail.com escreveu: Since we upgraded our web application to Cake 2.1.1

Mock and test uploads

2012-04-26 Thread Thiago Belem
functions to work. I don't want to use anoter testing framework like PHPT or something that's not pure CakePHP and PHPUnit. Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont

Re: French accent problem

2012-04-26 Thread Thiago Belem
You're saving the file as UTF-8 too? Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn

Re: SQL sum function to store as single variable

2012-04-23 Thread Thiago Belem
Maybe: $total = $var[0]['$total'] ?? -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com

Re: Double URL in Links

2012-04-22 Thread Thiago Belem
How you're creating the links? Show us some code. -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn

Re: Authentication Scope error message

2012-04-21 Thread Thiago Belem
This message is generated on your Users::login() method, right? You can check if the user exist and isn't confirmed before issuing the setFlash() method. Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http

Re: Authentication Scope error message

2012-04-21 Thread Thiago Belem
You could use the isAuthorized method: http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#using-controllerauthorize Cya, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd

Re: Cake 2.1.1

2012-04-19 Thread Thiago Belem
The messages are stupid but yet, you couldn't figure them out, right? It's a permission problem: is not writable Give 777 permission on tmp folder. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: Cake 2.1.1

2012-04-19 Thread Thiago Belem
Did you applied the permission recursively? Like: chmod -R 777 tmp -- 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 with their CakePHP related questions. To unsubscribe from

Re: Authentication like the one implemented in Yii Framework

2012-04-17 Thread Thiago Belem
I do not want to be rude but... You want us to search and study about YiI's auth implementation or you could just provide us with some code and show us how it does? I don't like the way you do something... i think i know a better way means nothing to me. Cya, -- ***Thiago Belem* Desenvolvedor

Re: Multiple Display Filed

2012-04-10 Thread Thiago Belem
Please check the documentation: http://book.cakephp.org/2.0/en/models/virtual-fields.html No need to use the constructor. Regrads, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn

Re: Security::cipher() and mysqldump

2012-04-10 Thread Thiago Belem
Are you using the same Security.cipherSeed and Security.salt? -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt* Assando Sites*, curso de CakePHP *»* assando

Re: Security::cipher() and mysqldump

2012-04-10 Thread Thiago Belem
Maybe you should just orient your users to reset their passwords? -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web

Re: SEO/Meta Data Helper

2012-04-09 Thread Thiago Belem
Why don't you put this getMeta method inside your model or create a behavior? -- Thiago Belem Enviado do meu Android (e sujeito a erros do corretor automático) Em 09/04/2012 22:24, creat1v1ty justin.r.ran...@gmail.com escreveu: Thanks again euromark - I've taken your advice and tips

Re: SEO/Meta Data Helper

2012-04-09 Thread Thiago Belem
If you're invoking the getData method i would use a behavior, but if it's goin to work by itself (without you calling a method) I would go with a component, like Mark said. Cya, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil thiagobelem.net cont...@thiagobelem.net *Skype / gTalk

Re: $this-Auth-user()

2012-03-05 Thread Thiago Belem
Because that's what you passed to $this-Auth-login(), instead you should call it without parameters.. if you pass anything to it, it will login any data and save it to the session. Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil thiagobelem.net cont...@thiagobelem.net

Re: How to upgrade from 2.0 to 2.1

2012-02-27 Thread Thiago Belem
+1 to euromark 2012/2/27 euromark dereurom...@googlemail.com why dont you guys just try it its not like it will explode and kill you or something -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: Form select how to build outgroups?

2012-02-27 Thread Thiago Belem
http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::select Always check the documentation... If you would like to generate a select with optgroups, just pass data in hierarchical format. This works on multiple checkboxes and radio buttons too, but instead of optgroups

Re: CakePHP 2.1 Submits Duplicate Array Values

2012-02-26 Thread Thiago Belem
Looks like this input wasn't generated by CakePHP.. -- 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 with their CakePHP related questions. To unsubscribe from this group, send

Re: The Great Web Framework Shootout

2012-02-21 Thread Thiago Belem
It's like comparing toolboxes based on airplane turbine *specs*. -- Thiago Belem, Desenvolvedor WEB Enviado do meu Android Em 21/02/2012 10:25, Stephen step...@ninjacodermonkey.co.uk escreveu: Having the fastest lap time on the page load track doesn't interest me or persuade me to use

Re: Building CMS CakePHP 1.2

2012-02-09 Thread Thiago Belem
Model object (inside the controller), and*$this * is the Posts Controller object. You should give a chance to the blog tutorial on the CookBookhttp://book.cakephp.org/2.0/en/#build-a-blog . Cya, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont

Re: Building CMS CakePHP 1.2

2012-02-09 Thread Thiago Belem
This happend because you don't have the _findPost() on your model... where you defined it? Tried $this-_findPost()? Cya, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn

Re: How does $this-request-is('post') works?

2012-02-05 Thread Thiago Belem
On CakePHP 1.3 it's *isPost()* on 2.0+ is: * * *is('post')* Cya, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt* Assando Sites

Re: request-is('post') v request-is('put')

2012-02-01 Thread Thiago Belem
AFAIK, PUT is the POST HTTP Request version of edit action... when you send data that u want to change something (not insert) you send a PUT request. Att., -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk

Re: Associations model linking

2012-01-30 Thread Thiago Belem
This shoud work too: User $belongsTo Group User $hasOne Teacher (1:1) User $hasOne Student (1:1) A user don't have multiple (belongsTo/hasMany) students or teachers, he IS the teacher OR the student... so hasOne should do the trick. Cya, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ

Re: File Upload Plugins

2012-01-25 Thread Thiago Belem
I really like the MeioUpload plugin: https://github.com/jrbasso/MeioUpload Att., -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt

Re: Custom Find Type Pagination Problem - CakePHP 2.0.5

2012-01-19 Thread Thiago Belem
Thank you Lorenzo. Att., -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt* Assando Sites*, curso de CakePHP *»* assando-sites.com.br

Re: Question about routing

2012-01-19 Thread Thiago Belem
Check the Router class on the documentation. -- Thiago Belem, Desenvolvedor WEB Enviado do meu Android Em 19/01/2012 11:28, heohni heidi.anselstet...@consultingteam.de escreveu: Hi, from a relaunch I have many old links in google which all land on a 404 page and I would like to redirect

Custom Find Type Pagination Problem - CakePHP 2.0.5

2012-01-16 Thread Thiago Belem
... This sounds like a bug to me, should I open a ticket? Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt* Assando Sites*, curso de

Re: how to extract filesize from meioupload with understable format ?

2012-01-15 Thread Thiago Belem
You should save the size in bytes and format it to an human readable format (2 mb) on the view, with a helper. -- Thiago Belem, Desenvolvedor WEB Enviado do meu Android Em 15/01/2012 14:59, ahmed fakher spcial...@gmail.com escreveu: i use meioupload behavior to upload files but i cant know how

Main diference between INT and CHAR (uniqid) primary keys

2012-01-14 Thread Thiago Belem
As you can see on the documentation: Rather than using an auto-increment key as the primary key, you may also use char(36). Cake will then use a unique 36 character uuid (String::uuid) whenever you save a new record using the Model::save method. So, what's the main diference between INT and

Re: CakePHP should support better validation rules definition

2012-01-10 Thread Thiago Belem
Talking is cheap, show me the code! :-) -- Thiago Belem, Desenvolvedor WEB Enviado do meu Android Em 11/01/2012 02:40, datgs giangson...@gmail.com escreveu: Hi all, I think CakePHP should support for better way to define validation rules. Like Yii::Model::rules() definition. There are many

Re: CounterCache on HABTM tables?

2012-01-10 Thread Thiago Belem
If you have one record for every association, does make sense to have a counter there? The counter should be on each table*.* -- Thiago Belem, Desenvolvedor WEB Enviado do meu Android Em 11/01/2012 02:41, O.J. Tibi ojt...@gmail.com escreveu: Hi folks, I was just wondering, if it's possible

Re: Redirect to static page not working

2012-01-08 Thread Thiago Belem
You need allow the display action -- Thiago Belem, Desenvolvedor WEB Enviado do meu Android Em 09/01/2012 04:29, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com escreveu: From what you have written it appears that your Auth-allow statement doesn't include /pages/email_sent - so

Re: Using Configure or other methods to set app-wide constants

2012-01-03 Thread Thiago Belem
About the: var $ipaddr=$_SERVER['REMOTE_ADDR']; I don't think this is possible since class attributes must receive literal values, you can't pass a variable on the class definition, only inside a method or constructor. -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21

Re: how to connect database

2011-12-31 Thread Thiago Belem
This question isn't related to CakePHP framework, please check the PHP (language) documentation at *PHP.net* -- Thiago Belem, Desenvolvedor WEB Enviado do meu Android Em 31/12/2011 14:42, paresh kotar paresh.ko...@gmail.com escreveu: I am a learner in php..I have basic knowledge of HTML and C

Storing/editing documents and chapters

2011-12-29 Thread Thiago Belem
... should I just store it on the database (and work with WYSIWY editor) or use some documentation/guide lib like Sphinx? Maybe a noSQL database? Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk

Re: CakeSession problem

2011-12-24 Thread Thiago Belem
Did you read the documentation? http://book.cakephp.org/2.0/en/core-libraries/components/sessions.html You should use the SessionComponent... $this-Session-write('Person.eyeColor', 'Green'); $green = $this-Session-read('Person.eyeColor'); Cya, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro

Re: CakeSession problem

2011-12-24 Thread Thiago Belem
Sorry guys, i didn't saw the 11 part.. Thanks Tilen for the answer! :) Cya, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt* Assando

Re: CakePHP 2.0 Migration guide

2011-12-21 Thread Thiago Belem
+1 for Google http://lmgtfy.com/?q=cakephp+2.0+migration+guide :P -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt* Assando Sites

Re: Organizing Controllers into subfolders in CakePHP 2

2011-12-20 Thread Thiago Belem
paths. - Creating cache configurations. - Configuring inflections. - Loading configuration files. -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com

Re: Cakephp 2.0.4 Stable - Scaffold Problem

2011-12-19 Thread Thiago Belem
Your project is on github? -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt* Assando Sites*, curso de CakePHP *»* assando-sites.com.br

Re: Cakephp 2.0.4 - Scaffold add form issue

2011-12-19 Thread Thiago Belem
1. The relation is defined on the models 2. You have defined the displayField of country? 3. Both models exist (file)? Regrads, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web

Re: CakeDC: Should we group categories plugin with tags plugin ?

2011-12-18 Thread Thiago Belem
I agree, that's how WordPress works too.. Everything (instead Posts) is a taxonomy (term). :) Abs, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com

Re: Cakephp 2.0.4 Stable - Scaffold Problem

2011-12-18 Thread Thiago Belem
. Try to always give a look at the documentation before posting a question. :) Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt

Re: Unable to use cake bake

2011-12-16 Thread Thiago Belem
http://book.cakephp.org/2.0/en/console-and-shells.html#adding-cake-to-your-system-path :) -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com

Re: img src not working for me

2011-12-15 Thread Thiago Belem
A web page is not your file system.. you should use something like relative path, or http://localhost/. Are you using the HtmlHelper? Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk

Re: HTML Tidy Component

2011-12-02 Thread Thiago Belem
you do something like this? $actsAs = array('HtmlTidy' = array('fields' = array('body'))); And automatically cleanup the fields value inside behavior's beforeValidate()? Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont

HTML Tidy Component

2011-12-01 Thread Thiago Belem
, including suggestions for improvement in the component and unit tests. Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt* Assando

Re: Modify form error output

2011-11-26 Thread Thiago Belem
Try something like this: $this-Html-input('field', array('div' = array('class' = 'my-div-class'))) -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com

Re: Modify form error output

2011-11-26 Thread Thiago Belem
Yep... You got me. Thanks, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt* Assando Sites*, curso de CakePHP *»* assando-sites.com.br

Re: how to include javascript in cakephp ?

2011-11-18 Thread Thiago Belem
jQuery 1.3? Time to upgrade! -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt* Assando Sites*, curso de CakePHP *»* assando-sites.com.br

Re: CakePHP 2.0.3 out of the oven

2011-11-15 Thread Thiago Belem
http://bakery.cakephp.org/articles/lorenzo/2011/10/16/cakephp_2_0_released Embraced the *PSR-0* recommendation for file naming. Now all your classes map to a file with the same name. Less things to remember! -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250

Re: UnitTests - The Real World

2011-11-15 Thread Thiago Belem
to create the controllers and etc. I will use this post to ask future questions regarding this kind of tests ;) Thanks for your help! Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk

Jenkins + CakePHP

2011-11-14 Thread Thiago Belem
just wanted to check if there's something special/different for CakePHP. Thanks, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt

UnitTests - The Real World

2011-11-14 Thread Thiago Belem
everything on the core is properly tested and i'm not creating new helpers, components and etc. I want to rear from you guys examples (and the code, if possiebel) of real world applications test cases. Thanks, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250

Re: TimeHelper problem

2011-11-13 Thread Thiago Belem
Did you enabled the TimeHelper on the $helpers property on your Controller? http://book.cakephp.org/2.0/en/controllers.html#Controller::$helpers Cya, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk

Re: CakePhp related domain

2011-11-12 Thread Thiago Belem
The trademark owner can contact the ICANN and ask for the domain* suspension, right? * Wich contains the trademarked name -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn

Fixtures or anything outside the database

2011-11-10 Thread Thiago Belem
, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt* Assando Sites*, curso de CakePHP *»* assando-sites.com.br -- Our newest site

Re: Group Based ACL

2011-11-10 Thread Thiago Belem
Here's the ticket on this Issue: http://cakephp.lighthouseapp.com/projects/42648/tickets/2207-authcomponentsessionkey-property-cannot-be-changed The only workaround is extending the authcomponent and doing your own thing. Sad but true. -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ

Re: Multilingual Projects and Jquery

2011-11-10 Thread Thiago Belem
I've nothing against MooTools, but why jQuery is a design framework? -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt* Assando Sites

Re: SecurityComponent + External POST

2011-11-07 Thread Thiago Belem
And what about the parent::beforeFilter(), it should be on the start or the end of my PaymentsController::beforeFilter()? Before or after the disable('Security') ? Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net

Re: Best approach to use GAPI class

2011-11-05 Thread Thiago Belem
I would like an answer to this question too.. *bump* Probably I would use it as Vendor and create a Component, seems the fastest way to do it.. But what do you guys think? Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont

Re: Error Debugging Help

2011-11-03 Thread Thiago Belem
Probably a missing image URL/file, check your webserver access logs. -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt* Assando Sites

  1   2   >