Re: Fetch the associated models with a left join
On 28.05.2007 20:11 RommeDeSerieux wrote: That's fine, but a Category also hasMany Downloads, but when i do categories/view, it fetches only one table, which results in raw values of category_id, author_id and translator_id displayed as integers, while i need it to behave like in the first case. Setting $recursion doesn't seem to help. I'm using the development version. The setting is $recursive, not $recursion. -Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Why do I have to define this?
On 18.05.2007 18:22 Enchy wrote: echo $telephone[0][suppliers][tel]; When I do this it moans that I have to define suppliers and tel Because for one, you should be using strings, not barewords: echo $telephone[0]['suppliers']['tel']; And why do you bother with the whole framework thing if you're not going to use it? $this-Order-Suppliers-findById($id); // or something -Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Title in Subject (default)
On 18.05.2007 15:17 Rodrigo Castilho Galvão Ferreira wrote: Please, it would be very good for having a heading for standard, for example: Why? Just filter on the List-Id header: List-Id: cake-php.googlegroups.com It's standardized, and way more robust. -Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: phpGACL could not be installed
On 17.05.2007 07:57 tagawa wrote: Hello, I'm developing a new site using CakePHP 1.2, dAuth and hopefully phpGACL. Having upload the CakePHP phpGACL plugin and phpGACL itself, clicking the 'Proceed with installation' button results in the error message phpGACL could not be installed. Looking at the code, this happens when schema.xml is parsed and executed but I'd like more details. Is there a way to get the phpGACL plugin to print a log of what's going on or print error messages from phpGACL itself? Are you using UTF8 tables? The phpGACL install script creates indexes that are over 1000 bytes when using Unicode, and 1000 bytes is the size limit for indexes in MySQL. Thus, the whole table creation fails. Either set your database to use a single-byte charset, or change the schema.xml to create smaller indexes. -Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: session serialize handler
On 15.05.2007 18:44 jyrgen wrote: pr(serialize($_SESSION)); results in : a:1:{s:6:Config;a:3:{s:4:rand;i:1482441247;s:4:time;i: 1179248446;s:9:userAgent;s:32:cc98eaffc23c634e0efd75ab9e36e810;}} so fine-. but note the different notation in the sessions table: Config|a:3:{s:4:rand;i:1482441247;s:4:time;i:1179247983;s: 9:userAgent;s:32:cc98eaffc23c634e0efd75ab9e36e810;} It's obviously *not* just a call to serialize($_SESSION) then. php fails to unserialize this string !! Split the string at the | character, then use the first part as the array key, and deserialize the second part into the array's value. Why don't you just look into the Cake source? -Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: cake delivers strange session data
On 14.05.2007 22:25 jyrgen wrote: without changing anything on the server, session data seem corrupt. all of sudden the data column does not contain neatly serialized data like : Config|a:3:{s:4:rand;i:6637528;s:4:time;i:1179... but UPDATE `sessions` SET `data` = '7YDr60NnYV1R2asLTAPMDb- q3OO1lqf22IDYuIJBAswmyfMyO2Y3oYFdi3TGWsqh1hPFh4XWN0aEQNQFmIhGuRtpqDmpZ8Fm do you know where this comes from ? Suhosin or a similar PHP-securing extension that auto-encrypts Session and Cookie vars, maybe? -Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Regular expression in Router::connect
On 15.05.2007 02:50 Aaron Shafovaloff wrote: I figured it out: Router::connect('/:group/:curriculum/*', array('controller'='curriculum'),array('curriculum'='\b(?:(?! curriculum|courses|facilitators|configuration)\w)+\b')); Your parens are off. The negative lookahead assertions should group all the alternatives, so try: \b(?!(?:curriculum|courses|facilitators|configuration))\w+\b -Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---