Re: Test Suite: is there a way to test for expected exception errors?
Hi aranworld, Something like: try { $obj-codeThatShouldThrowMyException(); fail('No exception'); } catch (MyException $e) {} should do the trick. -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
1.2 validation - may be blank, but if filled in must be a decimal
Hi all, I have some data that's optional, but if it's filled in it must be a decimal. Is there an easy way to do this with 1.2 validation? My current though is that I might create a custom validation rule, and from their if the field isn't blank then send it through to the built in validation code. Thanks Tim --~--~-~--~~~---~--~~ 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: 1.2 validation - may be blank, but if filled in must be a decimal
In case anyone else wants to know how i've done it, it's as simple as this Model var $validate = array( 'fieldName' = array('integer_optional' = array('rule' = array('optionalInteger', 'fieldName'))) ); // NB: integer_optional is the key to look up the error message function optionalInteger($data, $fieldName) { if (strlen($data[$fieldName]) 0) { return is_numeric($data); } return true; } I couldn't work out how to call an existing validation method (given the 2 minutes I spent on it) so I just wrote my own since it was trivial and quicker. I'm still interested to hear a better way to do this, if one exists :) Tim On Mar 28, 8:56 pm, Tim W [EMAIL PROTECTED] wrote: Hi all, I have some data that's optional, but if it's filled in it must be a decimal. Is there an easy way to do this with 1.2 validation? My current though is that I might create a custom validation rule, and from their if the field isn't blank then send it through to the built in validation code. Thanks Tim --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
1.2 custom validation methods for multiple fields
Hi all, Say I have a check box and a text field on a form. If the check box is checked the form has to have a number in it. If the check box isn't checked then it must be empty. Does anyone know how to do this validation in 1.2? I could write a custom validation method but I can't work out how to access multiple pieces of data from the method. Thanks Tim --~--~-~--~~~---~--~~ 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: Adding meta description tags on a view page
in the head section of your layout, add this line: ?php echo $scripts_for_layout ? it will be replaced by all $html-meta(), $meta-css() and $javascript- link() with inline to false On 28 mar, 02:08, Rusty [EMAIL PROTECTED] wrote: Hi, I'm not sure if I am doing something wrong, but I am trying to add a meta tag on the view page using the following command: echo $html-meta('description', 'meta description goes in here', array('type'='description'), false); Doing this, nothing shows up on the page. If I set the inline to true, it shows right at the top of the page, but after all the header information from the layout page. I would like to have it so that setting it to false puts it up in the head section (as per the API). Does anyone have any ideas, or is it me doing something wrong? Thanks! --~--~-~--~~~---~--~~ 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: 1.2 custom validation methods for multiple fields
I've worked this one out myself - and it was pretty obvious: use a beforeValidate method. I've included one below in case anyone else searches and needs the answer /** * Returns true if all is ok, false if something failed validation */ function beforeValidate() { echo ''; // Sample code to invalidate one field and make validation fail $this-invalidate('field_Name', 'messageKey'); // messageKey can be the error message or the key to the error message in the messages array (see 1.2 validation documentation) return false; } On Mar 28, 9:18 pm, Tim W [EMAIL PROTECTED] wrote: Hi all, Say I have a check box and a text field on a form. If the check box is checked the form has to have a number in it. If the check box isn't checked then it must be empty. Does anyone know how to do this validation in 1.2? I could write a custom validation method but I can't work out how to access multiple pieces of data from the method. Thanks Tim --~--~-~--~~~---~--~~ 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: Adding meta description tags on a view page
Hello Rusty, From the code at the end of the $html-meta helper method, I guess that it uses the $scripts_for_layout var you have to echo between the head tags. You can read a bit about it on my blog. Guillaume CakePHP blog: http://cherryonthe.popnews.com/ On 28 mar, 02:08, Rusty [EMAIL PROTECTED] wrote: Hi, I'm not sure if I am doing something wrong, but I am trying to add a meta tag on the view page using the following command: echo $html-meta('description', 'meta description goes in here', array('type'='description'), false); Doing this, nothing shows up on the page. If I set the inline to true, it shows right at the top of the page, but after all the header information from the layout page. I would like to have it so that setting it to false puts it up in the head section (as per the API). Does anyone have any ideas, or is it me doing something wrong? ThaCakePHP nks! --~--~-~--~~~---~--~~ 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: Adding meta description tags on a view page
Sorry really new, and looking for an easy way to do it. I don't have a controller set up at all, and after some research, it looks like that is how I am going to have to do it to get it to work. Please forgive me... I looked and looked, and just came across a possible solution... of course after I posted a question... --~--~-~--~~~---~--~~ 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: Cakephp 1.2 on PHP 4.3.10/Apache/2.0.49 (Fedora)
I still have the same error with index.php/pages/home Fatal error: Maximum execution time of 60 seconds exceeded in /var/www/ html/staging_web/cake/libs/view/view.php on line 634 Fatal error: Call to a member function on a non-object in /var/www/ html/staging_web/cake/libs/cache.php on line 208 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
is it possible to insert a variable number of records using the same view?
i know the topic isn't quite explanatory so... here's the deal: i need to store a client data and he can have many addresses a variable number... so i have a table called clients and another called addresses i wanna know if its possible with ajax + cakephp to make like subforms that can be created on the fly at page load it should have only one address form by default then if the user clicks on a button(link or whatever) it should popup another subform under it and then its possible to pass this variable number of records to the controller? thanks in advice. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Auth Component and Authorization
Hello, I`m building simple web app with users, profiles and so on. I`m using Auth Component for user authentication. I ran into a problem - how to prevent logged user from i.e. editing another user profile? It turns out that Auth Component is capable of simple authorization without the need for complicated ACL stuff. So I`m doing something like this: app_controller.php: $this-Auth-authorize = 'controller'; function isAuthorized() { //do not allow user to edit someone`s else profile if ($this-action=='edit') { if ($this-Auth-user('id') != $this-params['pass'][0]) { return false; } } return true; } My question is: is this correct approach? Maybe I should authorize against model? If yes - how would you do it ? Regards, Grzegorz --~--~-~--~~~---~--~~ 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: routes.php is not working as expected
I hope its not too late to answer your question. I had the same problem and i fix it with the guideline on this page about mod_rewrite: http://manual.cakephp.org/appendix/blog_tutorial (Look for the A Note On mod_rewrite title). Hope it helps On Mar 9, 9:20 pm, DierRe [EMAIL PROTECTED] wrote: Uhm...I don't why /index.php/controller/action/ isworkingbut I didnotuncommented in core.php the line: define('BASE_URL', env('SCRIPT_NAME')); --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
CakePHP Auth Component and Authorization
Hello, I`m building simple web app with users, profiles and so on. I`m using Auth Component for user authentication. I ran into a problem - how to prevent logged user from i.e. editing another user profile? It turns out that Auth Component is capable of simple authorization without the need for complicated ACL stuff. So I`m doing something like this: app_controller.php: $this-Auth-authorize = 'controller'; function isAuthorized() { //do not allow user to edit someone`s else profile if ($this-action=='edit') { if ($this-Auth-user('id') != $this-params['pass'][0]) { return false; } } return true; } My question is: is this correct approach? Maybe I should authorize against model? If yes - how would you do it ? Regards, Grzegorz --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Dynamic Menu With ACL.
(If you reading this and thinking. OMG! He doesn't speak english... Yes, you are right. Sorry about bad english) I'm trying to make a dynamic admin menu like Worpress menu. If a User don't have access to an specific section, the link to this section doesn't *NOT* have to be showed. Figuring out this, i'm thinking to make a table (sections) and verify the permissions on the controller but in this case, user have permission on other controller, not sections. Anyone have any ideias to do that? The table sections is necessary? If a make a menu hardcoded in the controller how to verify the permission without using the sections table? again, sorry about the english. thanks --~--~-~--~~~---~--~~ 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: 1.2 validation - may be blank, but if filled in must be a decimal
All validation entries have an `allowEmpty` parameter that says whether the field must be filled in or not. An empty field will *not* go through the validation rule itself and will be validated or failed depending on the `allowEmpty` parameter (not to be confused with the `required` parameter, which controls whether the field must be *present* in the data). To validate a decimal number you can use a callback, like you have, or a regular expression. For example: var $validate = array( 'field' = array( 'allowEmpty' = true, 'rule' = '/^[0-9]*\\.?[0-9]+$/', 'message' = 'This must be blank or a positive decimal number' ) ); You could use a different regular expression to allow negative numbers, enforce limits on the fraction digits, or allow scientific notation as well. For example, if you wanted a positive number with maximum 2 digits after the decimal point then you'd use something like: '/^[0-9]+(\\.[0-9]{,2})?$/' On Mar 28, 8:12 am, Tim W [EMAIL PROTECTED] wrote: In case anyone else wants to know how i've done it, it's as simple as this Model var $validate = array( 'fieldName' = array('integer_optional' = array('rule' = array('optionalInteger', 'fieldName'))) ); // NB: integer_optional is the key to look up the error message function optionalInteger($data, $fieldName) { if (strlen($data[$fieldName]) 0) { return is_numeric($data); } return true; } I couldn't work out how to call an existing validation method (given the 2 minutes I spent on it) so I just wrote my own since it was trivial and quicker. I'm still interested to hear a better way to do this, if one exists :) Tim On Mar 28, 8:56 pm, Tim W [EMAIL PROTECTED] wrote: Hi all, I have some data that's optional, but if it's filled in it must be a decimal. Is there an easy way to do this with 1.2 validation? My current though is that I might create a custom validation rule, and from their if the field isn't blank then send it through to the built in validation code. Thanks Tim --~--~-~--~~~---~--~~ 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: 1.2 validation - may be blank, but if filled in must be a decimal
Ah that's even better, thank you grrigri, you've made my life a little easier :-) Tim On Mar 28, 10:40 pm, grigri [EMAIL PROTECTED] wrote: All validation entries have an `allowEmpty` parameter that says whether the field must be filled in or not. An empty field will *not* go through the validation rule itself and will be validated or failed depending on the `allowEmpty` parameter (not to be confused with the `required` parameter, which controls whether the field must be *present* in the data). To validate a decimal number you can use a callback, like you have, or a regular expression. For example: var $validate = array( 'field' = array( 'allowEmpty' = true, 'rule' = '/^[0-9]*\\.?[0-9]+$/', 'message' = 'This must be blank or a positive decimal number' ) ); You could use a different regular expression to allow negative numbers, enforce limits on the fraction digits, or allow scientific notation as well. For example, if you wanted a positive number with maximum 2 digits after the decimal point then you'd use something like: '/^[0-9]+(\\.[0-9]{,2})?$/' On Mar 28, 8:12 am, Tim W [EMAIL PROTECTED] wrote: In case anyone else wants to know how i've done it, it's as simple as this Model var $validate = array( 'fieldName' = array('integer_optional' = array('rule' = array('optionalInteger', 'fieldName'))) ); // NB: integer_optional is the key to look up the error message function optionalInteger($data, $fieldName) { if (strlen($data[$fieldName]) 0) { return is_numeric($data); } return true; } I couldn't work out how to call an existing validation method (given the 2 minutes I spent on it) so I just wrote my own since it was trivial and quicker. I'm still interested to hear a better way to do this, if one exists :) Tim On Mar 28, 8:56 pm, Tim W [EMAIL PROTECTED] wrote: Hi all, I have some data that's optional, but if it's filled in it must be a decimal. Is there an easy way to do this with 1.2 validation? My current though is that I might create a custom validation rule, and from their if the field isn't blank then send it through to the built in validation code. Thanks Tim --~--~-~--~~~---~--~~ 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: emailComponent question
hi, i have the same problem, i don't understand why the path contains 2 views. (app/views/views/elements/email/html/forgottenpassword.ctp) any idea? On márc. 12, 15:34, dr. Hannibal Lecter [EMAIL PROTECTED] wrote: Ouch, my bad... I made a slight mistake.. The templates should be there, but you also need the layout files as well.. So: /app/views/views/elements/email/html/contact.ctp /app/views/layouts/email/html/default.ctp Sorry for the previous lapsus memoriae.. :-) On Mar 12, 3:13 pm, Kyle Decot [EMAIL PROTECTED] wrote: I am using cakePHP Beta: 1.2.0.6311 I went ahead and made my function private. Thanks for the tip. My contact.ctp file is located in app/views/elements/email/html/ contact.ctp I tried putting it in app/views/email/html/contact.ctp but got the following error in my email: Not Found: /home/affinit6/public_html/app/views/views/elements/email/ html/contact.ctp This email was sent using the CakePHP Framework So I am assuming it have to be in the elements folder. Any thoughts? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
dynamic css and/or javascript
Hi, is it possible to create CSS or Javasciprt dynamically? And if, how to do it in Cake the smartest way? in app/views/layouts/ I find a folder named js but I can't find any explanation how to use ist... --~--~-~--~~~---~--~~ 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: translate behavoiur + not fetching translations on recursive fields
Anyone about this issue? Dan --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
ACO::setParent adds an empty record
Helllo! I can't get setParent on an aco to work using the console: Menu: id | title 1 | websites 2 |mysite.nl 3 | admin 5 | news 4 | www Aco: id | parent_id | model | foreign_key 17 | null | Menu | 2 18 | 17 | Menu | 3 19 | 17 | Menu | 4 20 | 18 | Menu | 5 Now, I want to move news under www so I do this: cake acl setParent aco 20 19 But the result of this action is that a new aco record is added with parent_id set to 19, but all other fields like model, lft, rght are null. What am I doing wrong? --~--~-~--~~~---~--~~ 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: looking for a hosting company
any experience with godaddy anyone? i had some, wonder what was yours. On Mar 26, 3:53 pm, Zoltan [EMAIL PROTECTED] wrote: Just wondering if anyone has a hosting company they'd recommend. I've personally hosted a few sites on DreamHost, speed is ok, but getting Cake sites up and running is problem-free. On the other hand, I've used Rackspace, which is faster, but keep on running into problems. If anybody has a hosting company they'd recommend, I'd appreciate it. Thanks, Zoltanwww.yyztech.ca --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How to set ARO Aliases when using the shell
Hello, I'm trying to create some aros via the AclShell shell. It works fine, but i just don't get how I'm supposed to define an alias. i.e. I'm using cake acl create aro Group.1 User.1. I want the newly created node to have an alias. I don't really understand the explanation in the help for this command. Please someone enlighten me :-) Thanks! --~--~-~--~~~---~--~~ 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: ACO::setParent adds an empty record
I got it working like this, but isn't there an easier way using setParent? In the menu_controller that handles the reparent action: //get aco of the node to move (thisAco) and the new parent (otherAco) //The 0 says we do not want to get the aros (if any) $thisAco = $this-Menu-Aco-find(array(model=Menu, foreign_key=$movedID), array(), null, 0); $otherAco = $this-Menu-Aco-find(array(model=Menu, foreign_key=$destID), array(), null, 0); //update parent and save $thisAco[Aco][parent_id] = $otherAco[Aco][id]; $this-Menu-Aco-save($thisAco); On 28 mrt, 12:21, Marcel [EMAIL PROTECTED] wrote: Helllo! I can't get setParent on an aco to work using the console: Menu: id | title 1 | websites 2 |mysite.nl 3 | admin 5 | news 4 | www Aco: id | parent_id | model | foreign_key 17 | null | Menu | 2 18 | 17 | Menu | 3 19 | 17 | Menu | 4 20 | 18 | Menu | 5 Now, I want to move news under www so I do this: cake acl setParent aco 20 19 But the result of this action is that a new aco record is added with parent_id set to 19, but all other fields like model, lft, rght are null. What am I doing wrong? --~--~-~--~~~---~--~~ 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: Auth Component and Authorization
On Thu, Mar 27, 2008 at 9:42 PM, Grzesiek [EMAIL PROTECTED] wrote: My question is: is this correct approach? Maybe I should authorize against model? If yes - how would you do it ? Nothing wrong with your code -- you're correctly saying if the authorized user's id matches the id we want to edit, then go ahead and let them edit it. Nice and simple. -- Chris Hartjes Internet Loudmouth Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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: Your database configuration file is not present.
On Fri, Mar 28, 2008 at 4:07 AM, Raistlin Majere [EMAIL PROTECTED] wrote: If my site is at http://www.toreadandtowrite.com/CakePHP/toreadandtowrite and I can not change the document root, do I have to edit the paths in app/webroot/index.php? If so, how do I properly edit the paths? http://book.cakephp.org/view/32/installation -- Chris Hartjes Internet Loudmouth Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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: dynamic css and/or javascript
http://book.cakephp.org/view/207/javascript --~--~-~--~~~---~--~~ 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: CakePHP Auth Component and Authorization
Browse the acl/auth stuff here as a starting point, look at acl behavior as well: http://groups.google.com/group/cake-php/web/frequent-discussions --~--~-~--~~~---~--~~ 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: is it possible to insert a variable number of records using the same view?
On Fri, Mar 28, 2008 at 12:31 AM, miuuzn [EMAIL PROTECTED] wrote: i wanna know if its possible with ajax + cakephp to make like subforms that can be created on the fly at page load it should have only one address form by default then if the user clicks on a button(link or whatever) it should popup another subform under it and then its possible to pass this variable number of records to the controller? 1) Yes, you can use Ajax to add a subform to your existing form. I do it all the time 2) Whatever you put in the form will get posted to your action in your controller when you submit the form -- Chris Hartjes Internet Loudmouth Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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: looking for a hosting company
I once had a Godaddy VPS, it started off pretty well but eventually the disk latency became absurd. I presented some tests showing 2 *seconds* for a single disk access in a ticket and was told that's within their tolerances. I canceled the VPS after that. Sean On Mar 28, 6:51 am, phpjoy [EMAIL PROTECTED] wrote: any experience with godaddy anyone? i had some, wonder what was yours. On Mar 26, 3:53 pm, Zoltan [EMAIL PROTECTED] wrote: Just wondering if anyone has a hosting company they'd recommend. I've personally hosted a few sites on DreamHost, speed is ok, but getting Cake sites up and running is problem-free. On the other hand, I've used Rackspace, which is faster, but keep on running into problems. If anybody has a hosting company they'd recommend, I'd appreciate it. Thanks, Zoltanwww.yyztech.ca --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Files folder?
I am building a website for a client and they have a large amount of PDF's so I decided I would put them in: app/webroot/files/pdf but when I navigate to: www.example.com/files/pdf/example.pdf i get: Error: FilesController could not be found. How can I make it allow me access to this folder. Or if this is not an option, where should I store the PDF's instead ? --~--~-~--~~~---~--~~ 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: Test suite 1.2: Is there a report for the Core Test Cases fails?
I'm not personally aware of an official report of 1.2.6311 expected test case results, but one thing I have done is do a search of the changesets on trac for the strings failing and tests as it tends to reveal important information related to changes made by the core devs with regards to the test suite: https://trac.cakephp.org/search?q=failing+testsnoquickjump=1changeset=on For example, that search reveals changeset 6583 where Larry mentions fixing failing DboSource tests... --~--~-~--~~~---~--~~ 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: Test suite 1.2: Is there a report for the Core Test Cases fails?
I also googled testFieldDoubleEscaping cakephp this morning as it was something failing I wanted to investigate, which brought me to changeset 6476 https://trac.cakephp.org/changeset/6476/branches/1.2.x.x --~--~-~--~~~---~--~~ 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: Files folder?
double check the url is accurate - you'll get this error if the target is unreachable/doesn't exist - if the file is there and the url is accurate it should work. try with a simple test.txt file in the root of files On Mar 28, 10:49 am, Kyle Decot [EMAIL PROTECTED] wrote: I am building a website for a client and they have a large amount of PDF's so I decided I would put them in: app/webroot/files/pdf but when I navigate to:www.example.com/files/pdf/example.pdfi get: Error: FilesController could not be found. How can I make it allow me access to this folder. Or if this is not an option, where should I store the PDF's instead ? --~--~-~--~~~---~--~~ 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: Files folder?
On Fri, Mar 28, 2008 at 10:49 AM, Kyle Decot [EMAIL PROTECTED] wrote: I am building a website for a client and they have a large amount of PDF's so I decided I would put them in: app/webroot/files/pdf but when I navigate to: www.example.com/files/pdf/example.pdf i get: Error: FilesController could not be found. That's because Cake thinks you're trying to access a controller named 'Files'. You might have to do something like altering your .htaccess file to tell it to not process requests for stuff in /files as if it were a regular controller/action pair. If you look at the .htaccess file, I'm sure you can figure it out. -- Chris Hartjes Internet Loudmouth Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
FCK loads iframe w/layout
I'm trying to adjust the famous fck article http://wsapi.infospace.com/clickserver/_iceUrlFlag=1?rawURL=http%3A%2F%2Fbakery.cakephp.org%2Farticles%2Fview%2Fusing-fckeditor-with-cakephp0=1=04=207.97.206.185=72.54.164.589=6edf9510a9c84d6990bdc556a190c80110=111=pch.blingo13=search14=86753015=main-title17=118=119=020=021=122=ZfV0u6LvGsw%3D40=99Oj9%2BStTYhxmqB1b8fzfw%3D%3D_IceUrl=true for cakephp 1.2 helper fxn is like this function fckload($id, $toolbar = 'Default') { $did = ; foreach (explode('.', $id) as $v) { $did .= ucfirst($v); } return FCK_CODE script type=text/javascript fckLoader_$did = function () { var bFCKeditor_$did = new FCKeditor('$did'); bFCKeditor_$did.BasePath = '/js/'; bFCKeditor_$did.ToolbarSet = '$toolbar'; bFCKeditor_$did.ReplaceTextarea(); } fckLoader_$did(); /script FCK_CODE; } but when i call it with echo $form-textarea(Page.body,array( div=false,id=Editable,value= $contents ,rows=10,cols=45 )); ... echo $editor-fckload('Editable'); It puts a complete page, with my layout/site logo/navigation embedded into the spot where the textarea was Anyone have better code for this? --~--~-~--~~~---~--~~ 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: Files folder?
IfModule mod_rewrite.c RewriteEngine on RewriteRule (_taste|files|phpmyadmin)/(.*) - [L] RewriteRule^$webroot/[L] RewriteRule(.*) webroot/$1[L] /IfModule On 28/03/2008, Chris Hartjes [EMAIL PROTECTED] wrote: On Fri, Mar 28, 2008 at 10:49 AM, Kyle Decot [EMAIL PROTECTED] wrote: I am building a website for a client and they have a large amount of PDF's so I decided I would put them in: app/webroot/files/pdf but when I navigate to: www.example.com/files/pdf/example.pdf i get: Error: FilesController could not be found. That's because Cake thinks you're trying to access a controller named 'Files'. You might have to do something like altering your .htaccess file to tell it to not process requests for stuff in /files as if it were a regular controller/action pair. If you look at the .htaccess file, I'm sure you can figure it out. -- Chris Hartjes Internet Loudmouth Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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: CakePHP Auth Component and Authorization
That's essentially what I'm doing on two web apps. I've got 3 levels (guest,user,admin) and it seems to work fine for me. Zoltan www.nachogrid.ca - Toronto Nachos On Mar 27, 9:47 pm, Grzesiek [EMAIL PROTECTED] wrote: Hello, I`m building simple web app with users, profiles and so on. I`m using Auth Component for user authentication. I ran into a problem - how to prevent logged user from i.e. editing another user profile? It turns out that Auth Component is capable of simple authorization without the need for complicated ACL stuff. So I`m doing something like this: app_controller.php: $this-Auth-authorize = 'controller'; function isAuthorized() { //do not allow user to edit someone`s else profile if ($this-action=='edit') { if ($this-Auth-user('id') != $this-params['pass'][0]) { return false; } } return true; } My question is: is this correct approach? Maybe I should authorize against model? If yes - how would you do it ? Regards, Grzegorz --~--~-~--~~~---~--~~ 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: Files folder?
files is a special folder that should work for direct links to files within it, without needing to modify routes/rewrite from a default install, but you will get a filescontroller error for a bad link --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Catching MySQL errors
How can I capture a MySQL error like the following: Warning (512): SQL Error: 1062: Duplicate entry 'TestSlot-47e9547d-6570-4e3e-9834-16b88699522c' for key 2 [CORE/cake/ libs/model/datasources/dbo_source.php, line 459] Basically I have a unique key set across two fields in a table so that if I add a 'Slot' which belongsTo a 'Conference' the slot name must be unique within that conference. --~--~-~--~~~---~--~~ 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: Catching MySQL errors
Wouldn't be better to validate the uniqueness before saving the data? On Fri, Mar 28, 2008 at 12:58 PM, Greg Baker [EMAIL PROTECTED] wrote: How can I capture a MySQL error like the following: Warning (512): SQL Error: 1062: Duplicate entry 'TestSlot-47e9547d-6570-4e3e-9834-16b88699522c' for key 2 [CORE/cake/ libs/model/datasources/dbo_source.php, line 459] Basically I have a unique key set across two fields in a table so that if I add a 'Slot' which belongsTo a 'Conference' the slot name must be unique within that conference. --~--~-~--~~~---~--~~ 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: Catching MySQL errors
On Fri, Mar 28, 2008 at 12:09 PM, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: Wouldn't be better to validate the uniqueness before saving the data? Dardo beat me to it...I was going to suggest the same thing: a custom validation method to make sure you have a unique slot name -- Chris Hartjes Internet Loudmouth Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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: Adding meta description tags on a view page
Thank you both for your posts... I tried both suggestions, went through what you had posted on your blog as well Guillaume, but still having the same results. I have the echo $scripts_for_layout in the heading, and using the $html-meta() in my view doesn't put anything in there... I also tried with $html-css and nothing there either... I found somewhere where it said that setting a variable in the view would work and then echoing that variable in the layout... nope. Basically it is a view page (static information), and I'm not using a controller to show the information. Is that where I'm going wrong? I am using v1.2 in case that makes a difference. Thanks! Rusty --~--~-~--~~~---~--~~ 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: Catching MySQL errors
yah, okay.. I just figured that since I _could_ do it in the database schema, I _should_ do it there. I'll make a custom method. thanks On Mar 28, 2:12 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On Fri, Mar 28, 2008 at 12:09 PM, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: Wouldn't be better to validate the uniqueness before saving the data? Dardo beat me to it...I was going to suggest the same thing: a custom validation method to make sure you have a unique slot name -- Chris Hartjes Internet Loudmouth Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard:http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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: Catching MySQL errors
Dardo beat me to it...I was going to suggest the same thing: a custom validation method to make sure you have a unique slot name No need to make it custom, it's built into 1.2 Model::isUnique() and can be accessed as a validation rule: 'rule' = 'isUnique' It works great, I'm using it for usernames/email addresses. --~--~-~--~~~---~--~~ 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: Adding meta description tags on a view page
Oh no! I feel so dumb. I use two computers... my laptop where I do most of my work, and then a desktop... So I did the upgrade to version 1.2 with my laptop, and noticed that extensions were changed to .ctp This is where I was doing the changes, but on my desktop I didn't have the .ctp files, and was still using the .thtml... well, .ctp overrides .thtml files if they have the same name before the extension... any change I made to the .thtml wasn't doing anything... So to sum up, using $html-meta in the view, and then using the echo $scripts_for_layout in the layout (correct one) works to change meta tags dynamically for each view page. Rusty --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
We're under attack
I'm sure I won't be the first person to have seen this... or the last to respond to it: http://www.akbkhome.com/blog.php/View/161/CakePHP_taking_it_apart_and_the_better_written_world_of_sinners.html Seems like this guy just doesn't like frameworks. Ours in particular. --~--~-~--~~~---~--~~ 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: We're under attack
On Mar 28, 2008, at 10:51 AM, Stephen Orr wrote: I'm sure I won't be the first person to have seen this... or the last to respond to it: http://www.akbkhome.com/blog.php/View/161/CakePHP_taking_it_apart_and_the_better_written_world_of_sinners.html Seems like this guy just doesn't like frameworks. Ours in particular. Yeah, and he really likes PEAR. Enough said. -- John --~--~-~--~~~---~--~~ 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: Advice about a Calendar
If it's an actual 'date picker' popup calendar for easily selecting dates you're looking for then here's the one I use: http://marcgrabanski.com/code/ui-datepicker/ If it's an actual server side calendar application then I don't know. I'd be interested to see one though. The one Chris suggested looks more along the lines of that (at a glance) Cheers, Sonic --~--~-~--~~~---~--~~ 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: Unit Testing of cakephp 1.1 (not cakephp 1.2)
There is a test suite in cakeforge for 1.1. IIRC there are instructions for installing it there. I've only used it to test models and there are no fixtures. I use Selenium then to test my controllers indirectly through the UI. Let me know if you need more help. Might not be able to reply till Monday though. Cheers, Sonic On Thu, Mar 27, 2008 at 6:55 AM, bhushan A [EMAIL PROTECTED] wrote: Can anybody help me how to do unit testing of cakephp 1.1.. i ahve gone though this link - http://cakebaker.42dh.com/2006/12/18/testing-with-cakephp-12-a-preview/ . But its only for 1.2 version. how can i achieve this.? --~--~-~--~~~---~--~~ 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: Catching MySQL errors
Thanks Jon, the unique field is actually a pairwise uniqueness. So I believe I do need a custom method. I just did a $this-findCount() in my model with the fields that need to be unique. Works well. On Mar 28, 2:36 pm, jonknee [EMAIL PROTECTED] wrote: Dardo beat me to it...I was going to suggest the same thing: a custom validation method to make sure you have a unique slot name No need to make it custom, it's built into 1.2 Model::isUnique() and can be accessed as a validation rule: 'rule' = 'isUnique' It works great, I'm using it for usernames/email addresses. --~--~-~--~~~---~--~~ 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: We're under attack
The web site design really screams I know what I'm doing, trust me. I am especially fond of the custom banner graphic - really it should be featured on deviantART. By the way, I wrote this post using PEAR. --~--~-~--~~~---~--~~ 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: Catching MySQL errors
I've tried to catch the duplicate entry error a bunch of times, but have never had any luck. I would love to see a solution for this. I realize I can check before trying the save, but if I'm importing some large amount of data it would cause an extra query for every record. As for using IsUnique I don't think it works real well just sticking it in as a rule in validation. Otherwise won't it fail on updates? And if you set on = create won't that allow for duplicate names on update? I always end up using a custom rule to make sure that 1) the username doesn't exist and 2) if it does it has the same id as the data being saved. Maybe I'm missing some Cake magic on this one. -Matt www.pseudocoder.com On Mar 28, 11:58 am, Greg Baker [EMAIL PROTECTED] wrote: How can I capture a MySQL error like the following: Warning (512): SQL Error: 1062: Duplicate entry 'TestSlot-47e9547d-6570-4e3e-9834-16b88699522c' for key 2 [CORE/cake/ libs/model/datasources/dbo_source.php, line 459] Basically I have a unique key set across two fields in a table so that if I add a 'Slot' which belongsTo a 'Conference' the slot name must be unique within that conference. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
how can i create forms on the fly using ajax without requiring a div container to be previously created?
i've been looking for a way to make a variable number of forms and manage them(add or remove) on the client using 2 buttons i found the way to update div, but it does not fit my requirement... as if i update the whole div i would have to recreate all the forms. And i can't have a div for each form on the view, because its variable. is there a way to just add a DIV or FORM without reloading the others? and also removing divs or forms... thanks! --~--~-~--~~~---~--~~ 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: how can i create forms on the fly using ajax without requiring a div container to be previously created?
To my knowledge, not from within CakePHP (but this is off the top of my head), because you can only do DOM element updates. You'd have to do some manual Ajax through your JS framework. To catch the ajax response and do an Append to the DOM element instead of a the Replace. Doesn't help much, I'm sorry. On Fri, Mar 28, 2008 at 2:33 PM, miuuzn [EMAIL PROTECTED] wrote: i've been looking for a way to make a variable number of forms and manage them(add or remove) on the client using 2 buttons i found the way to update div, but it does not fit my requirement... as if i update the whole div i would have to recreate all the forms. And i can't have a div for each form on the view, because its variable. is there a way to just add a DIV or FORM without reloading the others? and also removing divs or forms... thanks! --~--~-~--~~~---~--~~ 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: Cakephp query have all conditions in join
UP http://groups.google.com/group/cake-php/browse_thread/thread/7ca543c3832c075b/e271da3dad4b2e98 On 5 Mar, 16:18, c3k [EMAIL PROTECTED] wrote: On 5 Mar, 13:32, AD7six [EMAIL PROTECTED] wrote: Based on what logic would you like cake to ignore the conditions you are explicitly telling it to restrict your results on. I expect that my conditions are used in the where, why they are used in the where AND in the join??? Which are the benefits? --~--~-~--~~~---~--~~ 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: Test suite 1.2: Is there a report for the Core Test Cases fails?
There's a clean install of 6311 here: http://clean.cakephp.dk/ http://clean.cakephp.dk/app/webroot/test.php I've no idea who owns it or how their server is configured, but you may find some sort of value in comparing your test results to the ones that are there... --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Access method of another controller
How can I access method of another controller? There is controller: ?php class AdminUsersController extends AppController { ---some functions function admin_user_list() { $results = $this-AdminUser-findAll('ORDER BY AdminUser.position'); return $results; } } ? and second controller is: ?php class MainMenusController extends AppController { function admin_add() { //this is wrong! why? I need admin_user_list() function from AdminUsersController on this place. // It's showing me this error every time: You are seeing this error because the private class // method admin_user_list should not be accessed directly $administrator =$this-requestAction('/admin_users/admin_user_list'); some code- } } ? How can I solve this? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
$this-redirect() crashes apache
OK...this shouldn't be this difficult. I'm creating my login..everything works fine up to the redirect. I've stepped through it with die()'s and it's fine up until the redirect. I've tried redirecting everywhere, including google.com, with no success. Every time it crashes apache..I have to stop it and start it again to do anything. I'm on 1.2 beta. Even tried updating to the nightly build and that didn't help. $this-redirect('/users', null, true); $this-redirect('/users'); $this-redirect('/users/index', null, true); $this-redirect('http://www.google.com', null, true); I've tried all of those. Here's my cake url if you need that. Thanks! http://localhost/cake_phpl/users/login --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
AJAX and auth redirection
Hello again, i am having a comments section on my website. Only registered user can post comments. I have added Auth to my CommentsController and provided an ajax element called as ajax_login(asking user name and password to it) which Cake renders if the user is not logged in but still tries to post a comment. now when the user signs on this new element and the sign in succeds the original element i.e the comments posting element does not appear again. i.e cake Auth not insert the original element in place where as in non ajax request the user is redirected back to where he came from. Can some one throw some light on how i can achieve this effect? -- Thanks Regards, Novice (http://ishuonweb.wordpress.com/). --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Parsing a cakephp session Data row
I'm getting the data column from the session table (DB session option) and it looks something like this: Config|a:3:{s:4:rand;i:6637528;s:4:time;i:1179... How can I parse this to get the session variables I need. I need this for an external application, so I can't use cake methods, but if someone can point me to the function cake uses to parse this, that will help a lot. Thanks --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
document root in shared hosting
Can I change document root in shared hosting? --~--~-~--~~~---~--~~ 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: .po files not being read suddenly
For some reason my app will read and use for translation: locale/eng/eng.po but not locale/eng/LC_MESSAGES/default.po Any ideas? On Mar 26, 8:29 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Solved! When I added the Auth stuff yesterday, I included some settings in AppController::beforeFilter(), including: $this-Auth-loginError = __('Invalid e-mail / password combination. Please try again', true); Once I commented that out everything worked as before. So this call to translate() was somehow messing things up royally. And, it seems obvious to me now that setting this is unnecessary because I can place it in the login() method's flash msg. On Mar 26, 9:55 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Stranger and stranger. I decided to disable Auth because it was that that I'd added to the site before i18n stopped working. As soon as I did that, my Configure::read('Config.language') now shows the new languagesetting. Why would Auth be screwing around with Config.language? Unfortunately, I'm still not seeing anything translated ;-( I'm using cake_1.2.x.x_24.01.2008, btw. As an aside, does anyone know how to globally disable Auth without removing it from the $components array in AppController? Doing that isn't great because I then had to comment out all of the Auth- allow(...) calls in 5 other controllers. On Mar 26, 9:37 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I think I've narrowed down the problem if not the solution. Looking through i18n.php I noticed that the getInstance() method checks the session, but only if thelanguageis not found in the core config. function getInstance() { static $instance = array(); if (!$instance) { $instance[0] = new I18n(); $instance[0]-l10n = new L10n(); $language= Configure::read('Config.language'); if ($language=== null !empty($_SESSION['Config']['language'])) { $language= $_SESSION['Config']['language']; } $instance[0]-l10n-get($language); } return $instance[0]; } Since I'm doinglanguageswitching this seems backwards to me. If it's been switched, the newlanguagewould never be picked up here, it seems. Anyway, I stuck debug(i18n: ${language}); in there but $languageis consistently empty. Trying my initial hunch, I modified the method to have: if (!empty($_SESSION['Config']['language'])) { $language= $_SESSION['Config']['language'];} else { $language= Configure::read('Config.language'); } This seems more reasonable to me because mylanguageswitching code (a modified version of Jason Chow's P28NComponent) is writing the newly- requested lang to the session. But the debug() is still showing it's empty, however. So, I put debug($_SESSION) in my default.ctp and it properly shows the new language, eg: Array ( [Config] = Array ( [userAgent] = 67d3fbdba7bd59adfe49aefd8b4eb32b [time] = 1206579533 [rand] = 563719418 [timeout] = 9 [language] = fr ) ) When I print the output from Configure::read('Config.language') on the page I see en-us. This doesn't change even when I modify the component to add a Configure::write('Config.language', $lang); Does anyone have any thoughts on why the session appears to be empty in the i18n class? And, if this is normal, why getInstance() would bother checking it? On Mar 26, 12:59 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I got some L10n stuff working yesterday but it now seems to have stopped. I'd extracted a new default.pot file because I had a lot more strings to translate. I had the script overwrite the one I made yesterday and copied it into: locale/eng/LC_MESSAGES/default.po locale/fre/LC_MESSAGES/default.po locale/spa/LC_MESSAGES/default.po Later on, I noticed that I wasn't seeing any changes when switching languages. $session-read('Config.language') does show the change from onelanguageto another. And I can immediately see changes to a msgstr in the eng default.po, so I know that one's being read. I have caching disabled and I've made no other changes to core. Neither have I done anything to thelanguagesettings I had. Any idea what I may have done (or left out) to cause this? --~--~-~--~~~---~--~~ 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: Files folder?
try /pdf/example.pdf or www.example.com/pdf/example.pdf I am building a website for a client and they have a large amount of PDF's so I decided I would put them in: app/webroot/files/pdf but when I navigate to: www.example.com/files/pdf/example.pdf i get: Error: FilesController could not be found. How can I make it allow me access to this folder. Or if this is not an option, where should I store the PDF's instead ? --~--~-~--~~~---~--~~ 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: We're under attack
Actually, it looks like he's just barking. Most of his 'complaints' sound like stuff I've heard from C++ developers using Java: This is too complex, Why can't I just use a pointer?, etc. Never mind that it enforces good design patterns, or that the inheritance you can use in CakePHP really increases productivity, or that Bake can cut prototyping down to a day... I love how he talks about all the inefficiencies of CakePHP, but then suggests the bloat of a template system. Nothing to see here, move along On Mar 28, 10:51 am, Stephen Orr [EMAIL PROTECTED] wrote: I'm sure I won't be the first person to have seen this... or the last to respond to it: http://www.akbkhome.com/blog.php/View/161/CakePHP_taking_it_apart_and... Seems like this guy just doesn't like frameworks. Ours in particular. --~--~-~--~~~---~--~~ 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: document root in shared hosting
I think yes! Create the file .htaccess in the root directory and write string: RewriteBase /new_root_folder But in your hosting must be enabled module mod_rewrite. Sorry for my English. I am from Russian. Can I change document root in shared hosting? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Named Params with RSS extension
I have an articles section for which I'd like an RSS feed. This articles section may be filtered by author, category, or both, such that all of the following may occur: /articles/index/Author:Ernest Hemingway/ /articles/index/Author:Ernest Hemingway/Category:Old Men,Bodies of Water/ /articles/index/Category:Old Men,Bodies of Water/ With a simple router.php parse I am able to serve the full list of articles: Router::parseExtensions('rss'); --serves:-- /articles.rss/ -or- /articles/index.rss but I am not able to use the named params: /articles.rss/index/Author:Ernest Hemingway/ /articles.rss/index/Author:Ernest Hemingway/Category:Old Men,Bodies of Water/ /articles.rss/index/Category:Old Men,Bodies of Water/ --or-- /articles/index.rss/Author:Ernest Hemingway/ /articles/index.rss/Author:Ernest Hemingway/Category:Old Men,Bodies of Water/ /articles/index.rss/Category:Old Men,Bodies of Water/ What am I missing? Is this possible? --~--~-~--~~~---~--~~ 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: Pagination Group By Problem
i think you can find your answer at the following site: http://www.littlehart.net/atthekeyboard/2008/03/04/custom-cakephp-12-pagination-queries/ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Form Helper
I'm trying to use the form helper to display drop down menu date fields. Now if I want to display datetime it works, but when I try and do the same thing for date I get this error: Warning (512): Method FormHelper::date does not exist [CORE/cake/libs/ view/helper.php, line 148] The code from my view is h1Add Task/h1 ?php echo $form-create('Task'); echo $form-input('title'); echo $form-input('description', array('rows' = '3')); echo $form-input('context'); echo $form-input('project'); echo $form-date('due'); echo $form-end('Save Task'); ? --~--~-~--~~~---~--~~ 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: Cakephp query have all conditions in join
On Mar 28, 9:54 pm, c3k [EMAIL PROTECTED] wrote: UP alternatively explain what you mean. that means show the sql you are talking about ;) --~--~-~--~~~---~--~~ 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: Form Helper
datetime works, so you're using 1.2. well the warning message says that the method 'date' does not exist in the formhelper. as shocking as it sounds, the method 'date' does not exist in the form helper: http://api.cakephp.org/1.2/class_form_helper.html --~--~-~--~~~---~--~~ 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: .po files not being read suddenly
On Fri, Mar 28, 2008 at 6:49 PM, Aaron Shafovaloff [EMAIL PROTECTED] wrote: For some reason my app will read and use for translation: locale/eng/eng.po but not locale/eng/LC_MESSAGES/default.po Strange. What version are you running? It's as if i18n.php isn't setting the domain and category correctly. I wonder if this fix would help: http://groups.google.com/group/cake-php/browse_frm/thread/889295952424caf9 FWIW, i'm running cake_1.2.x.x_6590 which is a pretty fresh version (beware). I made Claudia's suggested change (above) and also modified l10n.php by adding 'en' = 'en' to its $__l10nMap because it wrongly depends on the 3-character language code (if a 2-char code is available that one should be used, according to the spec). I should probably submit this to Trac. --~--~-~--~~~---~--~~ 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: $this-redirect() crashes apache
httpd version? PHP version? OS? Does Apache's error log say anything significant? On Fri, Mar 28, 2008 at 5:54 PM, villain189 [EMAIL PROTECTED] wrote: OK...this shouldn't be this difficult. I'm creating my login..everything works fine up to the redirect. I've stepped through it with die()'s and it's fine up until the redirect. I've tried redirecting everywhere, including google.com, with no success. Every time it crashes apache..I have to stop it and start it again to do anything. I'm on 1.2 beta. Even tried updating to the nightly build and that didn't help. $this-redirect('/users', null, true); $this-redirect('/users'); $this-redirect('/users/index', null, true); $this-redirect('http://www.google.com', null, true); I've tried all of those. Here's my cake url if you need that. Thanks! http://localhost/cake_phpl/users/login --~--~-~--~~~---~--~~ 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: FCK loads iframe w/layout
$this-layout = false; On Fri, Mar 28, 2008 at 11:07 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm trying to adjust the famous fck article http://wsapi.infospace.com/clickserver/_iceUrlFlag=1?rawURL=http%3A%2F%2Fbakery.cakephp.org%2Farticles%2Fview%2Fusing-fckeditor-with-cakephp0=1=04=207.97.206.185=72.54.164.589=6edf9510a9c84d6990bdc556a190c80110=111=pch.blingo13=search14=86753015=main-title17=118=119=020=021=122=ZfV0u6LvGsw%3D40=99Oj9%2BStTYhxmqB1b8fzfw%3D%3D_IceUrl=true for cakephp 1.2 helper fxn is like this function fckload($id, $toolbar = 'Default') { $did = ; foreach (explode('.', $id) as $v) { $did .= ucfirst($v); } return FCK_CODE script type=text/javascript fckLoader_$did = function () { var bFCKeditor_$did = new FCKeditor('$did'); bFCKeditor_$did.BasePath = '/js/'; bFCKeditor_$did.ToolbarSet = '$toolbar'; bFCKeditor_$did.ReplaceTextarea(); } fckLoader_$did(); /script FCK_CODE; } but when i call it with echo $form-textarea(Page.body,array( div=false,id=Editable,value= $contents ,rows=10,cols=45 )); ... echo $editor-fckload('Editable'); It puts a complete page, with my layout/site logo/navigation embedded into the spot where the textarea was Anyone have better code for this? --~--~-~--~~~---~--~~ 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: dynamic css and/or javascript
That page doesn't say anything about the layouts/js dir, though. I, too, have been wondering what that (and the CSS dir) is for. On Fri, Mar 28, 2008 at 9:17 AM, Sliv [EMAIL PROTECTED] wrote: http://book.cakephp.org/view/207/javascript --~--~-~--~~~---~--~~ 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: dynamic css and/or javascript
That page doesn't say anything about the layouts/js dir, though oh rly? includeScript($script) * string $script - File name of script to include. Includes the named $script. If $script is left blank the helper will include every script in your app/webroot/js directory. Includes the contents of each file inline. --~--~-~--~~~---~--~~ 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: Run query in background while showing Please wait
I think the disparity is caused by the WHERE IN query will match first name OR last name. So, John Smith and Peggy Brown will both be returned if the import name is John Brown. The fact that the OP's query return all records is because the query is selecting them all. Of course, if there aren't exactly 24 matches in the table, maybe this needsa to be revisted. BTW, aside from not properly matching first and last name together, the WHERE IN query (at least with MySQL) is very expensive, generally. Oh, and don't forget to create an index on (fn, ln) for both tables. On Thu, Mar 27, 2008 at 11:39 PM, jonknee [EMAIL PROTECTED] wrote: Now, here's where we stand... jonknee's query took about 25-27 seconds and returned 154 records. b logica's query took about 6 seconds and returned 24 records Sounds about right, except for the difference in number of dupes. How many are there in total? --~--~-~--~~~---~--~~ 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: Access method of another controller
//this is wrong! why? I need admin_user_list() function from AdminUsersController on this place. // It's showing me this error every time: You are seeing this error because the private class // method admin_user_list should not be accessed directly Probably because of the _. You can access the AdminUser model directly if you add it to the $uses of MainMenusController. class MainMenusController extends AppController { var $uses = array('MainMenu', 'AdminUser'); It is not what you asked for, but this is more efficient. $administrator =$this-requestAction('/admin_users/admin_user_list'); some code- } } ? How can I solve this? --~--~-~--~~~---~--~~ 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: Named Params with RSS extension
Try : /articles/index/Author:Ernest Hemingway.rss On Fri, Mar 28, 2008 at 2:16 PM, Damon [EMAIL PROTECTED] wrote: I have an articles section for which I'd like an RSS feed. This articles section may be filtered by author, category, or both, such that all of the following may occur: /articles/index/Author:Ernest Hemingway/ /articles/index/Author:Ernest Hemingway/Category:Old Men,Bodies of Water/ /articles/index/Category:Old Men,Bodies of Water/ With a simple router.php parse I am able to serve the full list of articles: Router::parseExtensions('rss'); --serves:-- /articles.rss/ -or- /articles/index.rss but I am not able to use the named params: /articles.rss/index/Author:Ernest Hemingway/ /articles.rss/index/Author:Ernest Hemingway/Category:Old Men,Bodies of Water/ /articles.rss/index/Category:Old Men,Bodies of Water/ --or-- /articles/index.rss/Author:Ernest Hemingway/ /articles/index.rss/Author:Ernest Hemingway/Category:Old Men,Bodies of Water/ /articles/index.rss/Category:Old Men,Bodies of Water/ What am I missing? Is this possible? --~--~-~--~~~---~--~~ 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: AJAX and auth redirection
if isAjax() return in the view: script type=text/javascript window.location = '/url/to/redirect'; /script On Fri, Mar 28, 2008 at 7:07 PM, Novice Programmer [EMAIL PROTECTED] wrote: Hello again, i am having a comments section on my website. Only registered user can post comments. I have added Auth to my CommentsController and provided an ajax element called as ajax_login(asking user name and password to it) which Cake renders if the user is not logged in but still tries to post a comment. now when the user signs on this new element and the sign in succeds the original element i.e the comments posting element does not appear again. i.e cake Auth not insert the original element in place where as in non ajax request the user is redirected back to where he came from. Can some one throw some light on how i can achieve this effect? -- Thanks Regards, Novice (http://ishuonweb.wordpress.com/). --~--~-~--~~~---~--~~ 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: Parsing a cakephp session Data row
http://us.php.net/unserialize On Fri, Mar 28, 2008 at 7:26 PM, Nelson Cysneros [EMAIL PROTECTED] wrote: I'm getting the data column from the session table (DB session option) and it looks something like this: Config|a:3:{s:4:rand;i:6637528;s:4:time;i:1179... How can I parse this to get the session variables I need. I need this for an external application, so I can't use cake methods, but if someone can point me to the function cake uses to parse this, that will help a lot. Thanks --~--~-~--~~~---~--~~ 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: We're under attack
On Fri, Mar 28, 2008 at 11:15 PM, Damon [EMAIL PROTECTED] wrote: Nothing to see here, move along Hmmm Alan! You can ignore him for most parts - I have been following him since a long time, it is a pattern ;) Cheers Tarique -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---