CakePHP 2.0.2 released

2011-11-02 Thread José Lorenzo
The CakePHP core team is proud to announce the immediate availability of CakePHP 2.0.2 [1]. We saw the need to release this version after a bug that was introduced in the 2.0.1 version regarding the calculation of the Content-Length header. This bug can cause unexpected errors in the ouput su

Re: missing ) after argument list error - how does that make sense?

2011-11-02 Thread Ryan Schmidt
On Nov 2, 2011, at 15:09, Tomfox Wiranata wrote: > i had to use backslashes...^^ it works now > > thanks for your time guys..appreciate it :) Yes, well, if you're going to insert data into a page, you need to quote and escape that data appropriately. In this context, you're trying to put a str

Re: AuthComponent - Multiple Setups

2011-11-02 Thread Thiago Belem
Looks like i've found the problem: the propety sessionKey of AuthComponent is defined as static... So even if i try to change it on my AppController it simply doesn't work for the next verifications. I've submited a ticket on the lighthouse: http://cakephp.lighthouseapp.com/projects/42648-cakep

Re: ajax with cakephp 1.3

2011-11-02 Thread pedro rojo
th you for your reponce my friends! first I want to tell you that I am a newbie in cakephp and PHP. good as you know:) this is my second bathroom participation in this group I am a true visitor in this group and my problem is that I rely on myself and my technical quality. Secondly I searched googl

Re: ajax with cakephp 1.3

2011-11-02 Thread thom
On Wed, Nov 2, 2011 at 4:42 PM, WebbedIT wrote: > Welcome to the group Pedro. > > Please Google your question before asking things that have been asked > (many times before): > http://www.google.co.uk/search?q=cakephp+dependant+select+list > > Or better still search this very group: > > http://gr

Re: CakePHP2.0.1 - Problem with saving HABTM

2011-11-02 Thread Mattia Manzati
Ok, putted code on github. This is the repo: https://github.com/ilmattodel93/IMattiDel93-s-Site Thanks again for your help! ^^ On 2 Nov, 18:47, Thiago Belem wrote: > Put your code on Github or Gists and send us the link. > > Thiago Belem, enviado do meu Android > Em 02/11/2011 15:28, "Mattia Man

Re: Cakephp 1.3 not logging when debug set to 1 or 2

2011-11-02 Thread José Lorenzo
Just tested it in a clean cakephp 1.3.13 install and works fine. -- 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

Re: AuthComponent - Multiple Setups

2011-11-02 Thread Thiago Belem
No... I have two separated prefixes, one called "aluno" (model Student) and other called "admin" (model User). I want to create separate authenticatated areas, and a logged user can't access both. That's why I created two AuthComponent configurations, using different models and options. But at v

Re: AuthComponent - Multiple Setups

2011-11-02 Thread Điển vũ
Edit: Do you mean : *Admin* to the *Student* login screen if I can't find a *Admin *? -- 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

AuthComponent - Multiple Setups

2011-11-02 Thread Thiago Belem
I'm using the *AuthComponent* to control the access to two prefixes: "admin" and "student". I'm changing the AuthComponent configuration (model, fields, userScope, loginAction and even sessionKey) on AppController::beforeFilter() but once i'm logged with one user Model at "admin', AuthComponent sa

Re: missing ) after argument list error - how does that make sense?

2011-11-02 Thread Tomfox Wiranata
i had to use backslashes...^^ it works now thanks for your time guys..appreciate it :) On 30 Okt., 22:10, "flo.kl...@googlemail.com" wrote: > I always use “ to encapsulate the string I want to echo. Then you can use ' > within and it will be echoed as well. > A short example: > echo ““.$array['

Re: CakepHP 2.0 plugins no longer cache in elements

2011-11-02 Thread Điển vũ
No, i mean: You cannot use nocache tags in elements. Since there are no callbacks around elements, they cannot be cached. ( http://book.cakephp.org/2.0/en/core-libraries/helpers/cache.html) I can use in elements with cakephp 1.x but can't with cake 2.x I see it is harder to cache -- Our

Re: CakepHP 2.0 plugins no longer cache in elements

2011-11-02 Thread Điển vũ
No, i mean: You cannot use nocache tags in elements. Since there are no callbacks around elements, they cannot be cached. ( http://book.cakephp.org/2.0/en/core-libraries/helpers/cache.html) I can use in elements with cakephp 1.x but not can't use it . I see it is harder to cache -- Our

Re: CakepHP 2.0 plugins no longer cache in elements

2011-11-02 Thread euromark
do you mean that the cache is not working as in 1.3? did you read the migration guide? cache is now in the third param element('helpbox', array(), array('cache' => true)); ?> @see http://book.cakephp.org/2.0/en/views.html?highlight=elements#caching-elements or do you mean you cannot use nocache?

Re: CakepHP 2.0 plugins no longer cache in elements

2011-11-02 Thread Điển vũ
Many element can't cache but repeat in many layouts. Only me met trouble about this matter ?... -- 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 questi

Re: CakePHP2.0.1 - Problem with saving HABTM

2011-11-02 Thread Thiago Belem
Put your code on Github or Gists and send us the link. Thiago Belem, enviado do meu Android Em 02/11/2011 15:28, "Mattia Manzati" escreveu: > I Have already checked, and all table are already well related. Same > column type INT(11) and InnoDB powered. But I still have the > problem... :S > What

Re: CakePHP2.0.1 - Problem with saving HABTM

2011-11-02 Thread Mattia Manzati
I Have already checked, and all table are already well related. Same column type INT(11) and InnoDB powered. But I still have the problem... :S What to do now? The code I am using works if I use cakephp1.3 On 2 Nov, 17:51, Jeremy Burns wrote: > Use InnoDB. As John says, it won't let you creat

Re: Containable get posts with active comments

2011-11-02 Thread Jeremy Burns | Class Outfit
You would need to use joins here: http://book.cakephp.org/view/1047/Joining-tables Looks complex at first, but actually isn't. And once you've mastered it you'll use it in preference to plain old SQL where normal finds won't cut it. Jeremy Burns Class Outfit http://www.classoutfit.com On 2 No

Containable get posts with active comments

2011-11-02 Thread nastya
Hello Could you please help me with a small issue? There are Posts that are active. Posts can have comments. Comments can be active or not. How to get only those active Posts that have active Comments? $this->Post->find('all', array( 'conditions' => array('Post.active'=>1), 'contain' =>

Re: CakePHP2.0.1 - Problem with saving HABTM

2011-11-02 Thread Jeremy Burns
Use InnoDB. As John says, it won't let you create RI between fields with different types (and it's very precise) and you get transactions thrwn in for good measure. On 2 Nov 2011, at 16:14, Jon Bennett wrote: >> I've had some similar trouble with 2.0 >> turned out the fields in the DB were not

Re: Subscriptions

2011-11-02 Thread bujanga
I have not tried implementing recurring payments using PayPal but have done it with other systems. Anyway, that is your search term: http://www.google.com/search?q=paypal+recurring+payments -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new Ca

Re: CakePHP2.0.1 - Problem with saving HABTM

2011-11-02 Thread Jon Bennett
> I've had some similar trouble with 2.0 > turned out the fields in the DB were not the same type. > id on one table was a bigint and the foreign key on the relationship table > was a regular integer. > atenciosamente, With MySQL you can catch these errors at db schema level if you use foreign ke

Re: CakePHP2.0.1 - Problem with saving HABTM

2011-11-02 Thread Werner Petry Moraes
I've had some similar trouble with 2.0 turned out the fields in the DB were not the same type. id on one table was a bigint and the foreign key on the relationship table was a regular integer. atenciosamente, Werner Petry Moraes werne...@gmail.com On Wed, Nov 2, 2011 at 07:52, Mattia Manzati w

CakePHP2.0.1 - Problem with saving HABTM

2011-11-02 Thread Mattia Manzati
Hi all! Thanks in advance for replys! :P I have the following model: class EpisodeRelease extends AppModel{ > public $cacheQueries = true; > public $name = 'EpisodeRelease'; > public $primaryKey = 'id'; > public $table = 'episode_releases'; > public $hasMany = array( >

Re: How to get related username in view?

2011-11-02 Thread flo.kl...@googlemail.com
Yeah, you are right. I was just giving the 'quick and dirty' solution ;-) -flosky WebbedIT schrieb: @flosky > Set up the relationships in the posts and users models and set the recursion > to 2 when you do the find. No! Please don't use recursive = 2, it will pull so much unneeded deep dat

Re: Implementing a search functionality

2011-11-02 Thread WebbedIT
And for proof of how easy other people find the CakeDC plugin: http://groups.google.com/group/cake-php/browse_thread/thread/bdb93d2ec770be06 Question asked and resolved in 4 days! HTH, Paul. On Nov 2, 9:23 am, WebbedIT wrote: > @Yves: People keep recommending paginaton along with CakeDC's > sea

Re: How to get related username in view?

2011-11-02 Thread WebbedIT
@flosky > Set up the relationships in the posts and users models and set the recursion > to 2 when you do the find. No! Please don't use recursive = 2, it will pull so much unneeded deep data. Please take Jeremy's advice and use Containable, it is so easy and so powerful! His post above shows h

Re: ajax with cakephp 1.3

2011-11-02 Thread WebbedIT
Welcome to the group Pedro. Please Google your question before asking things that have been asked (many times before): http://www.google.co.uk/search?q=cakephp+dependant+select+list Or better still search this very group: http://groups.google.com/group/cake-php/search?group=cake-php&q=ajax+select

Re: query

2011-11-02 Thread WebbedIT
@Chris: You're openly admitting you have not looked at how CakePHP is *supposed* to be used at all. Before you start recommending to others that they should just bail on major core concepts of the framework, you should take the time to go through the cookbook. If you did you would quickly learn h

Re: Implementing a search functionality

2011-11-02 Thread WebbedIT
@Yves: People keep recommending paginaton along with CakeDC's searchable plugin. If you take their advice and go and read the associated documentation you should easily be able to figure this out for yourself. At present you have still not got your head around the fact that you only need to run $

Re: query

2011-11-02 Thread AD7six
On Oct 30, 9:50 am, SERKAN TURAN wrote: > Hi, > I have an query and I could not figure it out what is the cakephp form of > it. > > query: > --- > SELECT * > FROM >   tags` >   INNER JOIN `tags_articles` ON (`tags`.`id` = `tags_articles`.`tag_id`) >   INN

Re: query

2011-11-02 Thread AD7six
On Nov 2, 12:09 am, Chris Cinelli wrote: > To clarify: > -The login now work fine. Before it was taking 10-15 seconds to load. > -The outsourcing team was using "find" on the user with recursive = 2 to > retrieve some information to store in the session. That query was > generating hundreds of q