Re: CakePHP 2.0.0 Stable

2011-03-14 Thread Tilen Majerle
OK Thank you...:) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/3/15 mark_story > More. Our normal release process includes an alpha, beta, and usually > at least 3 RC releases. None of these have happened yet. And they > will not all transpire in one month. > > -Mark > > On Mar 14, 5

Re: Lock a page that is being edited by another user

2011-03-14 Thread Ryan Schmidt
On Mar 14, 2011, at 14:38, cricket wrote: > On Mon, Mar 14, 2011 at 11:29 AM, Sarpidon wrote: >> > >> What I did was to create a hidden input with the current timestamp >> (when the edit page is generated) >> >> Upon save I check if the record has a greater timestamp than the one >> from the hid

Re: Delete Help

2011-03-14 Thread Jeremy Burns | Class Outfit
Are there any related records in the db that are preventing its deletion in the db? What happens if you delete the record through a database client? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 15 Mar 2011, at 04:06, Krissy Masters wrote: > Going nuts ove

Re: Form Validation with more than one model

2011-03-14 Thread Jeremy Burns | Class Outfit
Yes, this takes your data array and stores parts of it in different models, but it isn't storing the same data multiple times. That's an admin nightmare, so as I mentioned before, the best solution is to examine your database design. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://

Re: Form Validation with more than one model

2011-03-14 Thread Jeremy Burns | Class Outfit
Design your database better so it's only stored once. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 14 Mar 2011, at 23:36, duderion wrote: > hi guys, > > i have a users/add form, and i want to store the users address data to > several models (adresses,acco

Re: Delete Help - Solved

2011-03-14 Thread Krissy Masters
Bad association in the relations so was throwing missing table / column. Human typo error :O K -- 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 questi

Re: how to recognize App in SHELL mode?

2011-03-14 Thread Ryan Schmidt
On Mar 14, 2011, at 14:33, cricket wrote: > On Mon, Mar 14, 2011 at 12:04 PM, toka...@gmail.com wrote: >> is it possible to recognize that app is running as a SHELL?? >> >> I use a simple database switch in app/config/core.php ... I switch >> between LOCAL and LIVE database... >> >> I ask simply

Delete Help

2011-03-14 Thread Krissy Masters
Going nuts over something so simple not working I hate to even ask. public function manage_delete() { if ($this->RequestHandler->isAjax()) { $avatar = $this->Avatar->__getImageInfo( $this->owner_id ); $this->Avatar->deleteAll( array( 'id' => $avatar['Avatar

RE: another table to user for loggin in?

2011-03-14 Thread Krissy Masters
http://book.cakephp.org/#!/view/1265/AuthComponent-Variables $this->Auth->userModel = 'Admins'; K -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of cake_beginner Sent: Monday, March 14, 2011 11:49 PM To: CakePHP Subject: another table to

another table to user for loggin in?

2011-03-14 Thread cake_beginner
Hi, im really a cake beginner, and wondering if its possible, instead of using USERS table to login, i will use ADMINS table to login? i want to use the table admins to login at my page, not the users table... can anyone help me with this? thank you :) -- Our newest site for the community: Cak

Re: CakePHP License

2011-03-14 Thread mark_story
As Miles said, CakePHP is licensed under a free license (The MIT license). You are free to incorporate it into any commercial product with no license fees. There is no cost for support either, as there isn't any outside of what you get from the community. There are lots of members in the CakePHP

Re: CakePHP 2.0.0 Stable

2011-03-14 Thread mark_story
More. Our normal release process includes an alpha, beta, and usually at least 3 RC releases. None of these have happened yet. And they will not all transpire in one month. -Mark On Mar 14, 5:18 pm, "MaJerle.Eu" wrote: > Hello more like to admins... > > So, when can we expect a stable release

bizarre Form->create() result

2011-03-14 Thread cricket
I have a separate action for admins to add comments, so instead of using the 'action' option, I have: echo $this->Form->create( 'Comment', array( 'url' => array( 'action' => 'add', 'admin' => 1 )

Re: Form Validation with more than one model

2011-03-14 Thread duderion
i found a cool solution :D http://nuts-and-bolts-of-cakephp.com/2008/08/01/practical-use-of-saveall-part-1-working-with-multiple-models/ greets duderion On Mar 15, 12:36 am, duderion wrote: > hi guys, > > i have a users/add form, and i want to store the users address data to > several models (a

Re: "Keep me logged in" feature - how to do this?

2011-03-14 Thread DigitalDude
Hey Miles, I stumbled upon your component in the bakery and I used version 1.6. After changing the line with $this->Cookie->del() to $this->Cookie- >destroy() the component works perfectly with Cake 1.3.7! There's no error, no problem and everything is working just out of the box! Thanks for this

Form Validation with more than one model

2011-03-14 Thread duderion
hi guys, i have a users/add form, and i want to store the users address data to several models (adresses,accounts, etc) so i have more than one model to validate. whats the best practice ? duderion -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out

Re: obfuscate hash form ids

2011-03-14 Thread Ryan Schmidt
On Mar 14, 2011, at 18:15, arron wrote: > I want to hide my database fields and make it harder for people trying > to spam me or hack it I hesitate to support this idea, on the grounds that security through obscurity is not security. If there are ways for people to spam or hack your site just

Re: obfuscate hash form ids

2011-03-14 Thread arron
I want to hide my database fields and make it harder for people trying to spam me or hack it On Mar 14, 5:08 pm, euromark wrote: > the question is > what do you want to achieve with this? other than making your life a > hell of a lot more difficult as a developer > > On 14 Mrz., 23:45, arron wr

Re: obfuscate hash form ids

2011-03-14 Thread euromark
the question is what do you want to achieve with this? other than making your life a hell of a lot more difficult as a developer On 14 Mrz., 23:45, arron wrote: > I have a form > >                  create(info );?> >                 input('FirstOwner.fname');?> >                 input('FirstOwner

obfuscate hash form ids

2011-03-14 Thread arron
I have a form create(info );?> input('FirstOwner.fname');?> input('FirstOwner.lname');?> input('FirstOwner.first_owner_title');?> input('FirstOwner.first_owner_precentage');?> input('FirstOwner.first_h

Re: How to Hide Model name from URL of Search Result Pages

2011-03-14 Thread Miles J
What are you using to generate the named params? On Mar 14, 2:15 pm, Adael wrote: > You can do the following:http://pastebin.com/JAup00Hn > > On 14 mar, 20:00, "Mr.Jayesh" wrote: > > > Hello Everyone, > > Hope things Great.. > > > Anyone please advice me a quick solution from which i can hide mo

CakePHP 2.0.0 Stable

2011-03-14 Thread MaJerle.Eu
Hello more like to admins... So, when can we expect a stable release of CakePHP 2.0.0 ?... Maybe for about one month or more? -- 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 wit

Re: How to Hide Model name from URL of Search Result Pages

2011-03-14 Thread Adael
You can do the following: http://pastebin.com/JAup00Hn On 14 mar, 20:00, "Mr.Jayesh" wrote: > Hello Everyone, > Hope things Great.. > > Anyone please advice me a quick solution from which i can hide model > name from my URL created out of search string. > > currently my url looks > like:http://m

Re: Ajax request sends 2 times

2011-03-14 Thread Jens Dittrich
Why are you mixing the (deprecated) Ajax-Helper with html code for a form? Have you tried relying on the helper to produce the code for your form? On 14 Mrz., 14:21, heohni wrote: > Hi, > > I have this form: > Ajax->Form('searchMember', 'post', array('update' => > 'target', 'url' => array('action

Re: image upload via iphone app

2011-03-14 Thread Foroct
It looks like the problem is in this line $this->Drink- >make($file); // generate versions When I set my file upload to $this->data['media'] by stating $this- >data['media'] = $_FILES['media'] ; The media plugin then handles the upload using $file = $this->Drink- >transfer($this->data['media']);

Re: error in cake console trying to connect

2011-03-14 Thread Dee Johnson
or at least i found out what was going on. No biggie just more of an oversight. -- 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 unsub

Re: error in cake console trying to connect

2011-03-14 Thread Dee Johnson
Hi, Cricket, I found the solution pretty much seconds after I posted this. I actually didnt have my local webserver on :) -- 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

Re: Lock a page that is being edited by another user

2011-03-14 Thread Zaky Katalan-Ezra
I think you need some AJAX to ping the server with the post_id when someone open the post for edit. You need to ping every X second. When someone else trying to open the post for edit you check the ping table and if the post is in edit mode you can disable the last user edit button. you can even te

Re: Ajax request sends 2 times

2011-03-14 Thread cricket
On Mon, Mar 14, 2011 at 9:21 AM, heohni wrote: > Hi, > > I have this form: > Ajax->Form('searchMember', 'post', array('update' => > 'target', 'url' => array('action' => 'searchMember'))); ?> > > Suchwort: > > > > > Ajax->Form->end(); ?> > > And everytime I press the submit button, the request

Re: Lock a page that is being edited by another user

2011-03-14 Thread cricket
On Mon, Mar 14, 2011 at 11:29 AM, Sarpidon wrote: > Thank you for your answers. > > What I did was to create a hidden input with the current timestamp > (when the edit page is generated) > > Upon save I check if the record has a greater timestamp than the one > from the hidden input and if so i re

Re: how to recognize App in SHELL mode?

2011-03-14 Thread cricket
On Mon, Mar 14, 2011 at 12:04 PM, toka...@gmail.com wrote: > Hi, > is it possible to recognize that app is running as a SHELL?? > > I use a simple database switch in app/config/core.php ... I switch > between LOCAL and LIVE database... > > I ask simply for domain domain.com OR domain.local > >

Re: error in cake console trying to connect

2011-03-14 Thread cricket
Have you tried the google? Here's a concise explanation from one of the results to get you started: http://www.ibexsoftware.com/Help/RemoteExecute/errorid10060aconnectionattemptfailedbecausetheconnectedpartydidnotproperlyrespondafteraperiodoftimeorestablishedconnectionfailedbecauseconnectedhosthasf

How to Hide Model name from URL of Search Result Pages

2011-03-14 Thread Mr.Jayesh
Hello Everyone, Hope things Great.. Anyone please advice me a quick solution from which i can hide model name from my URL created out of search string. currently my url looks like: http://my.website.com/medical/results/Medicine.search:cancer/Medicine.author_id:5 I wanted it to be like this: http

Re: Charset

2011-03-14 Thread cricket
On Sun, Mar 13, 2011 at 11:57 AM, Chris wrote: > Hi there, > > I've been a little bit messy about the charset I am actually using in > my application. Now, I decided on using uft8 and I set it in: > > - my default view (for meta-data and html-header) > - core.php (App.encoding) > - database.php (e

error in cake console trying to connect

2011-03-14 Thread Dee Johnson
Hi, i fired up the cake console today and this is an error it was giving me...I cannot do anything. Any ideas? PHP Warning: mysql_connect(): [2002] A connection attempt fail nnected party did not (trying to connect via tcp://localhost:3 ake\cake\libs\model\datasources\dbo\dbo_mysql.php on line

Re: pop up window on one of two buttons in one form

2011-03-14 Thread LipeDjow
Hi, The button's javascript used needs to return false. You can also use jQuery's preventDefault function depending on your needs. HTH, LipeDjow -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

how to recognize App in SHELL mode?

2011-03-14 Thread toka...@gmail.com
Hi, is it possible to recognize that app is running as a SHELL?? I use a simple database switch in app/config/core.php ... I switch between LOCAL and LIVE database... I ask simply for domain domain.com OR domain.local But if I run it trough SHELL, it does not provide this variable $_SERVER['

Re: Lock a page that is being edited by another user

2011-03-14 Thread Sarpidon
Ok, this is what I did for the multiple messages. I created an array $allmessages = array(); and then on every action on the same function I pushed a message into the array like so: array_push($allmessages, 'my message here'); and at the end of the function I imploded the array and set the flash

Re: Lock a page that is being edited by another user

2011-03-14 Thread Sarpidon
Thank you for your answers. What I did was to create a hidden input with the current timestamp (when the edit page is generated) Upon save I check if the record has a greater timestamp than the one from the hidden input and if so i redirect back with a flash message saying "This post has already

Re: User specific Routing

2011-03-14 Thread Özgür Demir
thanks a lot cricket. this is exactly what I was looking for. On 13 Mrz., 19:29, cricket wrote: > On Sun, Mar 13, 2011 at 8:33 AM, Özgür Demir wrote: > > Hi there, > > > I have a routing question. My website should display content depending > > on a username. I can achieve this using something l

Re: Auto Increment A Field

2011-03-14 Thread dtemes
Usually I let the counter cache do this kind of things, my apps are not so famous that I will run into problems due to high CPU ussage, and nowadays disk space is really cheap. For instance I would create a 'votes' table and model, and store there datetime, user id, ip address and other details of

Re: Lock a page that is being edited by another user

2011-03-14 Thread mikek
> Ok. I guess I am looking for Optimistic Locking, > > has this been implemented on CakePHP? Anyone? I'd add a field in your article table called editor_id and fill with the user id when you begin to edit. then remove the id when you save. obviously this will cause all sorts of locking hell if yo

Re: Lock a page that is being edited by another user

2011-03-14 Thread Tilen Majerle
if i understand you goodthen...do this: when x user click into "edit post" link, save into database in this post that post is locked (eg locked = 1) and which time it was locked (lockedtime = with date function()), then give an x user idk, about 15 minutes to edit post, and after he press "Save

Re: Lock a page that is being edited by another user

2011-03-14 Thread Sarpidon
Ok. I guess I am looking for Optimistic Locking, has this been implemented on CakePHP? Anyone? Thanks On Mar 14, 2:50 pm, Sarpidon wrote: > Hi, I tried searching for it but I cannot find anything useful. I am > trying to lock a page that is being edited by another user. In our > site there coul

Ajax request sends 2 times

2011-03-14 Thread heohni
Hi, I have this form: Ajax->Form('searchMember', 'post', array('update' => 'target', 'url' => array('action' => 'searchMember'))); ?> Suchwort: Ajax->Form->end(); ?> And everytime I press the submit button, the request is send 2 times, I can see this with firebug in my firefox. Is there some

Re: Cache filenames messed up

2011-03-14 Thread Sarpidon
Thank you Jeremy. I am going to try that and see... On Mar 2, 5:08 pm, Jeremy Burns | Class Outfit wrote: > This has come up before, but the answer is not obvious. Here's a stolen reply > from an earlier post: > > This is actually caused by a bug in the PCRE library on Centos / Red Hat. See > t

Lock a page that is being edited by another user

2011-03-14 Thread Sarpidon
Hi, I tried searching for it but I cannot find anything useful. I am trying to lock a page that is being edited by another user. In our site there could be many admins editing the frontpage (choosing main articles and so on), I want to be able to restrict the page to be edited by a single user ever

Re: "configuring the console's profile to run bake"

2011-03-14 Thread Sam Sherlock
I use mingw and after setting up as guided in 'setting up console on windows' bake will work from mingw/msys & cmd prompt http://tv.cakephp.org/video/gwoo/2010/12/24/setting_up_the_cakephp_console_on_windows On 13 March 2011 20:16, foug wrote: > hi, i'm following the book "Apress, beginning

pop up window on one of two buttons in one form

2011-03-14 Thread andy_the ultimate baker
hi friends i m trying to pop up a new window in click but there are two submit button on my form. on one of them i want to give popup name of my buttons are"Respond", and "Submit". on click i could open an new window but form is also get submitted. can any one suggest me how to restrict form from

Cannot send to channel

2011-03-14 Thread juan
Posting message on irc i always get "cannot send to channel".Why I always get this? channel #cakephp -- 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 qu

"configuring the console's profile to run bake"

2011-03-14 Thread foug
hi, i'm following the book "Apress, beginning cake php. From novice to professional" I'm a little confused about this console stuff and using cygwin or mingw. Is there anyway to run bake through cpanel? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check ou

Charset

2011-03-14 Thread Chris
Hi there, I've been a little bit messy about the charset I am actually using in my application. Now, I decided on using uft8 and I set it in: - my default view (for meta-data and html-header) - core.php (App.encoding) - database.php (encoding) I am pretty sure that my mysql database is not reall

Inconsistent nesting of related models with containable?

2011-03-14 Thread madcousinphil_
Hi, I am trying to understand the way that cake nests related models when doing a find using containable. This is my situation: Order has many Sales Sale belongs to Product Sale belongs to Order Product has many ProductImage Product hasAndBelongsToMany Category Category HABTM Product ProductImage

Re: Error Security::cipher()

2011-03-14 Thread Carachi
Thank you ShadowCross, I do some other test and I discover that if I call the function from URL it works and the Security::cipher() and the Security.salt is set , but if I call the function from an other controller it doesn't work and the Security.salt is set but the Security::cipher() is empty a

Problem with xml- cakephp

2011-03-14 Thread rakeshyadav rakeshyadav
HI All, i am trying to generate XML template on my report generated data. the stuff related to generate XML i keep in view page as below. $store['st']['store_type']); App::import('Helper', 'Xml'); App::import('Core', 'File'); $xml = new XmlHelper();

Re: session not saved in app controller

2011-03-14 Thread Shinya Koizumi
Thanks beforeRender worked. Like you said maybe i was misunderstanding the use of afterFilter. On Mon, Mar 14, 2011 at 12:09 AM, hunny wrote: > Not sure about the afterFilter function. Are you sure this is being > invoked automatically? > Otherwise you can probably right the same logic in before

Re: session not saved in app controller

2011-03-14 Thread hunny
Not sure about the afterFilter function. Are you sure this is being invoked automatically? Otherwise you can probably right the same logic in beforeRender Function. On Mar 14, 6:51 am, cake-learner wrote: > I set up my app object in both beforeFilter and afterFilter callback > functions > > class