Re: Commented Version of CakePHP Manual

2007-06-16 Thread Jonathan Langevin
nice addition, just a shame comments aren't available on manual.cakephp.org it seems that your version of the manual deserves it's own domain btw :-) out of curiosity, how will you keep the manual updated properly, and still maintain the comments properly? On 6/16/07, Dérico Filho <[EMAIL PROTEC

Re: populate form contents ajax

2007-06-16 Thread francky06l
One more thing, with ajax you very often need to set the parameter "update" of link, submit, remote_function etc ... This "update" whould match the div you will update into the view. Your "rendering" view would be enclosed into $ajax->div('updatedivname') / $ajax- >divEnd(...) On Jun 17, 12:35 am

Re: populate form contents ajax

2007-06-16 Thread francky06l
for the controller aspect it does not change anything posting data using ajax or not. The data posted are accessible in the same way ($this->params['data']['Controller'] .. for example). The same approach for the rendering. Now everything resides into which parts of the view you update with you aj

Re: How to automatically update a div via AJAX

2007-06-16 Thread francky06l
Mayve you can use the periodical updater. I know that does really match what you are asking but maybe you can find a way (session) to know what to update ? Also you could have a special layout for this controller / views that would contain a remote call every time it shows up .. Even the "default"

Re: Problem with saving form data... from tutorial...

2007-06-16 Thread LoinSees
Nope... still not working... PS. you forgot the $ in: if(this->Task->saveField('done', 1)) Should be: if($this->Task->saveField('done', 1)) I changed it but it still didnt work... On Jun 16, 8:01 am, aerosmith <[EMAIL PROTECTED]> wrote: > Your complete function w

Re: Apache dies when redirecting using controller->redirect()

2007-06-16 Thread Mech7
Btw i see that issue was fixed in march already.. I also have unloaded Zend Optimizer and eAccelerator, increased memory to 128 mb but it still dies on many occassions :( On 11 jun, 06:51, Eugene Bolshakov <[EMAIL PROTECTED]> wrote: > I'm not sure if this is related to the problem, but I've final

populate form contents ajax

2007-06-16 Thread varunkrish
form(array('action'=>$html->url('edit')))?> Loading..image('spinner.gif',array('alt'=>'Saving..','id'=>'editAllimg'))?> submit('Load Post', array('url' => 'editAll/','update'=>'posts','frequency'=>'2','loading'=>"Element.show('editAll');",'loaded'=>"Element.hide('editAll');"));? > I have a vi

How to automatically update a div via AJAX

2007-06-16 Thread [EMAIL PROTECTED]
Hello guys, I'm trying to update a div automatically every time a controller is loaded using AJAX helper, I already update it using $ajax->link and $ajax->submit, but it requires a click from user, so I'm wondering if there's is a way to update a div once a controller action is called via url, fo

Re: Wrong fieldset type for MySQL SET datatype. Workaround?

2007-06-16 Thread Nick
After checking the dbo files, "set" is indeed missing for the mysql and mysqli drivers so a simple patch is to add if (strpos($col, 'set') !== false) { return "set($vals)"; } or similar after the "enum" case and then all works well. Not sur

Wrong fieldset type for MySQL SET datatype. Workaround?

2007-06-16 Thread Nick
Hi all, I've been using the Form helper within a form creator helper that I've put together, and using the Form helper's fieldset data that contains the field type details. This has worked great, but I've just found that whilst the enum types are reported correctly, the SET type just shows as typ

Error in de bakery with commenting..

2007-06-16 Thread Mech7
When i press login i get this: Not found Het gevraagde adres ajax/ is niet gevonden op deze server. --~--~-~--~~~---~--~~ 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@g

Re: Problem with saving form data... from tutorial...

2007-06-16 Thread aerosmith
Your complete function will look like this. Task->id = $id; if(this->Task->saveField('done', 1)) { $this->set('data', $this->Task->findAll()); $this->render('done', 'ajax'); } } ?> Regards R

Commented Version of CakePHP Manual

2007-06-16 Thread Dérico Filho
Hello Everyone, I've made available at my site a free-to-comment version of CakePHP Manual... Please, feel free to access it. http://www.cirello.org/cakephp-manual/ Uldérico --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Re: Problem with saving form data... from tutorial...

2007-06-16 Thread aerosmith
I think your code should look something like this. function done($id = null) { $this->Task->id = $id; $this->Task->saveField('done', 1); } Please reply if you tried it and didn't work. Regards Raffi Hovhannesian On Jun 16, 12:52 am, LoinS

Re: Customizing HTML Tags

2007-06-16 Thread biesbjerg
You can either extend the core HtmlHelper and overload the tags property, or you could copy the html helper from cake core into you app folder and edit the tags in there. On Jun 15, 9:42 pm, rtconner <[EMAIL PROTECTED]> wrote: > Maybe some of you old school cakers might know this one. I was just

Edit changes to add function when validation errors are found

2007-06-16 Thread oleonav
Strange things happen when using multiple validations rules in cake 1.2. in combination with an edit action When requesting a edit action for example admin/pages/edit/3 - in the view admin_edit.ctp the helper $form->create('Page'); does output the required form tag Then the magic happens. If va

Re: html->submit() does not exists?

2007-06-16 Thread Mech7
Ah thanks that works.. but then why can you decide the location for textareae error messages but not for input boxes? And also why does it genereate extra html instead of only the message? Would it not be more customizable if you can write your own html in the view? On 16 jun, 00:21, gwoo <[EMAIL

Re: Webservices and parseExtensions: migrating from 1.1 to 1.2

2007-06-16 Thread R. Rajesh Jeba Anbiah
On Jun 15, 9:02 pm, Conners <[EMAIL PROTECTED]> wrote: > I don't like extensions. The main reason that I'm happy with a LAMP > setup with mod_rewrite and cakephp is that I have eliminated file > extensions and improved the organisation of the sites I produce with > my cake projects. You may fe

Re: Remote developer contract using cakephp for our site

2007-06-16 Thread MJ Ray
Perry <[EMAIL PROTECTED]> wrote: > Are there any things to be concerned about in making sure we get a > deliverable for our web site that can be extended by others? [...] Developer documentation IMO: README, Changelog, INSTALL as a minimum. If possible, a backup of their revision control reposit