Re: ODBC listSources() giving Out of Memory

2011-03-25 Thread Ryan Schmidt
On Mar 24, 2011, at 16:31, mhamann wrote: > I'm trying to access a DB2 database via ODBC and I'm getting the > following error when Cake attempts to list all of the tables: > "Fatal error: Allowed memory size of 33554432 bytes exhausted (tried > to allocate 551995385 bytes)" Your PHP is configur

Re: $form->radio Broken?

2011-03-25 Thread DragonFlyEye
Well, there you go. It was my jQuery function that was supposed to clear my form. Was removing the values on the radios instead of removing 'checked' attributes. Thanks again, Cricket! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakeP

Re: Need a 'video capturing through webcam' tool or code

2011-03-25 Thread Stephen
On 25 March 2011 14:03, Tran Cao Thai wrote: > you can do that with jquery as well > Impressive ! -- Kind Regards Stephen http://www.ninjacodermonkey.co.uk -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http:/

Re: Need a 'video capturing through webcam' tool or code

2011-03-25 Thread Tran Cao Thai
you can do that with jquery as well On Fri, Mar 25, 2011 at 7:00 PM, Stephen wrote: > Flash may be your answer: > > http://board.flashkit.com/board/showthread.php?t=737944 > > > On 25 March 2011 10:21, Rishab Jain wrote: > >> Hi All, >> >> I need a "video capturing through webcam" plugin for cak

Re: force a redirect even if destination's page is equal to source's page

2011-03-25 Thread Mariano C.
What a stupid error. key passed to controller was saveAndAddAgain but check inside controller was on SaveAndAddAgain. Sorry, for loss of time :( On 25 Mar, 14:11, euromark wrote: > did you check that "action" is actually "saveAndAddAgain"? > > pr($action); die(); > > i bet thats your problem > i

Re: Regarding Select all /delect all code for delete entries of array.

2011-03-25 Thread Jeremy Burns | Class Outfit
No. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 25 Mar 2011, at 11:10, vineet verma wrote: > Hey can you send me the code for delete entries from array by select > all jquery script. > > -- > Our newest site for the community: CakePHP Video Tutorials >

Regarding Select all /delect all code for delete entries of array.

2011-03-25 Thread vineet verma
Hey can you send me the code for delete entries from array by select all jquery script. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To

Re: force a redirect even if destination's page is equal to source's page

2011-03-25 Thread euromark
did you check that "action" is actually "saveAndAddAgain"? pr($action); die(); i bet thats your problem if(false) is always false!!! the code inside will never be executed On 25 Mrz., 13:46, Stephen wrote: > set 'value' => '' in your inputs on add. > > On 25 March 2011 12:43, Mariano C. wrote:

Re: how to use counterquery in cakephp

2011-03-25 Thread Zeu5
I found what works at the Wheel model use the counterscope http://book.cakephp.org/view/816/counterCache-Cache-your-count 'counterScope' => array('Wheel.status' => 'active') // only count if "Wheel" is active Please double ensure that the child counter field has no plural like wheel_count inst

Re: force a redirect even if destination's page is equal to source's page

2011-03-25 Thread Stephen
set 'value' => '' in your inputs on add. On 25 March 2011 12:43, Mariano C. wrote: > Nothin change. > > On 25 Mar, 13:08, Stephen wrote: > > unset $this->data ? > > > > On 25 March 2011 11:18, Mariano C. wrote: > > > > > > > > > > > > > > > > > > > > > I have a form inside add.ctp view: > > >

Re: force a redirect even if destination's page is equal to source's page

2011-03-25 Thread Mariano C.
Nothin change. On 25 Mar, 13:08, Stephen wrote: > unset $this->data ? > > On 25 March 2011 11:18, Mariano C. wrote: > > > > > > > > > > > I have a form inside add.ctp view: > > echo $form->create('...'); > > // ... > > echo $form->submit('Save and back', array('name'=>'saveAndBack')); > > echo $

Re: how to use counterquery in cakephp

2011-03-25 Thread Jeremy Burns | Class Outfit
By the way - have a go and come back if you can't get it to work. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 25 Mar 2011, at 12:10, Zeu5 wrote: > Thank you Jeremy. > > Would you give me a bit more details? > > some example code perhaps? > > > On Mar

Re: how to use counterquery in cakephp

2011-03-25 Thread Jeremy Burns | Class Outfit
I'm sure you can work it out. When a Wheel is saved (or deleted), run a find on the Wheel model that matches the conditions you want that returns a count of records. Take that value and update the wheel_count field on the Car model where Car.id = Wheel.car_id. Jeremy Burns Class Outfit jeremyb

Re: how to use counterquery in cakephp

2011-03-25 Thread Zeu5
Thank you Jeremy. Would you give me a bit more details? some example code perhaps? On Mar 25, 8:06 pm, Jeremy Burns | Class Outfit wrote: > I think you'll need to write your own custom function for that and put in the > afterSave callback of the 'Wheel' model. > > Jeremy Burns > Class Outfit

Re: force a redirect even if destination's page is equal to source's page

2011-03-25 Thread Stephen
unset $this->data ? On 25 March 2011 11:18, Mariano C. wrote: > I have a form inside add.ctp view: > echo $form->create('...'); > // ... > echo $form->submit('Save and back', array('name'=>'saveAndBack')); > echo $form->submit('Salva and add new', > array('name'=>'saveAndAddAgain')); > echo $for

Re: how to use counterquery in cakephp

2011-03-25 Thread Jeremy Burns | Class Outfit
I think you'll need to write your own custom function for that and put in the afterSave callback of the 'Wheel' model. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 25 Mar 2011, at 11:39, Zeu5 wrote: > Hi > > i need help understanding counterquery > > i

how to use counterquery in cakephp

2011-03-25 Thread Zeu5
Hi i need help understanding counterquery i know right now cakephp allows me to store children count in parent table eg a Car hasMany Wheel so in cars table, there is a wheels_count column. but i only want to store the wheel associated with a particular car AND has a status as 'active'. Meani

force a redirect even if destination's page is equal to source's page

2011-03-25 Thread Mariano C.
I have a form inside add.ctp view: echo $form->create('...'); // ... echo $form->submit('Save and back', array('name'=>'saveAndBack')); echo $form->submit('Salva and add new', array('name'=>'saveAndAddAgain')); echo $form->end(); Now, add function inside controller is something like: // grab butto

Re: Need a 'video capturing through webcam' tool or code

2011-03-25 Thread Stephen
Flash may be your answer: http://board.flashkit.com/board/showthread.php?t=737944 On 25 March 2011 10:21, Rishab Jain wrote: > Hi All, > > I need a "video capturing through webcam" plugin for cakephp. If not > cake, then in simple php will also do. > > Does anybody know of such a plugin? > > re

Need a 'video capturing through webcam' tool or code

2011-03-25 Thread Rishab Jain
Hi All, I need a "video capturing through webcam" plugin for cakephp. If not cake, then in simple php will also do. Does anybody know of such a plugin? regards, Rishab -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: Missing paths in URI

2011-03-25 Thread Claudio
Indeed, some .htaccess files were flawed/missing. Thanks for your help! On 11 Mrz., 14:52, Stephen wrote: > The webroot directory is exactly what it says web*root* > > So any URL Request i.e. /css/style.css will access > /app/webroot/css/style.css > > Check the following: > >    1. Mod Rewrite is

ODBC listSources() giving Out of Memory

2011-03-25 Thread mhamann
Hello, I'm trying to access a DB2 database via ODBC and I'm getting the following error when Cake attempts to list all of the tables: "Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 551995385 bytes)" I'm using the ODBC Datasource located in the cakephp/datasources

Re: PHP_EOL bug in cake 1.2

2011-03-25 Thread designv...@gmail.com
Thanks for clearing that up! I am in the unfortunate situation where I have ZERO control over the server, so I am at the mercy of php 4.3 :-( On Mar 24, 4:32 pm, mark_story wrote: > CakePHP maintains compatibility with PHP 4.4, nothing earlier. > > -Mark > > On Mar 23, 6:23 am, "designv...@gmail

Re: Problem Joining table

2011-03-25 Thread thom
On Fri, Mar 25, 2011 at 1:10 PM, thom wrote: > On Fri, Mar 25, 2011 at 9:33 AM, thom wrote: >>> >>> Perhaps you need to unBind() the other associations and then add those >>> joins to $paginate, as well. >>> > > > Why is my 'join' not works in this case? > It just unbind the model and paginate i