Help please! Enumerated fields do not seem to work in admin scaffold view in CakePHP 1.2...
Hi, Last week I gave CakePHP a first try, and then went for the stable 1.17 release. I created some tables, some scaffolded views, and as far as I remember, the enumerated DB fields all showed proper select fields in the edit screens. Now, I've upgraded to the yesterday's 1.2 alpha (marked as pre-beta) release, in order to be able to easily enable the $scaffold = 'admin'; trick, as I have only today left to come up with a (scaffolded) back-office for a prototype application. However... I now run into a very weird situation, in the respect that the scaffolding doesn't pick up my enumerated fields anymore in the edit view. For some reason, these fields display as normal input fields, but nothing can be selected/entered in them. Googling on this issue has not yet lead me to an answer. Does anyone know how I can enable such scaffolded select fields with the enumerated values in the edit view? From a code point of view converting enum DB fields to HTML select fields is not so difficult to achieve, and I have done so previously too. If for some reason it is absolutely impossible to enable properly scaffolded enum select fields in CakePHP 1.2, can anyone tell me how I could best go about sticking in my own code in the scaffold controller? I really hope someone has a (quick and easy) solution for this, as time is running out fast, and I'd lke to get the entire back-office up and running today still...:P Tnx in advance, and cheers, Olafo --~--~-~--~~~---~--~~ 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: About a mysql query
Nope, won't work. I've tried 'FOO() AS Table.field', 'FOO() AS `Table`.`field`' and 'FOO() AS `Table.field`'. The first 2 are invalid SQL, the last one isn't parsed by cake properly. afterFind() is the only way I've found to do this. On Oct 23, 3:43 am, dardosordi [EMAIL PROTECTED] wrote: You can try putting 'SUBSTRING_INDEX(content, , 20) AS Announcement.teaser' On Oct 22, 6:06 am, grigri [EMAIL PROTECTED] wrote: Model::findAll() only indexes fields that are present in the database; anything else is returned as you see (numeric index). You can write an afterFind() callback in your model to insert the fields into the correct positions. On Oct 19, 11:15 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hey, I am trying to do this: $this-set('announcements', $this-Announcement-findAll(null, array('id', 'name','SUBSTRING_INDEX(content, , 20) AS teaser', 'pic_filename'), 'add_date DESC')); and it doesn't work properly .. here is part of the dump of the resulting object: array(2) { [Announcement]= array(3) { [id]= string(1) 2 [name]= string(18) Stire senzationala [pic_filename]= string(8) nicu.jpg } [0]= array(1) { [teaser]= string(7) content } } Any help would be apreciated! Thx --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
filter/search/paginate
Hello, I'm looking for component or helper to filter/search/paginate results. I need it for version 1.1.15 (not version 1.2). I want something exactly like this http://www.javascriptkit.com/script/script2/tablefilter.shtml, but I need to refresh data from database when the filter or the pagination are applied, and this script doesn't do it. Thanks in advance. --~--~-~--~~~---~--~~ 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: New CakePHP Releases
How is Router::mapResources('Posts'); used in the Controller and in the views? Larry E. Masters aka PhpNut wrote: We have some new releases available for download. Version 1.1.18.5850 [1] is a bug fix update to the current stable release. Version 1.2.0.5875 pre-beta [2] is the pre beta release of the current development version. We decided to have pre beta since a lot of new features have been added since the last alpha release. There are still some new features to implement, so we are holding the beta release until all the enhancement tickets are closed. This release took a little bit longer than expected, but we say it was worth the wait. As usual, this release includes hundreds of minor fixes, enhancements, and speed improvements. This release also includes several major feature additions, which we've been working hard on to implement so CakePHP remains the best framework for web application development in PHP. A number of important features were added to improve support for implementing web services, including simplified REST routing, i.e.: Router::mapResources('posts'); This will map each HTTP request to it's corresponding controller method (index, view, add, edit or delete). For example, a PUT request to /posts/1 maps to the edit() method of PostsController. In addition, the Router now supports a whole range of HTTP header detection options. Controlling access to your web services is easier than ever, too. The Security component now supports HTTP basic and digest authentication, which is easily configurable in your controller's beforeFilter() method. The Auth component has also undergone extensive refactoring, making it possible for you to plug in your own custom login authentication method or access control system. In the first of several major changes to the Model, findCount() and findAll() are being replaced by the new find() syntax. This new syntax allows you to specify parameters as an array, like the following: Post-find('count', array('conditions' = array('Post.comments_count' = ' 20')); Post-find('first', array('conditions' = array('Post.comments_count' = ' 20'), 'order' = 'Post.date ASC')); Post-find('all', array('limit' = 10, 'order' = 'Post.date ASC')); Pagination flexibility has also been improved with the addition of Model::paginate(), and Model::paginateCount(), which you can define in your models to handle custom pagination. Each method takes the same parameters as findAll() and findCount(), respectively. Also in the database department, schema generation has been implemented for several databases. Schema generation allows you to create and edit your database schemas with your favorite tool, and Cake's schema tools will manage the changes for you. In an ongoing effort to improve the flexibility of Cake's (minimalistic) configuration, most of the constants in core.php have been migrated to settings in the Configure class. Check out the latest version of core.phpand update your app's configuration accordingly. To help you identify the settings that should be changed, friendly warning messages have been added to point you in the right direction. In addition to code, the docs team has been hard at work over the past few months improving the documentation, and along with this release, we're now ready to unveil the pre-beta version of the CakePHP 1.2 manual, at http://tempdocs.cakephp.org/. There are still many things missing, but if you find any errors, please submit documentation tickets. And last but certainly not least, significant work has done to lay the foundation for full, PHP-native Unicode support in CakePHP. This means we do not have to wait for PHP6 to make it possible to fully internationalize your PHP application on any platform, independent of installed extensions. With all these new features, we hope you agree that CakePHP 1.2 pre-beta was worth the wait. This will be the last release before the 1.2 API is fully stabilized, and we can't wait for you to try it. [1] Download 1.1.18.5850: http://cakeforge.org/frs/?group_id=23release_id=343 1.1.x.x change long: https://trac.cakephp.org/wiki/changelog/1.1.x.x [2] Download 1.2.0.5875 pre-beta: http://cakeforge.org/frs/?group_id=23release_id=344 1.2.x.x change log: https://trac.cakephp.org/wiki/changelog/1.2.x.x -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ --~--~-~--~~~---~--~~ 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: Security Component HTTP digest authentication
You actually have to give it the password in plaintext as well in order for it to generate the necessary hash data. On Oct 23, 1:57 am, jcsiegrist [EMAIL PROTECTED] wrote: Hi everyone, I'm trying to use the Security HTTP authentication features. While I can get basic authentication to work, I just can't get digest to work. I'm using 1.2r5879. I use this call to the Security component in the beforeFilter of my AppController $this-Security-requireLogin('*', array('users' = array('admin' = 'bb5fd3344ae62a91d6aee3947fca'), 'type'='digest', 'realm'='admin')); I've tried also md5 hashing the username, but that didn't make any difference. I'm guessing that I need to be doing something different to my stored hash of the password and/or username. Can someone point me in the right direction? Thank You. :jc --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
New Release Assuming Installed in Webroot?
I'm running into a bit of a problem with the latest stable version. It seems like Cake is assuming it's installed to work from webroot. I have the cake directory installed in /opt. So, under /opt/cake I have: /opt/cake/app /opt/cake/cake /opt/cake/docs /opt/cake/vendors /opt/cake/index.php So, I run bake (from /opt/cake): php ./cake/scripts/bake.php -project reviews That generates the skeleton. In my apache config file, I setup an alias: Alias /reviews/ /opt/cake/reviews/webroot/ Directory /opt/cake/reviews/webroot Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all /Directory When I restart apache, http://localhost/reviews/ gives me the startup page, but with no css. when I look at the generated source, I have this for the css line: link rel=stylesheet type=text/css href=/css/cake.generic.css / Which, of course, should be: link rel=stylesheet type=text/css href=/reviews/css/ cake.generic.css / I went ahead and proceeded with baking my models, views, and controllers, and I had similar results with all the action links going to /controller/action as opposed to /reviews/controller/action. How can I get cake to use the relative path instead of thinking it's in the webroot? Or did I bake this wrong? Thanks, KTD --~--~-~--~~~---~--~~ 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: Help please! Enumerated fields do not seem to work in admin scaffold view in CakePHP 1.2...
1. Cake does not officially support the ENUM or SET field type - apparently implementation is too different between database systems. 2. If they display as normal input fields then you would be able to edit them. Are you sure it isn't displaying as a multi-select list (which can look very similar to a textarea). For some reason I found scaffolding did that for me last week when I had a field called text (type TEXT). Renaming the field to contents and it displayed correctly as a textarea. (Strange error, as on another model the text field was fine). Just view the source to double check what you are getting. 3. To use your ENUM values as options in a select list, follow something like http://bakery.cakephp.org/articles/view/baked-enums This will easily generate an associative array suitable for passing to the form/html helper select function. It will mean those actions cannot be scaffolded, though. On Oct 23, 6:09 pm, Olaf Greve [EMAIL PROTECTED] wrote: Hi, Last week I gave CakePHP a first try, and then went for the stable 1.17 release. I created some tables, some scaffolded views, and as far as I remember, the enumerated DB fields all showed proper select fields in the edit screens. Now, I've upgraded to the yesterday's 1.2 alpha (marked as pre-beta) release, in order to be able to easily enable the $scaffold = 'admin'; trick, as I have only today left to come up with a (scaffolded) back-office for a prototype application. However... I now run into a very weird situation, in the respect that the scaffolding doesn't pick up my enumerated fields anymore in the edit view. For some reason, these fields display as normal input fields, but nothing can be selected/entered in them. Googling on this issue has not yet lead me to an answer. Does anyone know how I can enable such scaffolded select fields with the enumerated values in the edit view? From a code point of view converting enum DB fields to HTML select fields is not so difficult to achieve, and I have done so previously too. If for some reason it is absolutely impossible to enable properly scaffolded enum select fields in CakePHP 1.2, can anyone tell me how I could best go about sticking in my own code in the scaffold controller? I really hope someone has a (quick and easy) solution for this, as time is running out fast, and I'd lke to get the entire back-office up and running today still...:P Tnx in advance, and cheers, Olafo --~--~-~--~~~---~--~~ 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: New Release Assuming Installed in Webroot?
I don't think this functionality has changed recently. If you search this list you will find many instances of this - it has behaved this way for as long as I can remember. To fix, you need to add RewriteBase /reviews to your /app/webroot/.htaccess file (just after the RewriteEngine On line). You may also need to add define ('WEBROOT_DIR', 'reviews'); to your /app/webroot/index.php. This was certainly the case when I last used aliases (admittedly some time ago now). On Oct 23, 11:13 pm, Kick The Donkey [EMAIL PROTECTED] wrote: I'm running into a bit of a problem with the latest stable version. It seems like Cake is assuming it's installed to work from webroot. I have the cake directory installed in /opt. So, under /opt/cake I have: /opt/cake/app /opt/cake/cake /opt/cake/docs /opt/cake/vendors /opt/cake/index.php So, I run bake (from /opt/cake): php ./cake/scripts/bake.php -project reviews That generates the skeleton. In my apache config file, I setup an alias: Alias /reviews/ /opt/cake/reviews/webroot/ Directory /opt/cake/reviews/webroot Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all /Directory When I restart apache,http://localhost/reviews/gives me the startup page, but with no css. when I look at the generated source, I have this for the css line: link rel=stylesheet type=text/css href=/css/cake.generic.css / Which, of course, should be: link rel=stylesheet type=text/css href=/reviews/css/ cake.generic.css / I went ahead and proceeded with baking my models, views, and controllers, and I had similar results with all the action links going to /controller/action as opposed to /reviews/controller/action. How can I get cake to use the relative path instead of thinking it's in the webroot? Or did I bake this wrong? Thanks, KTD --~--~-~--~~~---~--~~ 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: New Release Assuming Installed in Webroot?
That fixed it! Thank's for the quick answer! On Oct 23, 9:22 am, Grant Cox [EMAIL PROTECTED] wrote: I don't think this functionality has changed recently. If you search this list you will find many instances of this - it has behaved this way for as long as I can remember. To fix, you need to add RewriteBase /reviews to your /app/webroot/.htaccess file (just after the RewriteEngine On line). You may also need to add define ('WEBROOT_DIR', 'reviews'); to your /app/webroot/index.php. This was certainly the case when I last used aliases (admittedly some time ago now). On Oct 23, 11:13 pm, Kick The Donkey [EMAIL PROTECTED] wrote: I'm running into a bit of a problem with the latest stable version. It seems like Cake is assuming it's installed to work from webroot. I have the cake directory installed in /opt. So, under /opt/cake I have: /opt/cake/app /opt/cake/cake /opt/cake/docs /opt/cake/vendors /opt/cake/index.php So, I run bake (from /opt/cake): php ./cake/scripts/bake.php -project reviews That generates the skeleton. In my apache config file, I setup an alias: Alias /reviews/ /opt/cake/reviews/webroot/ Directory /opt/cake/reviews/webroot Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all /Directory When I restart apache,http://localhost/reviews/givesme the startup page, but with no css. when I look at the generated source, I have this for the css line: link rel=stylesheet type=text/css href=/css/cake.generic.css / Which, of course, should be: link rel=stylesheet type=text/css href=/reviews/css/ cake.generic.css / I went ahead and proceeded with baking my models, views, and controllers, and I had similar results with all the action links going to /controller/action as opposed to /reviews/controller/action. How can I get cake to use the relative path instead of thinking it's in the webroot? Or did I bake this wrong? Thanks, KTD --~--~-~--~~~---~--~~ 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 1.2: paginate igoner recursive = 0?
I have code (generated by bake): $this-User-recursive = 0; $this-set('users', $this-paginate()); And User - have association with other table. After recursive = 0, I hope, I didn't see additional data, but pagination fully igonre this recursive.. I see all relation table in $this-data... ;( --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Sending Mail with Swift Mailer Component; Bcc will send out multiple emails?
Hi Everyone, I am using Swift Version 2.1.17 with Swift Mail Component. CakePHP version: 1.2.0.5165alpha I have $this-SwiftMailer-addTo('from',[EMAIL PROTECTED],Admin); $this-SwiftMailer-addTo('to', $data['User']['user_email'], $data['User']['user_name']); $this-SwiftMailer-addTo('bcc',[EMAIL PROTECTED],AL); $this-SwiftMailer-addTo('bcc',[EMAIL PROTECTED],AL); The To recipient will receive 1 email if there is no BCC person, 2 same email if there is 1 BCC person and 3 email if there are 2 BCC person. Meaning the number of email To recipient will receive is 1 + no of total BCC person. Is anyone encountering this? If is it the above codes? Did anyone successfully send out emails with BCC? Thanks. Best Regards, AL --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
shopping cart
What have you found to be your best solution for a shopping cart system in cake php. List the pros and cons of what you have used. 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: New CakePHP Releases
Nate, can you explain me how five classical cakephp CRUD methods can manage resources requests. Really edit and add methods made two actions instead of one. In RoR in case of resources used 7(seven!) methods. So I ask example how resources will work with add/edit/index/view/ delete or add two aditional methods to resource maping. --~--~-~--~~~---~--~~ 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: New CakePHP Releases
Nate, can you explain me how five classical cakephp CRUD methods can manage resources requests.Really edit and add methods made two actions instead of one. In RoR in case of resources used 7(seven!) methods. So I ask example how resources will work with add/edit/index/view/ delete or add two aditional methods to resource maping. --~--~-~--~~~---~--~~ 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: New CakePHP Releases
On Oct 23, 4:36 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Nate, can you explain me how five classical cakephp CRUD methods can manage resources requests.Really edit and add methods made two actions instead of one. In RoR in case of resources used 7(seven!) methods. So I ask example how resources will work with add/edit/index/view/ delete or add two aditional methods to resource maping. If you get a message Message sent that means don't send it again... --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Shell script questions
Hi, I love the Shell scripts features in cake 1.2. But I have a couple of questions: 1. Can I remove the first output of every shell script: Hello charlie, Welcome to CakePHP v1.2.0.5875 pre-beta Console --- It is not the function _welcome() but something else. Does someone if I can turn it off? 2. Can I use builtin components and helpers like Email and Time? if yes, How? ;) Thanks in advance! - Charlie --~--~-~--~~~---~--~~ 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: New CakePHP Releases
I really cant wait for a stable 1.2 .. its got a great feature set .. What time of the year is 1.2 stable expected Larry ? thanks, Varun On 10/23/07, dizz [EMAIL PROTECTED] wrote: How is Router::mapResources('Posts'); used in the Controller and in the views? Larry E. Masters aka PhpNut wrote: We have some new releases available for download. Version 1.1.18.5850 [1] is a bug fix update to the current stable release. Version 1.2.0.5875 pre-beta [2] is the pre beta release of the current development version. We decided to have pre beta since a lot of new features have been added since the last alpha release. There are still some new features to implement, so we are holding the beta release until all the enhancement tickets are closed. This release took a little bit longer than expected, but we say it was worth the wait. As usual, this release includes hundreds of minor fixes, enhancements, and speed improvements. This release also includes several major feature additions, which we've been working hard on to implement so CakePHP remains the best framework for web application development in PHP. A number of important features were added to improve support for implementing web services, including simplified REST routing, i.e.: Router::mapResources('posts'); This will map each HTTP request to it's corresponding controller method (index, view, add, edit or delete). For example, a PUT request to /posts/1 maps to the edit() method of PostsController. In addition, the Router now supports a whole range of HTTP header detection options. Controlling access to your web services is easier than ever, too. The Security component now supports HTTP basic and digest authentication, which is easily configurable in your controller's beforeFilter() method. The Auth component has also undergone extensive refactoring, making it possible for you to plug in your own custom login authentication method or access control system. In the first of several major changes to the Model, findCount() and findAll() are being replaced by the new find() syntax. This new syntax allows you to specify parameters as an array, like the following: Post-find('count', array('conditions' = array('Post.comments_count' = ' 20')); Post-find('first', array('conditions' = array('Post.comments_count' = ' 20'), 'order' = 'Post.date ASC')); Post-find('all', array('limit' = 10, 'order' = 'Post.date ASC')); Pagination flexibility has also been improved with the addition of Model::paginate(), and Model::paginateCount(), which you can define in your models to handle custom pagination. Each method takes the same parameters as findAll() and findCount(), respectively. Also in the database department, schema generation has been implemented for several databases. Schema generation allows you to create and edit your database schemas with your favorite tool, and Cake's schema tools will manage the changes for you. In an ongoing effort to improve the flexibility of Cake's (minimalistic) configuration, most of the constants in core.php have been migrated to settings in the Configure class. Check out the latest version of core.phpand update your app's configuration accordingly. To help you identify the settings that should be changed, friendly warning messages have been added to point you in the right direction. In addition to code, the docs team has been hard at work over the past few months improving the documentation, and along with this release, we're now ready to unveil the pre-beta version of the CakePHP 1.2 manual, at http://tempdocs.cakephp.org/. There are still many things missing, but if you find any errors, please submit documentation tickets. And last but certainly not least, significant work has done to lay the foundation for full, PHP-native Unicode support in CakePHP. This means we do not have to wait for PHP6 to make it possible to fully internationalize your PHP application on any platform, independent of installed extensions. With all these new features, we hope you agree that CakePHP 1.2 pre-beta was worth the wait. This will be the last release before the 1.2 API is fully stabilized, and we can't wait for you to try it. [1] Download 1.1.18.5850: http://cakeforge.org/frs/?group_id=23release_id=343 1.1.x.x change long: https://trac.cakephp.org/wiki/changelog/1.1.x.x [2] Download 1.2.0.5875 pre-beta: http://cakeforge.org/frs/?group_id=23release_id=344 1.2.x.x change log: https://trac.cakephp.org/wiki/changelog/1.2.x.x -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to
Re: How to configure apache ?
Error was a nondescriptive the requested operation failed. It did not like the following lines when it restarted: libexec/httpd/mod_rewrite.so AddModule mod_rewrite.c --~--~-~--~~~---~--~~ 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-editor
Hi I used the $ajax-editor in my view. Now I use the option 'complete'. But then I used this option I can use the editor only for the first time then the editor doesn't work. Can anybody help me? I post my code: span id=title Title/span ?php echo $ajax-editor('title', 'ajax_update',array('size'=40,'complete'='alert(1)')); ? Many Thanks Marco --~--~-~--~~~---~--~~ 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: More HABTM : Adding another model to the filtered findAll()
So, I've continued reading, and to say that I've read all the threads on this topic would be a lie, but I'm trying. Any help would still be appreciated. On Oct 22, 8:27 am, Bob Mattax [EMAIL PROTECTED] wrote: I've looked through and tried all of the HABTM filtering discussions, and have tried to adapt them to my needs, but I just can't seem to get it to work. Here is the basic set of relationships that I'm trying to find results for: Units - Buildings - HABTM - Campuses I'm working on making a small rental property application, and I want to be able to find the units with certain specs that match certain criteria for the unit, but also exist within a certain campus. I've tried binding models on the fly, but I'm not getting very far. The queries displayed in my debugging always come short of including all the joins I would have expected. Any help would be appreciated. Thanks, Bob --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
saveField breaks in new 1.2 release
Hi, i just updated to the new release (of 1.2) and I'm having one problem I can't resolve: I'm updating my db from a sortable list through this function: function order_images(){ $ids= $this-params['form']['imgList']; $i = 1; foreach($ids as $id){ $this-Image-id = $id; $this-Image-saveField('sort', $i++); } $this-autoRender = false; } It used to work fine befre the update, now it doesn't. any ideas? --~--~-~--~~~---~--~~ 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 project
Greetings bakers, I'm developing my own site http://playonline.lt for about half a year and after that time I'm thinking to find other friendly bakers who would like to join a team and to make new project. I don't know now what it would be about so this first of all it will be some kind of brainstorming then we will code it. If you are interesting in that kind of coding then please write me email in dezpo666(at)gmail.com and we can talk further. P.S. Sorry for english... --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Looking for a great feelance CakePHP developer
Hello Group. We would like to ask if you (or someone you know) could help us finalize a web application built with CakePHP 1.1. Please respond off the group if you are interested in helping, learning, and making some $ thanks! Matt Kosoy Flat, Inc. 391 Broadway, 3rd. fl. New York, NY 10013 T: 646.613.8833 ext. 14 http://www.flat.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: saveField breaks in new 1.2 release
What does doesn't work mean, can you be more specific? And can you provide the stack trace or some debug log? Wayne On 10/23/07, LW [EMAIL PROTECTED] wrote: Hi, i just updated to the new release (of 1.2) and I'm having one problem I can't resolve: I'm updating my db from a sortable list through this function: function order_images(){ $ids= $this-params['form']['imgList']; $i = 1; foreach($ids as $id){ $this-Image-id = $id; $this-Image-saveField('sort', $i++); } $this-autoRender = false; } It used to work fine befre the update, now it doesn't. any ideas? --~--~-~--~~~---~--~~ 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.1.17.5612 / multiple save misbehaviour !?
this code does not not behave as expected: $this-save($entry1,false,null); $this-save($entry2,false,null); actually the second save becomes an UPDATE instead of an INSERT (which i would expect). it has to be changed to $this-save($entry1,false,null); $this-id = false; $this-save($entry2,false,null); when i look at the model save function i see some cleanup code at the end of it ... however the stored id leads to an implicit sql UPDATE. is this the intended behaviour? --~--~-~--~~~---~--~~ 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.1.17.5612 / multiple save misbehaviour !?
Yes, it is intended. In Cake 1.2.x you should always use $this-create() before a save that is intended to be an INSERT - I'm not sure if this function exists in 1.1.x. But setting $this-id to false or null is the basic requirement. On Oct 24, 2:43 am, flipcode [EMAIL PROTECTED] wrote: this code does not not behave as expected: $this-save($entry1,false,null); $this-save($entry2,false,null); actually the second save becomes an UPDATE instead of an INSERT (which i would expect). it has to be changed to $this-save($entry1,false,null); $this-id = false; $this-save($entry2,false,null); when i look at the model save function i see some cleanup code at the end of it ... however the stored id leads to an implicit sql UPDATE. is this the intended behaviour? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
$File-write problems in new release?
Is anyone who uses the File class to write binary (etc images) data getting file corruption in the new pre-beta release? I haven't been able to pin down the cause just yet, but it seems to be something that changed between a couple of weeks ago (that's the last nightly i got), and yesterday's pre-beta. I may be completely wrong, but just checking if anyone's encountered this yet before I open a ticket. --~--~-~--~~~---~--~~ 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: $File-write problems in new release?
yeah, some changes were made for the line endings on the different OS. Could you write a test case. The File tests are pretty easy to follow. --~--~-~--~~~---~--~~ 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: paginate igoner recursive = 0?
You will see the belongTo and hasOne. If you dont want anything use $this-User-recursive = -1; --~--~-~--~~~---~--~~ 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.1.17.5612 / multiple save misbehaviour !?
grant, thanks for mentioning the create() function ... i did not the like the $this-id hack :D cheers. 2007/10/23, Grant Cox [EMAIL PROTECTED]: Yes, it is intended. In Cake 1.2.x you should always use $this-create() before a save that is intended to be an INSERT - I'm not sure if this function exists in 1.1.x. But setting $this-id to false or null is the basic requirement. On Oct 24, 2:43 am, flipcode [EMAIL PROTECTED] wrote: this code does not not behave as expected: $this-save($entry1,false,null); $this-save($entry2,false,null); actually the second save becomes an UPDATE instead of an INSERT (which i would expect). it has to be changed to $this-save($entry1,false,null); $this-id = false; $this-save($entry2,false,null); when i look at the model save function i see some cleanup code at the end of it ... however the stored id leads to an implicit sql UPDATE. is this the intended behaviour? --~--~-~--~~~---~--~~ 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: paginate igoner recursive = 0?
Oh. I was wondering... On Oct 23, 11:14 am, Gwoo [EMAIL PROTECTED] wrote: You will see the belongTo and hasOne. If you dont want anything use $this-User-recursive = -1; --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Navigation Ideas
I am fairly new to CakePHP and have decent experience with MVC, but the issue of navigation always seems to haunt me. I wanted to run my navigation idea by anybody who cares to comment, to see if I am completely over thinking the whole thing. My example has been simplified for clarity. What I have is a table in the database page_descriptions that has a parent child relationship. CREATE TABLE `page_descriptions` ( `id` int(11) NOT NULL auto_increment, `parent_id` int(11) NOT NULL, `sort_order` int(11) default NULL, `long_id` varchar(100) NOT NULL, `name` varchar(100) NOT NULL, `status_id` int(11) NOT NULL default '1', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=latin1; My model for this looks like this: page_description.php ?php class PageDescription extends AppModel { var $name = 'PageDescription'; var $validate = array( 'page_id' = VALID_NOT_EMPTY, 'name' = VALID_NOT_EMPTY, 'long_id' = VALID_NOT_EMPTY, ); var $displayField = 'name'; var $belongsTo = array( 'ParentPage' = array('className' = 'PageDescription', 'foreignKey' = 'parent_id', 'fields'= '`id`, `parent_id`, `long_id`, `name`', ) ); var $hasMany = array( 'ChildPages' = array('className' = 'PageDescription', 'foreignKey'= 'parent_id', 'fields'= '`id`, `parent_id`, `long_id`, `name`', 'order' = '`sort_order` DESC', 'exclusive' = 'false', 'dependent' = 'true', ) ); function findByLongId($long_id = null){ if ($long_id) { $ret = $this-query(SELECT * FROM page_descriptions WHERE long_id = '.$long_id.'); if ($ret) { return $ret[0]; } else { return null; } } } /* Navigation Functions */ function getNavLevel($int=1){ //return $this-PageDescription-findAllByParentId(1) ; return $this-PageDescription-findAll( `PageDescription`.`parent_id` = .$int. AND `PageDescription`.`status_id` 0 , null,`PageDescription`.`sort_order`, null,null,2) ; } } ? I have edited the routes.php file and added this before last line. $Route-connect('/*', array('controller' = 'pages', 'action' = 'display')); So everything not explicitly declared with a controller and action before hand is sent to the pages_controller. What I do is use the params['pass'] to get the long_id and use that to find the specific PageDescription record. Currently this requires every long_id to be unique, but I have removed the code that resolves this issue for simplification. I am also using a half assed singleton pattern to query the database once per session and store this information in a session variable. OK, so here are my questions. 1. Is there an easier way that will allow for a flexible database driven navigation system? 2. When I return the PageDescription record, I can set recursion to get as many levels up of the ParentPage as I could hope for, but the ChildPages only goes one level deep no matter how I have adjusted the model. 3. Does anybody have any good examples of how they have handled something similar. I appreciate your help. Thanks, James --~--~-~--~~~---~--~~ 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 db connection | $useDbConfig
This is exactly what I want - but I can't seem to get this to work. I have controller with the following in the index action if ($data_source) { $did_this_work = $this-Model-data_source_changer($data_source); } In the model function data_source_changer($dbconfig) { $success = $this-setDataSource($dbconfig); return $success; } I get no errors but the $did_this_work variable is empty after it runs and I am getting data from the wrong database (did not change data sources) What am I doing wrong here? On Oct 22, 2:45 pm, rtconner [EMAIL PROTECTED] wrote: http://api.cakephp.org/1.2/class_model.html#d45dbbc6a13d9921731abf738... On Oct 22, 2:24 pm, carSign [EMAIL PROTECTED] wrote: Is there a way to change the config variables inside my model on the fly. For example. If a user visits: http://www.example.com/videos/rent/toy_story the page will be returned as normal. But if a user visits, http://www.example.com/videos_qa/rent/toy_storyorsomething like it I want to use the same model, view, and controller but change the value of $useDbConfig in the model to use a QA database? Is there a good way to do this. I want to have both available. The only difference in the page that will be seen by the user will be if the data in the database is different. --~--~-~--~~~---~--~~ 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-submit() not writing script tag inside ajax called view
I'm having a strange issue with $ajax-submit() not writing the script tag after the input, but only inside of an ajax called view. Here is the edit view (called with ajax into another view): h2Edit Category/h2 form method=post action=?php echo $html-url('/categories/edit') ? ?php echo $html-hidden('Category/id')? p label for=CategoryNameName:/labelbr / ?php echo $html-input('Category/name', array('style' = 'width: 400px;'))? ?php echo $html-tagErrorMsg('Category/name', 'Name is required.') ? /p p label for=CategoryDescriptionDescription:/labelbr / ?php echo $html-textarea('Category/description', array('rows'='5', 'style' = 'width:400px;')) ? /p p label for=CategoryParentidParent Category:/label ?php echo $html-selectTag('Category/parentid', $cat_select, $data['Category']['parentid'], null, null, false, false)? /p p ?php echo $ajax-submit('Save', array('update' = '/categories/ edit')); ? /p /form I've traced through all the functions that $ajax-submit() uses and echoed out the results all the way down to $javascript-codeBlock(). codeBlock() is the function which encloses the $script inside script tags. I echoed out the $script and it looks okay: Event.observe('button18502', 'click', function(event) { new Ajax.Updater('categories','/cake/categories/edit', {asynchronous:true, evalScripts:true, requestHeaders:['X-Update', 'categories']}) }, false); But when it tries to return sprintf($this-tags['javascriptblock'], $script), nothing is returned. Again, this all works inside a view NOT called by ajax. --~--~-~--~~~---~--~~ 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 great feelance CakePHP developer
I'm interested please contact me on dezpo666(at)gmail.com On 23 Spa, 19:22, Matt Kosoy [EMAIL PROTECTED] wrote: Hello Group. We would like to ask if you (or someone you know) could help us finalize a web application built with CakePHP 1.1. Please respond off the group if you are interested in helping, learning, and making some $ thanks! Matt Kosoy Flat, Inc. 391 Broadway, 3rd. fl. New York, NY 10013 T:646.613.8833 ext. 14http://www.flat.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: How to configure apache ?
OK, I fixed 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 -~--~~~~--~~--~--~---
URL wrong
On the page http://127.0.0.1/cake/users/register I have a button register but this goes to http://127.0.0.1/users/register and the page is not found. How do I get around 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 -~--~~~~--~~--~--~---
Building a forum plug-in
I'm thinking of putting together a simple forum that could be used in other projects, so I'm trying to decide if this should be done as a few controllers/models/elements or pull it right out into a plug-in? I guess the problem I'm trying to figure out is: is it possible with plug-ins to use views in the main apps folder, that would render elements in the plug-in folder. An example would be a topics list that would appear on a page, this would allow users of the forum to easily skin the forum to match their existing layout. Has anyone built a forum before (I've rolled my own 2-3 times over the years for low-traffic sites) and might offer some insights into what to watch out for? I'm planning to release this publicly on the CakeForge site. Zoltan www.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 -~--~~~~--~~--~--~---
Re: New Release Assuming Installed in Webroot?
rather than hack your define, you could also add Configure::write('App.base', 'reviews); to your core.php --~--~-~--~~~---~--~~ 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: paginate igoner recursive = 0?
Thanks a lot! On Oct 23, 8:14 pm, Gwoo [EMAIL PROTECTED] wrote: You will see the belongTo and hasOne. If you dont want anything use $this-User-recursive = -1; --~--~-~--~~~---~--~~ 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: Building a forum plug-in
I've been thinking about this also. It would be nice to just drop in a plugin and instantly have a forum. On my current site, we use vBulletin but it would be really cool if it could be done in Cake. This way other site features could be easily integrated into the forums and vice versa. Instead of having that separation. Like someone mentioned in another post, it would probably be easy to create the basic forum itself. The real work would come when building the backend for admins to moderate and manage the forums. I think there's already a project open for a Cake-based forum on CakeForge but still no release to date. Good luck writing your plugin, that would definitely be something that I'm sure a lot of people could use. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
prpblem baking models
Hi, I've a problem baking all my models in my DB. The problem is that bake doesn't recognize the names of fields in my DB. I respected the cake convention. So I have a table called customers with 10 fileds. In this 10 fields there are 2 in particular: 'id' and 'contact_id'. In my table called contacts i've 10 fields and one of these is 'id'. So, when bake asks me if I want to define model associations, and I select yes, id doesn't find any associations. If I try to do it manually, id doesn't even read the names of the field, but it reads the type (string, int, etc.). Strange! Anyone can help me? I'm using version 1.1.17.5612 Thank you. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Adodb
Has anyone successfully used adodb with Cake. If so ver 1.17. Or does anyone know if there's a tutorial for this. Reason being I have this app that uses adodb and in needs to be integrated into Cake. --~--~-~--~~~---~--~~ 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: prpblem baking models
solved. Thanks to this link found 2 minuts after my post. https://trac.cakephp.org/attachment/ticket/3265/ticket3265_ugly_but_working_bake.diff Hope is useful for someone else. bye, mcphisto On 23 Ott, 23:56, mcphisto [EMAIL PROTECTED] wrote: Hi, I've a problem baking all my models in my DB. The problem is that bake doesn't recognize the names of fields in my DB. I respected the cake convention. So I have a table called customers with 10 fileds. In this 10 fields there are 2 in particular: 'id' and 'contact_id'. In my table called contacts i've 10 fields and one of these is 'id'. So, when bake asks me if I want to define model associations, and I select yes, id doesn't find any associations. If I try to do it manually, id doesn't even read the names of the field, but it reads the type (string, int, etc.). Strange! Anyone can help me? I'm using version 1.1.17.5612 Thank you. --~--~-~--~~~---~--~~ 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: prpblem baking models
Upgrade the 1.1.18.5850, that fix is not correct and was closed as invalid since the issue had already been corrected in the core. http://cakeforge.org/frs/?group_id=23release_id=343 -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ --~--~-~--~~~---~--~~ 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: saveField breaks in new 1.2 release
I suggest you post your code, since Model has an awesome test coverage: in cake/tests/cases/libs/model/model.test.php you can see for example the function testSaveField() which tests for saveField() calls, and all tests are succeeding. Therefore saveField() IS WORKING on 1.2. -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -Mensaje original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de LW Enviado el: Martes, 23 de Octubre de 2007 04:34 p.m. Para: Cake PHP Asunto: Re: saveField breaks in new 1.2 release Doesn't work means the db-records are not updated, the saveField data is not saved. it doesn't give me an error message or any entry in the cake debug log though. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Paginating inside admin in new 1.2 release
Using the latest svn version i was making a simple paginated list inside the admin section: it was called from: /admin/news/index the code used in the controller is: function admin_index() { $news = $this-paginate('News'); $this-set('news', $news); } the view code (with paginator helper) is simple from my point of view: tr th?php echo $paginator-sort('Id', 'id');?/th th?php echo $paginator-sort('Categoru', 'category_id');?/th th?php echo $paginator-sort('Titlte', 'title');?/th th?php echo $paginator-sort('Date', 'created');?/th /tr the problem here is that the url formed by Router is not extracting the admin_ part from the url, so the link points here: /admin/news/admin_index/page:1/sort:category_id/direction:asc this obviously generates an error because admin_index is pointed to admin_admin_index method, that doesn't exists. If i forced the action with this: $this-paginate['options']['action'] = 'index'; the link now is well formed but the direction clause is never changed, getting all the time the Ascending direction. I look throught the Router code and i didn't found anything strange, i tried to modify the lines 674 to 680 in cake/libs/router.php with this hackish and ugly code only to see if works: if ($admin) { if (!isset($url[$admin]) !empty($params[$admin])) { $url[$admin] = true; if (substr($url['action'], 0, 6) == 'admin_') $url['action'] = str_replace('admin_', '', $url['action']); } elseif ($admin array_key_exists($admin, $url) ! $url[$admin]) { unset($url[$admin]); } } and now everythings works fine, i know that this isn't the better solution, but i run all the controller and paginator helper tests and all passes. It's to late here in argentina and i'm still at work, when i arrive home i'll be looking to create some tests that reproduce this ¿bug? or im missing something? Thanks in advance gonzalo --~--~-~--~~~---~--~~ 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 update with on/off switch image question
I have the following ajax link for and enabled/disabled image switch. works fine but it updates the whole page (itemsdiv) instead of only 1 a single table cell (updatehere)... I can make it only to show 0 or 1 but cant create ajax-link with pictures.. Any suggestion would be appreciated :) VIEW: div id=itemsdiv table ... tddiv id=updatehere/div ?php echo $ajax-link(($item['Item']['active'] == 1?$html- image('admin/enabled.gif'):$html-image('admin/disabled.gif')), 'null', $options = array('url' = '/items/changestatus/'. $scene['Scene']['id'].'/active/', 'update' = itemsdiv), null, false); ? /td ... /table /div CONTROLLER: function changestatus ($id,$sub) { $this-Item-id = $id; $item = $this-Item-read(); if($scene['Item'][$sub] == 0) { $item['Item'][$sub] = 1; } else { $item['Item'][$sub] = 0; } $this-layout = 'ajax'; $this-Item-save($item); ($this-RequestHandler-isAjax() 0) ? $ajax=ajax : $ajax=; $this-redirect('/items/index/'.$ajax); } Thanks, Andras Kende --~--~-~--~~~---~--~~ 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: Paginating inside admin in new 1.2 release
Me too... there's a ticket in Trac about it: https://trac.cakephp.org/ticket/3440 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
400 Bad Request on Windows
I am unable to get Cake to work locally. I always get a HTTP 400 when I hit the URL: http://localhost/csqv2(/) with or without trailing slash I'm using: WinXP Apache 2.2 PHP 5.2.3 I have a directory in my httpd.conf Alias /csqv2 C:/dev/workspaces/ECLIPSEWorkspaces/csq/csqv2/ Directory C:/dev/workspaces/ECLIPSEWorkspaces/csq/csqv2 Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all /Directory Also, I enabled logging for the mod_rewrite module, here is the output it gave me: 127.0.0.1 - - [23/Oct/2007:20:37:43 --0400] [localhost/sid#26c6d8] [rid#12beed0/initial] (3) [perdir C:/dev/workspaces/ECLIPSEWorkspaces/ csq/csqv2/] strip per-dir prefix: C:/dev/workspaces/ECLIPSEWorkspaces/ csq/csqv2/ - 127.0.0.1 - - [23/Oct/2007:20:37:43 --0400] [localhost/sid#26c6d8] [rid#12beed0/initial] (3) [perdir C:/dev/workspaces/ECLIPSEWorkspaces/ csq/csqv2/] applying pattern '^$' to uri '' 127.0.0.1 - - [23/Oct/2007:20:37:43 --0400] [localhost/sid#26c6d8] [rid#12beed0/initial] (2) [perdir C:/dev/workspaces/ECLIPSEWorkspaces/ csq/csqv2/] rewrite '' - 'app/webroot/' 127.0.0.1 - - [23/Oct/2007:20:37:43 --0400] [localhost/sid#26c6d8] [rid#12beed0/initial] (3) [perdir C:/dev/workspaces/ECLIPSEWorkspaces/ csq/csqv2/] add per-dir prefix: app/webroot/ - C:/dev/workspaces/ ECLIPSEWorkspaces/csq/csqv2/app/webroot/ 127.0.0.1 - - [23/Oct/2007:20:37:43 --0400] [localhost/sid#26c6d8] [rid#12beed0/initial] (1) [perdir C:/dev/workspaces/ECLIPSEWorkspaces/ csq/csqv2/] internal redirect with C:/dev/workspaces/ECLIPSEWorkspaces/ csq/csqv2/app/webroot/ [INTERNAL REDIRECT] I really found this bug annoying ... especially when you think things are gonna be simpler switching to CakePHP. I am aware that this bug have been talked about in other posts, but no good solution have been provided, can someone from the dev team answer it once and for all? Thanks in advance for your time. Regards, JS. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Help with Navigation
Does anybody have any good ways/examples to handle standard site navigation? Primary, secondary, and tertiary levels? Thanks, James --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
PHP5 and Cake question
We are trying to upgrade our server to PHP 5 and our cake app failed with the following: Parse error: syntax error, unexpected T_CATCH, expecting T_STRING in / home/jaxkayak/public_html/ams/app/models/catch.php on line 2 Here is the file: ?php class Catch extends AppModel { What makes PHP5 unhappy here, is it the class name of Catch? --~--~-~--~~~---~--~~ 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: PHP5 and Cake question
I would imagine this is because catch is a reserved word in PHP 5, as it related to catching Exceptions. You'll need to rename that class my friend! Although I think its veering off topic, i.e has nowt to do with baking! On Oct 23, 10:44 pm, MikeK [EMAIL PROTECTED] wrote: We are trying to upgrade our server to PHP 5 and our cake app failed with the following: Parse error: syntax error, unexpected T_CATCH, expecting T_STRING in / home/jaxkayak/public_html/ams/app/models/catch.php on line 2 Here is the file: ?php class Catch extends AppModel { What makes PHP5 unhappy here, is it the class name of Catch? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Console and Configure::read()
Hello bakers - I've been getting my apps moved over to the new 1.2.0.5875 pre-beta. All seems to be well: great work cake dev team! However, in Shell class, the Configure::read() does not seems to be functioning properly as it returns 1 no matter what the value is set to in core.php. It seems to read all other values correctly. Bug, or am I missing something? class UtilShell extends Shell { function test() { $this-out('Debug: '.Configure::read('debug')); } } 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: 400 Bad Request on Windows
I don't know if this will help or not. I'm working under the (possibly false) assumption that you are using an alias to make things work with your eclipse workspace (I tried that). I use eclipse and xampp (apache, etc) on windows xp sp2. I've had issues using an alias ( it was awhile ago, so I don't remember exactly what the problem was). Here's how I got things working. I know this doesn't fix your problem, but I'm pragmatic and just like to get things working. 1. I installed xampp into c:\web\xampp. 2. I made a folder called projects to put all my cake apps in and set my document root to c:\web\projects. 3. I set my eclipse workspace to c:\web\projects. Everything works. I hope that helps a little. hydra12 On Oct 23, 8:06 pm, JS Bournival [EMAIL PROTECTED] wrote: I am unable to get Cake to work locally. I always get a HTTP 400 when I hit the URL: http://localhost/csqv2(/) with or without trailing slash I'm using: WinXP Apache 2.2 PHP 5.2.3 I have a directory in my httpd.conf Alias /csqv2 C:/dev/workspaces/ECLIPSEWorkspaces/csq/csqv2/ Directory C:/dev/workspaces/ECLIPSEWorkspaces/csq/csqv2 Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all /Directory Also, I enabled logging for the mod_rewrite module, here is the output it gave me: 127.0.0.1 - - [23/Oct/2007:20:37:43 --0400] [localhost/sid#26c6d8] [rid#12beed0/initial] (3) [perdir C:/dev/workspaces/ECLIPSEWorkspaces/ csq/csqv2/] strip per-dir prefix: C:/dev/workspaces/ECLIPSEWorkspaces/ csq/csqv2/ - 127.0.0.1 - - [23/Oct/2007:20:37:43 --0400] [localhost/sid#26c6d8] [rid#12beed0/initial] (3) [perdir C:/dev/workspaces/ECLIPSEWorkspaces/ csq/csqv2/] applying pattern '^$' to uri '' 127.0.0.1 - - [23/Oct/2007:20:37:43 --0400] [localhost/sid#26c6d8] [rid#12beed0/initial] (2) [perdir C:/dev/workspaces/ECLIPSEWorkspaces/ csq/csqv2/] rewrite '' - 'app/webroot/' 127.0.0.1 - - [23/Oct/2007:20:37:43 --0400] [localhost/sid#26c6d8] [rid#12beed0/initial] (3) [perdir C:/dev/workspaces/ECLIPSEWorkspaces/ csq/csqv2/] add per-dir prefix: app/webroot/ - C:/dev/workspaces/ ECLIPSEWorkspaces/csq/csqv2/app/webroot/ 127.0.0.1 - - [23/Oct/2007:20:37:43 --0400] [localhost/sid#26c6d8] [rid#12beed0/initial] (1) [perdir C:/dev/workspaces/ECLIPSEWorkspaces/ csq/csqv2/] internal redirect with C:/dev/workspaces/ECLIPSEWorkspaces/ csq/csqv2/app/webroot/ [INTERNAL REDIRECT] I really found this bug annoying ... especially when you think things are gonna be simpler switching to CakePHP. I am aware that this bug have been talked about in other posts, but no good solution have been provided, can someone from the dev team answer it once and for all? Thanks in advance for your time. Regards, JS. --~--~-~--~~~---~--~~ 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: PHP5 and Cake question
Thanks - Ouch that hurts - Catch is a monster in my app which pertinas to fishing! On Oct 23, 10:04 pm, the_woodsman [EMAIL PROTECTED] wrote: I would imagine this is because catch is a reserved word in PHP 5, as it related to catching Exceptions. You'll need to rename that class my friend! Although I think its veering off topic, i.e has nowt to do with baking! On Oct 23, 10:44 pm, MikeK [EMAIL PROTECTED] wrote: We are trying to upgrade our server to PHP 5 and our cake app failed with the following: Parse error: syntax error, unexpected T_CATCH, expecting T_STRING in / home/jaxkayak/public_html/ams/app/models/catch.php on line 2 Here is the file: ?php class Catch extends AppModel { What makes PHP5 unhappy here, is it the class name of Catch?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Possible noobie error-multiple records created
Hello! I'm a long time coder (27 years) trying to get a handle on Cake. I wrote the following very simple code to update a record. When executed, it does update the record but also creates two new records. I've tried dozens of variations and still get the same results (using the pre-beta release of cake). Please tell me what I am doing wrong. $this-Member-id = $id; $this-data=$this-Member-read(); $this-data['Member']['bucks']=$this-data['Member']['bucks'] + 1; $this-data['Member']['last']=date( 'Y-m-d H:i:s',time() ); $this-Member-save($this-data['Member']); 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: $ajax-submit() not writing script tag inside ajax called view
Oh and also, using $ajax-form() will work fine in this case, but I don't want to use it because it uses a deprecated $html method and I want to be able to submit to different locations depending on the button clicked. On Oct 23, 1:42 pm, corie [EMAIL PROTECTED] wrote: I'm having a strange issue with $ajax-submit() not writing the script tag after the input, but only inside of an ajax called view. Here is the edit view (called with ajax into another view): h2Edit Category/h2 form method=post action=?php echo $html-url('/categories/edit') ? ?php echo $html-hidden('Category/id')? p label for=CategoryNameName:/labelbr / ?php echo $html-input('Category/name', array('style' = 'width: 400px;'))? ?php echo $html-tagErrorMsg('Category/name', 'Name is required.') ? /p p label for=CategoryDescriptionDescription:/labelbr / ?php echo $html-textarea('Category/description', array('rows'='5', 'style' = 'width:400px;')) ? /p p label for=CategoryParentidParent Category:/label ?php echo $html-selectTag('Category/parentid', $cat_select, $data['Category']['parentid'], null, null, false, false)? /p p ?php echo $ajax-submit('Save', array('update' = '/categories/ edit')); ? /p /form I've traced through all the functions that $ajax-submit() uses and echoed out the results all the way down to $javascript-codeBlock(). codeBlock() is the function which encloses the $script inside script tags. I echoed out the $script and it looks okay: Event.observe('button18502', 'click', function(event) { new Ajax.Updater('categories','/cake/categories/edit', {asynchronous:true, evalScripts:true, requestHeaders:['X-Update', 'categories']}) }, false); But when it tries to return sprintf($this-tags['javascriptblock'], $script), nothing is returned. Again, this all works inside a view NOT called by ajax. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Helper for pretty CURD list html tables
Hey list, I wonder if there's any helper (and set of css and images) to create pretty CRUD list tables in a fast and easy way. Also, something like ActiveScaffold for Rails would be nice (maybe a generator?) Thanks in advance! Marcelo. --~--~-~--~~~---~--~~ 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: Helper for pretty CURD list html tables
On 10/23/07, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote: Hey list, I wonder if there's any helper (and set of css and images) to create pretty CRUD list tables in a fast and easy way. Also, something like ActiveScaffold for Rails would be nice (maybe a generator?) Thanks in advance! Marcelo. It's called 'bake'. It comes with CakePHP and has been discussed many times on the mailing list. Feel free to search it via Google Groups and it's true power will be revealed. -- Chris Hartjes My motto for 2007: Just build it, damnit! @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: New CakePHP Releases
Yes, I realized that :) I copied that line into my routes file and went to project/posts/1 instead of project/posts/view/1 and it says post not found, so I assume there is more than just sticking that line in the routes file. Also is there something to pass the method in the views? For instance if I wanted to create an html link to delete how could I pass the correct resource type for that link? Thanks again for all the great work, I love this framework! On Oct 23, 8:02 pm, nate [EMAIL PROTECTED] wrote: As with most Router methods, this one is called in config/routes.php. On Oct 23, 8:21 am, dizz [EMAIL PROTECTED] wrote: How is Router::mapResources('Posts'); used in the Controller and in the views? Larry E. Masters aka PhpNut wrote: We have some new releases available for download. Version 1.1.18.5850 [1] is a bug fix update to the current stable release. Version 1.2.0.5875 pre-beta [2] is the pre beta release of the current development version. We decided to have pre beta since a lot of new features have been added since the last alpha release. There are still some new features to implement, so we are holding the beta release until all the enhancement tickets are closed. This release took a little bit longer than expected, but we say it was worth the wait. As usual, this release includes hundreds of minor fixes, enhancements, and speed improvements. This release also includes several major feature additions, which we've been working hard on to implement so CakePHP remains the best framework for web application development in PHP. A number of important features were added to improve support for implementing web services, including simplified REST routing, i.e.: Router::mapResources('posts'); This will map each HTTP request to it's corresponding controller method (index, view, add, edit or delete). For example, a PUT request to /posts/1 maps to the edit() method of PostsController. In addition, the Router now supports a whole range of HTTP header detection options. Controlling access to your web services is easier than ever, too. The Security component now supports HTTP basic and digest authentication, which is easily configurable in your controller's beforeFilter() method. The Auth component has also undergone extensive refactoring, making it possible for you to plug in your own custom login authentication method or access control system. In the first of several major changes to the Model, findCount() and findAll() are being replaced by the new find() syntax. This new syntax allows you to specify parameters as an array, like the following: Post-find('count', array('conditions' = array('Post.comments_count' = ' 20')); Post-find('first', array('conditions' = array('Post.comments_count' = ' 20'), 'order' = 'Post.date ASC')); Post-find('all', array('limit' = 10, 'order' = 'Post.date ASC')); Pagination flexibility has also been improved with the addition of Model::paginate(), and Model::paginateCount(), which you can define in your models to handle custom pagination. Each method takes the same parameters as findAll() and findCount(), respectively. Also in the database department, schema generation has been implemented for several databases. Schema generation allows you to create and edit your database schemas with your favorite tool, and Cake's schema tools will manage the changes for you. In an ongoing effort to improve the flexibility of Cake's (minimalistic) configuration, most of the constants in core.php have been migrated to settings in the Configure class. Check out the latest version of core.phpand update your app's configuration accordingly. To help you identify the settings that should be changed, friendly warning messages have been added to point you in the right direction. In addition to code, the docs team has been hard at work over the past few months improving the documentation, and along with this release, we're now ready to unveil the pre-beta version of the CakePHP 1.2 manual, at http://tempdocs.cakephp.org/. There are still many things missing, but if you find any errors, please submit documentation tickets. And last but certainly not least, significant work has done to lay the foundation for full, PHP-native Unicode support in CakePHP. This means we do not have to wait for PHP6 to make it possible to fully internationalize your PHP application on any platform, independent of installed extensions. With all these new features, we hope you agree that CakePHP 1.2 pre-beta was worth the wait. This will be the last release before the 1.2 API is fully stabilized, and we can't wait for you to try it. [1] Download 1.1.18.5850: http://cakeforge.org/frs/?group_id=23release_id=343 1.1.x.x change
[suggest]Documentation in lightweight markup
The CakePHP 1.2 is in good shape and 1.2 docs has gone online. and here is my 2 cents. In recent exploration of making a good user documentation for my own project, I have found documentation is lightweight markup, let's say Markdown is extremely useful. User documentation is a expensive, resource consuming task. It takes not only the writing skill but also deep knowledge of the software library. Docs authoring and compiling of current CakePHP 1.2 documentation data is stored in XML. I just started using Markdown as the documentation mark up, and all stored in source control. It makes life easier for both author, reader and up to date of the docs. For example: All user docs exist in source distribution of CakePHP File structure /cakephp /app /cake /docs /index.php /index.html /controller.txt /model.txt /view.txt /authentication.txt a sample model.txt ` Database Relationship Model === It is blah blah blah.. What is a model? - A model is part of MVC architecture. etc. section 2 - ... ``` As you can see, using lightweight markup work really well in a development environment. It makes developers/user life easier since it is available with the library in text format , so its easy to * read * modify and submit a diff * encourage community contribution and speed up documentation, its far easier to write something and send a diff to CakePHP trac. * possibly compile their own version of documentation * parse documentation into multiple formats, let's say a chm integrate into a IDE * With a plugin for Trac, all documentation can be displayed inside trac wiki. * Using a mark up open specification which lots of tools and library around it in multiple platform and languages. So far its working really well for many frameworks and software library. django, symfony, and mootools for example django uses reStructredText http://code.djangoproject.com/svn/django/trunk/docs/ Most interestingly, mootools even throw in a javascript Markdown parser in the docs folder, what you get is a always up to date version of documentation can be view in a browser with no compiling and always up to date. http://svn.mootools.net/trunk/Docs/ To see the mootools documentation in action just checkout to svn and double click, and that is cool --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
XML and XML-RPC
Hi there, i read that it is possible to handle XML Requests (or XML-RPC?) How can I request XML Data from a webservice? I tried something like this in my controller: function index() { uses('Xml'); $xmldata = new XML('http://xmlserver/xml/request1'); } This is the way described in the thinkingphp Blog... The Result: XML file http://xmlserver/xml/request1 is empty or could not be read (possible permissions error). 0 0 But how to send my credentials? I got already a username and password from the webservice admin. Regards, Alexander --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---