Re: htaccess e distinct
To com o mesmo problema, to tentando instalar um suporte online no site e não consigo acessar a pasta do sistema. Se alguém puder dar um help. Abraços On 5 Set, 10:53, Vinicius Cruz [EMAIL PROTECTED] wrote: Galera, estou precisando de duas ajudas: 1) Access Instalei o servidor local e o cake. O lance é que o .htaccess tem atrapalhado o acesso a outras aplicações Assim: /raiz /app /cake /phpmyadmin .htaccess Quando tento acessar o phpmyadmin, ele nao acessar, por causa da regra do .htaccess. IfModule mod_rewrite.c RewriteEngine On RewriteRuleapp/$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] /IfModule Tentei adicionar a regra RewriteRulephpmyadmin/$ phpmyadmin/[L] Mas nao deu muito certo.. 2) Distinct O segundo problema é com respeito a busca do banco as datas, com disticnt. Isso pra exibir em um select... Grato Vinicius --~--~-~--~~~---~--~~ Recebeu esta mensagem porque está inscrito em Grupo Cake PHP Português do Grupos Google. Para enviar mensagens para este grupo, envie um email para cake-php-pt@googlegroups.com Para anular a inscrição neste grupo, envie um email para [EMAIL PROTECTED] Para mais opções, visite este grupo em http://groups.google.com/group/cake-php-pt?hl=pt-PT -~--~~~~--~~--~--~---
DBDesigner 4 Scaffold Tools for CakePHP - 1.0.0 FINAL
Hello All, I just released the final version of DBDesigner 4 Scaffold Tools for CakePHP 1.0.0. There was just a tiny bug found regarding the -app parameter. I hope you guys enjoy it as much as I did. Currently I am working on the tutorial and perhaps a screencast, afterwards I will look for CakePHP 1.2 support. You are welcome to download the final version at http://www.cirello.org/dbdesigner2cake/download.html or http://cakeforge.org/frs/?group_id=162 . Any doubts please submit to http://groups.google.com/group/dbdesigner2cake. Bye Dérico Filho --~--~-~--~~~---~--~~ 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: DBDesigner 4 Scaffold Tools for CakePHP - 1.0.0 FINAL
Will this work on MySQL workkbench too? I am no vista no on my laptop and DbDesigner does not work anymore on it, also there is no support for it anymore :( On Sep 8, 8:26 am, Dérico Filho [EMAIL PROTECTED] wrote: Hello All, I just released the final version of DBDesigner 4 Scaffold Tools for CakePHP 1.0.0. There was just a tiny bug found regarding the -app parameter. I hope you guys enjoy it as much as I did. Currently I am working on the tutorial and perhaps a screencast, afterwards I will look for CakePHP 1.2 support. You are welcome to download the final version athttp://www.cirello.org/dbdesigner2cake/download.html orhttp://cakeforge.org/frs/?group_id=162. Any doubts please submit tohttp://groups.google.com/group/dbdesigner2cake. Bye Dérico Filho --~--~-~--~~~---~--~~ 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: DBDesigner 4 Scaffold Tools for CakePHP - 1.0.0 FINAL
Mech7, This might be useful. http://sourceforge.net/projects/dbdesigner-fork/ -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On 9/8/07, Mech7 [EMAIL PROTECTED] wrote: Will this work on MySQL workkbench too? I am no vista no on my laptop and DbDesigner does not work anymore on it, also there is no support for it anymore :( On Sep 8, 8:26 am, Dérico Filho [EMAIL PROTECTED] wrote: Hello All, I just released the final version of DBDesigner 4 Scaffold Tools for CakePHP 1.0.0. There was just a tiny bug found regarding the -app parameter. I hope you guys enjoy it as much as I did. Currently I am working on the tutorial and perhaps a screencast, afterwards I will look for CakePHP 1.2 support. You are welcome to download the final version athttp://www.cirello.org/dbdesigner2cake/download.html orhttp://cakeforge.org/frs/?group_id=162. Any doubts please submit tohttp://groups.google.com/group/dbdesigner2cake. Bye Dérico Filho --~--~-~--~~~---~--~~ 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: DBDesigner 4 Scaffold Tools for CakePHP - 1.0.0 FINAL
Thanks but it does not seem to work either, i just can't connect with Vista and DbDesigner, MySQL Workbench works only it's in alpha state, so i dont know how stable it is. On Sep 8, 9:36 am, Larry E. Masters aka PhpNut [EMAIL PROTECTED] wrote: Mech7, This might be useful. http://sourceforge.net/projects/dbdesigner-fork/ -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On 9/8/07, Mech7 [EMAIL PROTECTED] wrote: Will this work on MySQL workkbench too? I am no vista no on my laptop and DbDesigner does not work anymore on it, also there is no support for it anymore :( On Sep 8, 8:26 am, Dérico Filho [EMAIL PROTECTED] wrote: Hello All, I just released the final version of DBDesigner 4 Scaffold Tools for CakePHP 1.0.0. There was just a tiny bug found regarding the -app parameter. I hope you guys enjoy it as much as I did. Currently I am working on the tutorial and perhaps a screencast, afterwards I will look for CakePHP 1.2 support. You are welcome to download the final version athttp://www.cirello.org/dbdesigner2cake/download.html orhttp://cakeforge.org/frs/?group_id=162. Any doubts please submit tohttp://groups.google.com/group/dbdesigner2cake. Bye Dérico Filho --~--~-~--~~~---~--~~ 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: Render a View that's not HTML?
Did you try to create a new layout file for images? Put something like this in it (this one is for PDF, just change it for the image type you need): ?php header(Content-type: application/pdf); header(Content-Disposition: attachment; filename=document.pdf); header(Pragma: no-cache); header(Expires: 0); echo $content_for_layout; ? In your controller, you can render the alternative layout using the following statement: $this-render(null, 'pdf', VIEWS . DS . 'controllername' . DS . 'viewname.thtml'); Jan --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
.htaccess problems
I cant get my cakephp application to work on the server. I am using the normal development server setup. -cflive - app - cake - vendors - .htaccess in the .htacess on the base folder (cflive), I have IfModule mod_rewrite.c RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] /IfModule then on the cflive/app/webroot/, I have IfModule mod_rewrite.c RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] /IfModule When i go to http://myserver.com/cflive/controller/action I get a HTTP 404 Not Found on IE. The server runs PHP 5 and its a godaddy hosting if that helps.. TIA --~--~-~--~~~---~--~~ 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: .htaccess problems
Should it be : http://myserver.com/cflive/APP/controller/action ? On Sep 8, 11:37 am, morecakepls [EMAIL PROTECTED] wrote: I cant get my cakephp application to work on the server. I am using the normal development server setup. -cflive - app - cake - vendors - .htaccess in the .htacess on the base folder (cflive), I have IfModule mod_rewrite.c RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] /IfModule then on the cflive/app/webroot/, I have IfModule mod_rewrite.c RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] /IfModule When i go tohttp://myserver.com/cflive/controller/action I get a HTTP 404 Not Found on IE. The server runs PHP 5 and its a godaddy hosting if that helps.. TIA --~--~-~--~~~---~--~~ 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: ACL model Aro misssing???????
On Sep 8, 4:22 am, SIXS [EMAIL PROTECTED] wrote: In the Create website fast with Cakephp I am trying to follow the ACL code and I get this error Missing databases table model ARO(expected aros) I created in myswl a database initdb Why ;) The error message is because the table aros doesn't exist in the the databse that you have configured for your app as a whole - create the acl tables in the same db as your posts (or whatever) tables. hth, AD --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
SQLite 3 support
Hi bakers. I'm starting to build a small database-driven website and was planning to use SQLite for the backend. For what i can see in the code and searching through this group only SQLite 2 support is available in Cake. I've searched Trac for SQLite 3 support related tickets and found ticket #3003 (https://trac.cakephp.org/ticket/3003) but no activity related to this ticket since it was created a month ago. What i (and i'm probably not alone here) would like to know is if SQLite 3 support is being considered and what's it's priority status in the feature pipeline? SQLite is a great solution for small to medium sized websites and one Cake should support! Best regards. --~--~-~--~~~---~--~~ 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: observeField updating multiple divs
Is it the same field that triggers the update of the 2 div's ? If so try to update in 1 call : 'update' = array('div1', 'div2'); On Sep 7, 10:11 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello guys, I'm trying to update 2 divs via ajax-observeField, I got this code: ?php echo $ajax-observeField('ModelField', array('url'='/controller/ action1', 'frecuency' = 1, 'update' = 'div1')) ? ?php echo $ajax-observeField('ModelField', array('url'='/controller/ action2', 'frecuency' = 1, 'update' = 'div2')) ? ?php echo $ajax-div('div1'); ? ?php echo $ajax-divEnd('div1'); ? ?php echo $ajax-div('div2'); ? ?php echo $ajax-divEnd('div2'); ? It works but only for Firefox, in IE it only updates one div (div1) and the other (div2) keeps the same value originally selected. 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: .htaccess problems
I found the solution to this problem, it has something to do with godaddy subdomains. I put this on .htaccess in cflive directory IfModule mod_rewrite.c RewriteEngine on RewriteBase / RewriteRule^$ cflive/app/webroot/[L] RewriteRule(.*) cflive/app/webroot/$1 [L] /IfModule and this on cflive/app/webroot/ IfModule mod_rewrite.c RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ cflive/app/webroot/index.php?url=$1 [QSA,L] /IfModule All the best! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Simple Question - Return only entries for which associated data exists
I am using hasMany to associate posts with members. How can I craft my findAll query so that it returns only members for which posts exist (ie. members who have made one or more posts)? It seems inefficient to return every member and then throw out a large amount of the data. 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: DBDesigner 4 Scaffold Tools for CakePHP - 1.0.0 FINAL
Hi Mech7, I use DBDesigner Fork on Vista Home Basic just fine... I suggest you change to it. I plan some support yes for MySQL Workbench, but their WBM are very messy. Dérico On Sep 8, 4:34 am, Mech7 [EMAIL PROTECTED] wrote: Will this work on MySQL workkbench too? I am no vista no on my laptop and DbDesigner does not work anymore on it, also there is no support for it anymore :( On Sep 8, 8:26 am, Dérico Filho [EMAIL PROTECTED] wrote: Hello All, I just released the final version of DBDesigner 4 Scaffold Tools for CakePHP 1.0.0. There was just a tiny bug found regarding the -app parameter. I hope you guys enjoy it as much as I did. Currently I am working on the tutorial and perhaps a screencast, afterwards I will look for CakePHP 1.2 support. You are welcome to download the final version athttp://www.cirello.org/dbdesigner2cake/download.html orhttp://cakeforge.org/frs/?group_id=162. Any doubts please submit tohttp://groups.google.com/group/dbdesigner2cake. Bye Dérico Filho- 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 -~--~~~~--~~--~--~---
No data sent with $ajax-form
Hi I'm attempting to make an order form using ajax. I've used the ajax helper. Now, the request is being made and the right action called in the right controller... but no form data is sent. I can use pr( $this ) in my action (addToBasket) to see that the right action is requested, just with no POST data ($this-data is empty). Here's my form code: table ?= $ajax-form( '/orders/addToBasket', 'post', array( 'url' = '/ orders/addToBasket', 'update' = 'basket' ) ); ? input type=hidden id=image_id name=image_id / ? foreach( $print_sizes as $k = $v ) { echo 'trtd' . $v . ': /tdtdinput name=photo[' . $k . '] value= class=narrow //td/tr'; } ? trtdnbsp;/tdtd?= $html-submit( 'Add', array( 'class' = 'button' ) ); ?/td/tr /form /table p id=basketYour basket contains 0 items/p And the addToBasket method (not much more than a placeholder as yet): function addToBasket() { $this-layout = 'ajax'; pr( $this ); } Can anyone see where I'm going wrong? Thanks voidstate --~--~-~--~~~---~--~~ 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: No data sent with $ajax-form
Try pr($this-params['form']); in controller method. On Sep 8, 8:01 pm, Voidstate [EMAIL PROTECTED] wrote: Hi I'm attempting to make an order form using ajax. I've used the ajax helper. Now, the request is being made and the right action called in the right controller... but no form data is sent. I can use pr( $this ) in my action (addToBasket) to see that the right action is requested, just with no POST data ($this-data is empty). Here's my form code: table ?= $ajax-form( '/orders/addToBasket', 'post', array( 'url' = '/ orders/addToBasket', 'update' = 'basket' ) ); ? input type=hidden id=image_id name=image_id / ? foreach( $print_sizes as $k = $v ) { echo 'trtd' . $v . ': /tdtdinput name=photo[' . $k . '] value= class=narrow //td/tr';} ? trtdnbsp;/tdtd?= $html-submit( 'Add', array( 'class' = 'button' ) ); ?/td/tr /form /table p id=basketYour basket contains 0 items/p And the addToBasket method (not much more than a placeholder as yet): function addToBasket() { $this-layout = 'ajax'; pr( $this ); } Can anyone see where I'm going wrong? Thanks voidstate --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
User persistence among multiple applications
Anyone know a way to allow applications with separate app directories to share users and sessions? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
ConnectionManager::getDataSource - Non-existent data source
Hello everybody. We are moving a site made with CakePHP from one development server to a production server. In the first one, everythink works fine but when trying to login in the second one, the following error appears: Fatal error: ConnectionManager::getDataSource - Non-existent data source in /var/www/html/platsort_adm/cake/cake/libs/model/ connection_manager.php on line 115. The configuration datafile is ok (we tried connecting) and all the permissions are set also. Any ideas? Regards from Paraguay. -- Nicolas.- --~--~-~--~~~---~--~~ 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: Tutorial o HowTo about Table association (hasMany, hasBelongsTo, hasOne, hasAndBelongsToMany)
There's not too much I've found, I pieced together what I know form the Model chapter and then baking the models and following the suggested relationships. Essentially, you create a table (say Posts, another Tags and a 3rd table, posts_tags (with fields for post_id and tag_id) and then you want to bake it so that posts has and belongs to many tags (and tags the belong to many posts - the has and belongs to many is the important part, as is keeping things in alphabetical order - e.g. posts_tags shouldn't be called tags_posts. Hope this helps a bit, Zoltan www.yyztech.ca - yeah, it's cake powered :) On Sep 8, 9:33 am, Pisinho [EMAIL PROTECTED] wrote: HI, exist a good tutorial o documentation on table e relationship ? Thanks S.S. --~--~-~--~~~---~--~~ 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: User persistence among multiple applications
I got a couple ideas from #cakephp: cookies (single domain) and memcache tokens (multiple domains). On Sep 8, 2:18 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Anyone know a way to allow applications with separate app directories to share users and sessions? --~--~-~--~~~---~--~~ 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: Editor x CakePHP
There's a few that provide at least syntax highlighting - NotePad++ is a good lightweight, Opensource app. Dreamveaver provides some code- hinting, but it's not cheap. Eclipse seems to have good integration (see: http://bakery.cakephp.org/articles/view/setting-up-eclipse-to-work-with-cake) , but I fear it's too heavy for my laptop. Zoltan www.yyztech.ca - yeah, it's a Cake app :) On Sep 8, 6:57 am, Pisinho [EMAIL PROTECTED] wrote: HI, I find a good Editor for develop with PHP5 and Cake. What software are you use for Syntax Highlighting, Code Hint, Code Insight, automatic Code Completion ? Thanks. S.S. --~--~-~--~~~---~--~~ 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: Editor x CakePHP
EditPad Pro! On Sep 8, 3:38 pm, Zoltan [EMAIL PROTECTED] wrote: There's a few that provide at least syntax highlighting - NotePad++ is a good lightweight, Opensource app. Dreamveaver provides some code- hinting, but it's not cheap. Eclipse seems to have good integration (see:http://bakery.cakephp.org/articles/view/setting-up-eclipse-to-work-wi...) , but I fear it's too heavy for my laptop. Zoltanwww.yyztech.ca- yeah, it's a Cake app :) On Sep 8, 6:57 am, Pisinho [EMAIL PROTECTED] wrote: HI, I find a good Editor for develop with PHP5 and Cake. What software are you use for Syntax Highlighting, Code Hint, Code Insight, automatic Code Completion ? Thanks. S.S. --~--~-~--~~~---~--~~ 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: Useing bake script to create models
if you have a model called details with fields id and product_id, it should ask if product is somehow related - can print out the tables? Zoltan www.yyztech.ca On Sep 6, 2:09 pm, su6z3r0 [EMAIL PROTECTED] wrote: Hi guys, I am trying to use bake (v. 1.2 cake) to create models. The database setup is very easy for testing purposes: products: id details: id product_id Now what I expected when useing bake is that it detects the association Product hasMany Detail because of the nameing convention. But when I try to bake the product model, bake doesn't detect any associations. Is there anything I am doing wrong? TIA, Alex --~--~-~--~~~---~--~~ 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: No data sent with $ajax-form
Making a $ajax-form wiht an html-submit is weird .. Just a tip ..for ajax call the form tag does not matter much ( you can do even do a form), everything resides in the submit so, change your $html-submit in an $ajax one .. ( $akax-submit('Add', array('url' = your url, 'update' = 'your div')) ) On Sep 8, 8:22 pm, majna [EMAIL PROTECTED] wrote: Try pr($this-params['form']); in controller method. On Sep 8, 8:01 pm, Voidstate [EMAIL PROTECTED] wrote: Hi I'm attempting to make an order form using ajax. I've used the ajax helper. Now, the request is being made and the right action called in the right controller... but no form data is sent. I can use pr( $this ) in my action (addToBasket) to see that the right action is requested, just with no POST data ($this-data is empty). Here's my form code: table ?= $ajax-form( '/orders/addToBasket', 'post', array( 'url' = '/ orders/addToBasket', 'update' = 'basket' ) ); ? input type=hidden id=image_id name=image_id / ? foreach( $print_sizes as $k = $v ) { echo 'trtd' . $v . ': /tdtdinput name=photo[' . $k . '] value= class=narrow //td/tr';} ? trtdnbsp;/tdtd?= $html-submit( 'Add', array( 'class' = 'button' ) ); ?/td/tr /form /table p id=basketYour basket contains 0 items/p And the addToBasket method (not much more than a placeholder as yet): function addToBasket() { $this-layout = 'ajax'; pr( $this ); } Can anyone see where I'm going wrong? Thanks voidstate --~--~-~--~~~---~--~~ 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: Editor x CakePHP
On 9/8/07, Zoltan [EMAIL PROTECTED] wrote: There's a few that provide at least syntax highlighting - NotePad++ is a good lightweight, Opensource app. Dreamveaver provides some code- hinting, but it's not cheap. Eclipse seems to have good integration (see: http://bakery.cakephp.org/articles/view/setting-up-eclipse-to-work-with-cake) , but I fear it's too heavy for my laptop. I use Komodo on a Mac. -- Chris Hartjes Senior Developer Cake Development Corporation My motto for 2007: Just build it, damnit! @TheBallpark - http://www.littlehart.net/attheballpark @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: Editor x CakePHP
[x] Textmate -- My Blog: http://www.thinkingphp.org My Business: http://www.fg-webdesign.de Chris Hartjes wrote: On 9/8/07, Zoltan [EMAIL PROTECTED] wrote: There's a few that provide at least syntax highlighting - NotePad++ is a good lightweight, Opensource app. Dreamveaver provides some code- hinting, but it's not cheap. Eclipse seems to have good integration (see: http://bakery.cakephp.org/articles/view/setting-up-eclipse-to-work-with-cake) , but I fear it's too heavy for my laptop. I use Komodo on a Mac. --~--~-~--~~~---~--~~ 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: Error with admin route and using $form-create()
It was a bug that was fixed on the last nightly build. Thanks On 8 set, 12:16, alanclic [EMAIL PROTECTED] wrote: I setted CAKE_ADMIN as 'admin', and everywhere i use $form-create(), i get anoticefrom CAKEPHP. for example in one view i use $form-create('User', array('action' = 'login')), without theadminrouteit works just fine. the notices are: Notice(8): Undefined index: plugin [CORE\cake\libs\router.php, line 747] Undefined index: controller [CORE\cake\libs\router.php, line 747] Router::mapRouteElements() - CORE\cake\libs\router.php, line 747 Router::url() - CORE\cake\libs\router.php, line 599 Helper::url() - CORE\cake\libs\view\helper.php, line 183 FormHelper::create() - CORE\cake\libs\view\helpers\form.php, line 190 include - CORE\app\views\users\login.ctp, line 22 View::_render() - CORE\cake\libs\view\view.php, line 777 View::render() - CORE\cake\libs\view\view.php, line 337 Controller::render() - CORE\cake\libs\controller\controller.php, line 667 Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 291 Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 257 [main] - CORE\app\webroot\index.php, line 84 CONTEXT: $route = array(0 = /:admin/:controller/:action/*, 1 = /^(?:\/(?: (admin)(?:\/([a-zA-Z0-9_\-\.\;\:]+)(?:\/([a-zA-Z0-9_\-\.\;\:]+)(?:[\/ \?](.*))?)?)?))[\/]*$/, 2 = array, 3 = array) $url= array(plugin = null, id = false, controller = users, action = login) $_this = array(routes = array, __admin = null, __parseExtensions = false, __validExtensions = null, __named = array, __currentRoute = array, __headerMap = array, __resourceMap = array, __resourceMapped = array, __params = array, __paths = array, __mapped = array, _log = null) $defaults = array() $params = array(controller = users, plugin = null, action = login, id = false) $routeParams= array(0 = admin, 1 = controller, 2 = action) $pass = array() $value = false $key= id $required = array() CODE: return false; } } else { if (empty($required) $defaults['plugin'] == $url['plugin'] $defaults['controller'] == $url['controller'] $defaults['action'] == $url['action']) { return array(Router::__mapRoute($route, am($url, compact('pass'))), $url); It looks like it's looking for an action withadminrouting.. 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 -~--~~~~--~~--~--~---
can i have a form in the view.thtml page ?
Hi all, I try to build a website and i start this with cakephp and everything works fine till now ... basically i do a hotel review websites the problem is here, when i land hotel page i see some hotel details past reviews and i have a form at the end of the page add new review ... so i'm on view function in my controller can i have that form at the end of the page ? if yes how i can make it work ? i also have an add function in this controller i thought i would mention this. If anybody has any idea on how i can do this please let me know. Thanks. Claudiu --~--~-~--~~~---~--~~ 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: Editor x CakePHP
if it can do 2 bytes.. On Sep 8, 7:15 pm, Felix Geisendörfer [EMAIL PROTECTED] wrote: [x] Textmate -- My Blog:http://www.thinkingphp.org My Business:http://www.fg-webdesign.de Chris Hartjes wrote: On 9/8/07, Zoltan [EMAIL PROTECTED] wrote: There's a few that provide at least syntax highlighting - NotePad++ is a good lightweight, Opensource app. Dreamveaver provides some code- hinting, but it's not cheap. Eclipse seems to have good integration (see:http://bakery.cakephp.org/articles/view/setting-up-eclipse-to-work-wi...) , but I fear it's too heavy for my laptop. I use Komodo on a Mac. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Updating multiple id's with the AJAX helper
I am trying to update two separate ID's with the same AJAX output. To do so, I am passing an array to the 'update' option. So, instead of 'update'='id', I am passing 'update'=array('id1', 'id2'). However, this does not seem to be working. How can I update multiple div's from one ajax operation? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
To use a open source Auth system or not
I've starting my first cake site, yum cake! One of the first decisions I've wondering I've trying to make is to do my own auth system or use one of the many being actively developed. I was hoping for some feedback on what others have found what has worked. For my decision I've been contemplating a few things: Pros of a Open Soure Auth: - maintained by the community (bug fixes) - many features I wouldn't usually spend time on but are avaible - less hours to develop and more time for other things Cons: - so many to choose from - most are in ealry development with many bugs - not specific to my project(s) - if I customize, it may not work with future releases - have to spend time learning others code I've been sort of held up on this for many reasons including a little procrastination. Anyways, I know there is quite a few people out there that have completed some fairly impressive apps and I wanted to know what you decided. I guess I need a little push in one direction as this is my first app built in a framework. I know everyone will have there own oppinion but I'm looking for oppinions of those that have completed apps in cake. If you could respond with a your oppinion and the app/site you did with cake that would extremely helpful to me and I'm sure many others. TIA --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Prepping for 1.2 AuthComponent
Hello Bakers - Currently all of my projects are using a slightly personalized version the great OthAuth component. However, I do plan on moving to the new AuthComponent at some point when I've got time to figure it out. Looking through the API and source it looks like the AuthComonent is storing passwords with: Security::hash(CAKE_SESSION_STRING . $password) Is there anything else I should take care of now (while my projects only have 2 or so users) in order to adequately prep for the eventual transition? 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 -~--~~~~--~~--~--~---