Re: Radio button value null after post, but appears in post headers upon inspection

2009-01-03 Thread WebbedIT
That looks like an unusual array dump to me. Multiple radio button fields with the same name should result in a single variable being passed back to the controller. Can you even build an array with multiple instances of the same key-value pairing as shown above? My guess would be that IF you

Re: in the link have a parameter 'CAKEPHP'

2009-01-03 Thread Mike Bernat
That's cakePHP's session ID. It's appearing because the server believes you don't have cookies enabled. You can't turn it off as it is a php core behavior. On Sat, Jan 3, 2009 at 2:44 AM, Rimoe meiyo...@gmail.com wrote: hi, everyone, in my link have a parameter CAKEPHP. for example

show image from layout

2009-01-03 Thread piyushsharmajec
How can one show image either logo or any other from layout file as this file is present in webroot folder so there is confution over image address. Thanks Piyush -- View this message in context: http://www.nabble.com/show-image-from-layout-tp21263881p21263881.html Sent from the CakePHP

Re: Validation errors for the wrong form

2009-01-03 Thread Nature Lover
Hi! Are the forms for both login and register differ. or you have included the login element within the registration form? thanks! On Jan 1, 9:33 am, mariacheu...@gmail.com mariacheu...@gmail.com wrote: Hi all, Apologies if this has been addressed before, but I've searched and can't find a

Re: Validation errors for the wrong form

2009-01-03 Thread mariacheu...@gmail.com
They are both different forms, the register form is from a view and the login is part of a sidebar element. Both forms have different names too. Thanks for your reply! On Jan 3, 6:21 pm, Nature Lover nature_lover1...@yahoo.co.in wrote: Hi! Are the forms for both login and register differ.

Re: Radio button value null after post, but appears in post headers upon inspection

2009-01-03 Thread Drinkspiller
Can you show us the HTML code for the form including the radio buttons and the hidden field you mention, and also could you supply the PHP you are using to create the form? Can you show us the HTML code for the form including the radio buttons and the hidden field you mention, and also

Re: Radio button value null after post, but appears in post headers upon inspection

2009-01-03 Thread Drinkspiller
Can you show us the HTML code for the form including the radio buttons and the hidden field you mention, and also could you supply the PHP you are using to create the form? Can you show us the HTML code for the form including the radio buttons and the hidden field you mention, and also

RE: Adding table row with AJAX

2009-01-03 Thread Steven Wright
Thanks for the reply. This is mostly working but there is something I am still missing. I tried two different things. 1) If I call the 'edit' action I get a jQuery error ( 'div is null' ' elem = jQuery.makeArray( div.childNodes ); ') I am not sure what div its looking for. The second problem

Re: $this-Auth-user not refreshing after edit

2009-01-03 Thread webjay
Here's how I do it: private function reload () { $this-Auth-login($this-User-read()); } So just call $this-reload() from your controller. -- View this message in context:

Re: without default Database Configuration: Fatal error: ConnectionManager::getDataSource - Non-existent data source default

2009-01-03 Thread Smelly_Eddie
Sounds like you want to use multiple configurations based on the location of the app (live versus dev) There are a few ways to solve this. I wrote an article outlining my preferred method. You should read through the user comments as they add some helpful insight, including how to use this

RE: API

2009-01-03 Thread Steven Wright
Not one really specific thing. In general the Cookbook does not seem to answer my questions so I find myself going to look at the API. Most methods seem to accept options but there is almost never a description of what those options are. I suppose given time I will figure this out, its just

How can we edit uploaded file

2009-01-03 Thread mona
hi all On my edit view i have one option to update uploaded file but when i do this they are taking first character of file and in size also it will take character value so how can i edit uploaded file value in cake php --~--~-~--~~~---~--~~ You received this

Re: Radio button value null after post, but appears in post headers upon inspection

2009-01-03 Thread WebbedIT
The resulting HTML output is this: form method=post action=http://www.mydomain.com/underwear/undies/ add         fieldset style=display:none;         input type=hidden name=_method value=POST /         /fieldset     table class=undietypes         tr                 td                

Re: Data validation doesn't work

2009-01-03 Thread Lucas
Hi gearvOsh, Unfortunately nothing happens again :( I tryed with both options (required = true and notEmpty rule) and nothing happens. More tips? Thanks! On 29 dez 2008, 23:24, gearvOsh mileswjohn...@gmail.com wrote: You either need to have: required = true Or use the notEmpty rule.

Re: Data validation doesn't work

2009-01-03 Thread Lucas
Hi gearvOsh, Unfortunately nothing happens again :( I tryed with both options (required = true and notEmpty rule) and nothing happens. More tips? Thanks! On 29 dez 2008, 23:24, gearvOsh mileswjohn...@gmail.com wrote: You either need to have: required = true Or use the notEmpty rule.

Re: Radio button value null after post, but appears in post headers upon inspection

2009-01-03 Thread Drinkspiller
WebbedIt: When you submit this form does the selected radio button's valueshow up or does it arrive at validation and the SQL as null like it does for me? Cheers! On Jan 3, 11:01 am, WebbedIT p...@webbedit.co.uk wrote: The resulting HTML output is this: form method=post

Re: show image from layout

2009-01-03 Thread brian
On Sat, Jan 3, 2009 at 6:07 AM, piyushsharmajec piyushsharma...@gmail.com wrote: How can one show image either logo or any other from layout file as this file is present in webroot folder so there is confution over image address. Thanks It does not matter that the layout file is stored in

Re: show image from layout

2009-01-03 Thread Mike Bernat
You can also use the image method from the html helper. echo $html-image('my_logo.jpg'); On Sat, Jan 3, 2009 at 12:51 PM, brian bally.z...@gmail.com wrote: On Sat, Jan 3, 2009 at 6:07 AM, piyushsharmajec piyushsharma...@gmail.com wrote: How can one show image either logo or any other

Radio Button onClick

2009-01-03 Thread Nick
What Im trying to do is list some events as radio buttons. When one of the buttons is clicked I wanted it to populate three textareas with the data from that event record. ie: when clicking on wedding the Event.name, Event.description, Event.information would be populated into the three

Re: show image from layout

2009-01-03 Thread brian
On Sat, Jan 3, 2009 at 1:21 PM, Mike Bernat bern...@gmail.com wrote: You can also use the image method from the html helper. echo $html-image('my_logo.jpg'); Yes, I should have mentioned that. I was just trying to clarify the paths issue. I suspect the OP is confused by the location of the

Re: API

2009-01-03 Thread mark_story
Steven, if you could give some concrete examples perhaps we could improve the doc blocks :) -Mark On Jan 3, 11:36 am, Steven Wright rhythmicde...@gmail.com wrote: Not one really specific thing. In general the Cookbook does not seem to answer my questions so I find myself going to look at the

Re: $form-year not saving

2009-01-03 Thread markfm
In case someone stumbles upon this, an even more elegant solution would be to ditch the controller code and use one line in your view: ? echo $form-input('movie_years', array('type' = 'date', 'dateFormat' = 'Y', 'minYear' = '1930', 'maxYear' = date('Y'))); ? Much better! --Mark On Dec 22

Deleting from multiple models

2009-01-03 Thread rhythmicde...@gmail.com
I have a model Recipe that has a one to many relationship with a model IngredientList I want to delete a single recipe from the Recipe model which should also delete all the records from the IngredientList model that have the recipe's ID. I would have thought that there would be a single line

Re: API

2009-01-03 Thread rhythmicde...@gmail.com
Ahh I dont want to be all whiny about it :) Essentially if there are options the options should be listed. On Jan 3, 1:50 pm, mark_story mark.st...@gmail.com wrote: Steven, if you could give some concrete examples perhaps we could improve the doc blocks :) -Mark On Jan 3, 11:36 am,

Re: Cakephp on MAMP, Mac OSX

2009-01-03 Thread b...@superstan.com
Thanks! This was the same issue i had. Once i copied over the .htaccess file to my cake app folder in the MAMP htdocs folder, all was good. Bob On Dec 26 2008, 2:45 pm, Chad Casselman ccassel...@gmail.com wrote: I am running the same setup.  The only problem I ran into was, I extracted cake

Re: API

2009-01-03 Thread brian
On Sat, Jan 3, 2009 at 3:18 PM, rhythmicde...@gmail.com rhythmicde...@gmail.com wrote: Ahh I dont want to be all whiny about it :) Essentially if there are options the options should be listed. Agreed. The API docs are a misery to wade through at times. Especially for figuring out things

RE: API

2009-01-03 Thread Steven Wright
Yeah. I am pretty sure the docs are auto created probably like Java Doc. But I cant really bitch too much about what is essentially a free framework. -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of brian Sent: Saturday, January 03,

saveField with out modifying 'modified'

2009-01-03 Thread brian
Is there any way to use saveField without having my 'modified' column updated? Looking at the save() method, I thought, at first, that this should work: $this-User-saveField('last_login', date('Y-m-d H:i:s'), array('fieldList' = array('last_login'))); However, it's disregarded. The block that

Re: API

2009-01-03 Thread mark_story
Its not bitching if you are willing to point out where the problems are and perhaps offer some solutions to those problems. That's called contributing in my books. As for the API it is automatically generated via doxygen. But just because it is auto generated means it should be poor. So

Edit multiple models in the same page: possible?

2009-01-03 Thread Jaime
Hi all, I wonder if it's possible to have two different forms for two different (but related) models in the same page. Imagine a page where the logged in user can edit his profile (model Profile) as well as to add a photo into his gallery (model Image). ?php echo $form-create('Profile'); ? ...

Re: API

2009-01-03 Thread gearvOsh
I usually open the files myself instead of using the API online. I usually have to go through the methods themselves to find out the options. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to

Re: Deleting from multiple models

2009-01-03 Thread Alexandru
yes it is. check http://book.cakephp.org/view/80/hasOne for dependent key dependent: When the dependent key is set to true, and the model’s delete() method is called with the cascade parameter set to true, associated model records are also deleted. In this case we set it true so that deleting a

Re: in the link have a parameter 'CAKEPHP'

2009-01-03 Thread Rimoe
Thank You. [?] 2009/1/3 Mike Bernat bern...@gmail.com That's cakePHP's session ID. It's appearing because the server believes you don't have cookies enabled. You can't turn it off as it is a php core behavior. On Sat, Jan 3, 2009 at 2:44 AM, Rimoe meiyo...@gmail.com wrote: hi, everyone,

Re: API

2009-01-03 Thread brian
On Sat, Jan 3, 2009 at 6:58 PM, mark_story mark.st...@gmail.com wrote: Its not bitching if you are willing to point out where the problems are and perhaps offer some solutions to those problems. That's called contributing in my books. As for the API it is automatically generated via

Re: API

2009-01-03 Thread brian
On Sat, Jan 3, 2009 at 7:36 PM, gearvOsh mileswjohn...@gmail.com wrote: I usually open the files myself instead of using the API online. I usually have to go through the methods themselves to find out the options. You can get to the source of any method by following the link, Definition at

Re: Edit multiple models in the same page: possible?

2009-01-03 Thread thatsgreat2345
Use Ajax? On Jan 3, 4:07 pm, Jaime ja...@iteisa.com wrote: Hi all, I wonder if it's possible to have two different forms for two different (but related) models in the same page. Imagine a page where the logged in user can edit his profile (model Profile) as well as to add a photo into his

storing user_ids

2009-01-03 Thread ymadh
I want to have the logged in user information stored with each record. Is there a way to set this on the controller or do I have to rely on hidden fields in the views? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

RE: API

2009-01-03 Thread Steven Wright
Well here is one example. What are the options for this particular method? Return JavaScript text for an observer... Parameters: string $klass Name of JavaScript class string $name array $options Ajax options Returns: string Formatted JavaScript Definition at

RE: Deleting from multiple models

2009-01-03 Thread Steven Wright
Thank you. -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of Alexandru Sent: Saturday, January 03, 2009 7:42 PM To: CakePHP Subject: Re: Deleting from multiple models yes it is. check http://book.cakephp.org/view/80/hasOne for

Re: storing user_ids

2009-01-03 Thread brian
On Sat, Jan 3, 2009 at 8:18 PM, ymadh ad...@dogtrainersearch.com wrote: I want to have the logged in user information stored with each record. Is there a way to set this on the controller or do I have to rely on hidden fields in the views? Each record of what? Is there a user_id column in

Re: storing user_ids

2009-01-03 Thread ymadh
Each record of the associated tables. So if a client is created under a logged in user, I want it to autopopulate the db with user_id which is in the session. That way each user only sees their clients..make sense? My client table would have client info, and of course a user_id field. I didn't

Re: storing user_ids

2009-01-03 Thread brian
On Sat, Jan 3, 2009 at 9:02 PM, ymadh ad...@dogtrainersearch.com wrote: Each record of the associated tables. So if a client is created under a logged in user, I want it to autopopulate the db with user_id which is in the session. That way each user only sees their clients..make sense? My

saving to habtm models from checkbox groups.

2009-01-03 Thread mike
I posted about this earlier but I'm still having trouble. I think I have my models set up properly now: class User extends AppModel { var $name = 'User'; var $hasAndBelongsToMany = array ( 'Ethnicity' = array( 'className'= 'Ethnicity', 'joinTable'

Re: Adding table row with AJAX

2009-01-03 Thread rhythmicde...@gmail.com
Hi Brian, I was wondering if you had an answer to this issue I am having. I dont understand the error, or why the data is not appending. Thanks. On Jan 3, 9:43 am, Steven Wright rhythmicde...@gmail.com wrote: Thanks for the reply. This is mostly working but there is something I am still

RE: Adding table row with AJAX

2009-01-03 Thread Steven Wright
In addition, just to prove I am not a complete dope. I get how this works, just not with CakePHP. AJAX_TEST.PHP ?php $row_count = ($_POST['row_count'] + 1); echo tr id=\row$row_count\tdContent for row $row_count/td/tr; ? AJAX_TEST.HTML html head title/title script type=text/javascript

HABTM retrieving help

2009-01-03 Thread gearvOsh
Heres my tables and relations: Team Team-belongsTo: Country, State Team-hasAndBelongsToMany: User (the players on a team, table = teams_players) Team: CREATE TABLE IF NOT EXISTS `teams` ( `id` int(10) NOT NULL auto_increment, `status` enum('approved','pending') NOT NULL default 'pending',

RE: Adding table row with AJAX

2009-01-03 Thread Steven Wright
One way that I found to make this work is to use a dummy.ctp file which is empty. Then I set the debug level to 0 to suppress all output from CakePHP. I then get just output I need. The use of a dummy file seems like a hack workaround to me though but at this point I don’t have a better option.

RE: Adding table row with AJAX

2009-01-03 Thread Steven Wright
Actually this works in place of the dummy file $this-autoRender = false; -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of rhythmicde...@gmail.com Sent: Saturday, January 03, 2009 9:45 PM To: CakePHP Subject: Re: Adding table row with

Re: in the class of [MailsController] use the [$this-User-create()]

2009-01-03 Thread Rimoe
var $uses = array('Mail','User'); 2009/1/4 Rimoe meiyo...@gmail.com hi,everyone. in the class of [MailsController] we can use the [$this-Mail-create();] but I want to use the [$this-User-create();] what should I do? It's possible? rimoe

Auth Broken.

2009-01-03 Thread Matt Williamson
Hey Guys, I am trying to use the Auth component, but I'm pretty sure there's some bug preventing me from doing so. Here is what my app_controller.php looks like: ?php class AppController extends Controller { var $components = array('Auth'); function beforeFilter(){

Return compressed XML

2009-01-03 Thread ace2600
Hi, I want to return unique compressed XML for each user request. Something like this in the controller: public function download() { $filename = 'some_temporary_file_name.gz'; $this-view = 'Media'; $params = array( 'id' = $filename, 'name' =

'php' is not recognized as an internal or external command, operable program or batch file'

2009-01-03 Thread amar goud
Hi All, If I run *php -v* command to know php version on command line, it shows error like 'php' is not recognized as an internal or external command, operable program or batch file' what does this error means? I'm using xampp server on windows-xp(service pack-3); please help me

Re: Auth Broken.

2009-01-03 Thread Matt Williamson
P.S. I'm using release 1.2.0.7962. On Sun, Jan 4, 2009 at 1:14 AM, Matt Williamson dawsdes...@gmail.comwrote: Hey Guys, I am trying to use the Auth component, but I'm pretty sure there's some bug preventing me from doing so. Here is what my app_controller.php looks like: ?php class

Re: saveField with out modifying 'modified'

2009-01-03 Thread brian
On Sun, Jan 4, 2009 at 1:07 AM, Sergei yatse...@gmail.com wrote: Yes, this sucks. I had to read OLD modified date, and save it using save(data[] array with modified). I did this in cake1.1. I also just noticed that my last_login field is set on add(). Argghhh!

Re: Adding table row with AJAX

2009-01-03 Thread brian
On Sat, Jan 3, 2009 at 10:05 PM, Steven Wright rhythmicde...@gmail.com wrote: In addition, just to prove I am not a complete dope. I get how this works, just not with CakePHP. AJAX_TEST.PHP ?php $row_count = ($_POST['row_count'] + 1); echo tr id=\row$row_count\tdContent for row

Re: 'php' is not recognized as an internal or external command, operable program or batch file'

2009-01-03 Thread park
You should set \xampp\php in the path environment variable. On Jan 4, 2:49 pm, amar goud amardeen...@gmail.com wrote:  Hi All, If I run *php -v* command to know php version on command line, it shows error like 'php' is not recognized as an internal or external command, operable program or