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
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
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
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
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.
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
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
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
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:
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
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
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
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
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.
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.
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
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
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
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
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
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
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
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
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,
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
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
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,
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
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
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'); ?
...
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
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
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,
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
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
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
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
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
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
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
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
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
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'
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
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
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',
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.
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
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
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(){
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' =
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
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
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!
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
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
56 matches
Mail list logo