how to REST in new CakePHP1.2

2007-10-23 Thread a.php.programmer
in new CakePHP1.2, I find Router::mapResources('Posts'); it is good for REST. but I don't know how to take a PUT, DELETE method in form, in FormHelper and HtmlHelper, I don't find useable funcitons. how? --~--~-~--~~~---~--~~ You received this message because y

how to "viewNum = viewNum + 1" in CakePHP

2007-10-23 Thread a.php.programmer
how to "viewNum = viewNum + 1" in CakePHP I don't want to use sql but saveField('viewNum', 'viewNum + 1') is error, how?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, se

XML and XML-RPC

2007-10-23 Thread cronet
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 thinki

[suggest]Documentation in lightweight markup

2007-10-23 Thread [EMAIL PROTECTED]
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, re

Re: New CakePHP Releases

2007-10-23 Thread dizz
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 i

Re: Helper for pretty CURD list html tables

2007-10-23 Thread Chris Hartjes
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 i

Helper for pretty CURD list html tables

2007-10-23 Thread Marcelo de Moraes Serpa
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

Possible noobie error-multiple records created

2007-10-23 Thread Buzzholio
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 o

Re: $ajax->submit() not writing script tag inside ajax called view

2007-10-23 Thread corie
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 is

Re: PHP5 and Cake question

2007-10-23 Thread MikeK
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 frie

Re: 400 Bad Request on Windows

2007-10-23 Thread hydra12
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

Console and Configure::read()

2007-10-23 Thread McFadly
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 t

Re: PHP5 and Cake question

2007-10-23 Thread the_woodsman
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

PHP5 and Cake question

2007-10-23 Thread MikeK
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: http://groups.google.com/group/cake-php?hl=en -~-

Help with Navigation

2007-10-23 Thread James
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

400 Bad Request on Windows

2007-10-23 Thread JS Bournival
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/" Options

Re: Paginating inside admin in new 1.2 release

2007-10-23 Thread Joel Stein
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 u

ajax update with on/off switch image question

2007-10-23 Thread Andras Kende
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 :) VI

Paginating inside admin in new 1.2 release

2007-10-23 Thread Gonza
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 pagin

RE: saveField breaks in new 1.2 release

2007-10-23 Thread Mariano Iglesias
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 ---

Re: prpblem baking models

2007-10-23 Thread Larry E. Masters aka PhpNut
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=23&release_id=343 -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpN

Re: prpblem baking models

2007-10-23 Thread mcphisto
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 m

Adodb

2007-10-23 Thread [EMAIL PROTECTED]
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

prpblem baking models

2007-10-23 Thread mcphisto
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 "c

Re: saveField breaks in new 1.2 release

2007-10-23 Thread LW
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. On 23 Okt., 18:40, "Wayne Fay" <[EMAIL PROTECTED]> wrote: > What does "doesn't work" mean, can you be more specific? And can you > p

Re: Building a forum plug-in

2007-10-23 Thread DanielMedia
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 o

Re: CakePHP 1.2: paginate igoner recursive = 0?

2007-10-23 Thread [EMAIL PROTECTED]
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 Group

Re: New Release Assuming Installed in Webroot?

2007-10-23 Thread Gwoo
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-p

Building a forum plug-in

2007-10-23 Thread Zoltan
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

URL wrong

2007-10-23 Thread Daniel
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 Goog

Re: Looking for a great feelance CakePHP developer

2007-10-23 Thread dezpo
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 in

Re: How to configure apache ?

2007-10-23 Thread Daniel
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] Fo

$ajax->submit() not writing script tag inside ajax called view

2007-10-23 Thread corie
I'm having a strange issue with $ajax->submit() not writing the

Re: dynamic db connection | $useDbConfig

2007-10-23 Thread carSign
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 =

Navigation Ideas

2007-10-23 Thread James
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 ha

Re: CakePHP 1.2: paginate igoner recursive = 0?

2007-10-23 Thread rtconner
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 Go

Re: 1.1.17.5612 / multiple save misbehaviour !?

2007-10-23 Thread Freddy Krueger
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

Re: CakePHP 1.2: paginate igoner recursive = 0?

2007-10-23 Thread Gwoo
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@googl

Re: $File->write problems in new release?

2007-10-23 Thread Gwoo
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

$File->write problems in new release?

2007-10-23 Thread Dave J
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

Re: 1.1.17.5612 / multiple save misbehaviour !?

2007-10-23 Thread Grant Cox
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: > th

1.1.17.5612 / multiple save misbehaviour !?

2007-10-23 Thread flipcode
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,

Re: saveField breaks in new 1.2 release

2007-10-23 Thread Wayne Fay
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 sortab

Looking for a great feelance CakePHP developer

2007-10-23 Thread Matt Kosoy
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:

CakePHP project

2007-10-23 Thread dezpo
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 brains

saveField breaks in new 1.2 release

2007-10-23 Thread LW
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

Re: More HABTM : Adding another model to the filtered findAll()

2007-10-23 Thread Bob Mattax
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

ajax->editor

2007-10-23 Thread [EMAIL PROTECTED]
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: Title editor('title', 'ajax_update',array('size'=>40,'complete'=>'alert(1)')); ?>

Shell script questions

2007-10-23 Thread Charlie van de Kerkhof
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 _welc

Re: New CakePHP Releases

2007-10-23 Thread AD7six
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 ex

Re: New CakePHP Releases

2007-10-23 Thread [EMAIL PROTECTED]
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 adit

Re: New CakePHP Releases

2007-10-23 Thread [EMAIL PROTECTED]
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 adit

shopping cart

2007-10-23 Thread carSign
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

Re: New CakePHP Releases

2007-10-23 Thread varun krishnan
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 P

Re: How to configure apache ?

2007-10-23 Thread Daniel
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 Group

Sending Mail with Swift Mailer Component; Bcc will send out multiple emails?

2007-10-23 Thread AL
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('b

CakePHP 1.2: paginate igoner recursive = 0?

2007-10-23 Thread [EMAIL PROTECTED]
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... ;(

Re: New Release Assuming Installed in Webroot?

2007-10-23 Thread Kick The Donkey
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, yo

Re: New Release Assuming Installed in Webroot?

2007-10-23 Thread Grant Cox
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). Y

Re: Help please! Enumerated fields do not seem to work in admin scaffold view in CakePHP 1.2...

2007-10-23 Thread Grant Cox
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 si

New Release Assuming Installed in Webroot?

2007-10-23 Thread Kick The Donkey
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 S

Re: New CakePHP Releases

2007-10-23 Thread nate
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 downloa

Re: Security Component HTTP digest authentication

2007-10-23 Thread nate
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 w

Re: New CakePHP Releases

2007-10-23 Thread dizz
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 rel

filter/search/paginate

2007-10-23 Thread inma
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 pagi

Re: About a mysql query

2007-10-23 Thread grigri
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

Help please! Enumerated fields do not seem to work in admin scaffold view in CakePHP 1.2...

2007-10-23 Thread Olaf Greve
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

Re: New CakePHP Releases

2007-10-23 Thread Tijs Teulings
Grant Cox wrote: > Thanks Larry, and the rest of the CakePHP team - you guys rock. I > think everyone will agree that all of these features are definitely > making the wait for 1.2 worthwhile. I generally keep close to the > 1.2.x branch, but there are so many awesome features here that I am > y