Thanks man, thats the trick.
_
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Sam Sherlock
Sent: Tuesday, June 09, 2009 3:34 PM
To: cake-php@googlegroups.com
Subject: Re: Sub templating
in views/subscribers/view.ctp
$this->element('../subscribers/subview
Thank you sir.
On Wed, Jun 10, 2009 at 3:15 PM, Andreas wrote:
>
> You can do Configure::write(); anywhere in you app...
> I do it like this:
>
> $debugLevel = Configure::read('debug');
> Configure::write('debug', 0);
> [...] //your code
> Configure::write('debug', $debugLevel);
>
> greets
> A
>
Yep, thats what I ended up doing. Thanks for the help.
On Wed, Jun 10, 2009 at 11:46 AM, rich...@home wrote:
>
> or alternatively (not tested, may not work), create a subscribers
> folder in elements:
>
> app/
>views/
>elements/
>subscribers/
>subview1.c
$this->setAction('view',
$user_id) instead of redirecting.
On Tue, Mar 3, 2009 at 11:42 PM, Steven Wright
wrote:
>
> Well the only issue is that the client wants all the data and the add
> device on the same view. There will possible be more mini forms as
> well. I wo
irecting.
On Tue, Mar 3, 2009 at 11:42 PM, Steven Wright
wrote:
>
> Well the only issue is that the client wants all the data and the add
> device on the same view. There will possible be more mini forms as
> well. I would prefer to break it up into logical chunks but its not my
ca
Well the only issue is that the client wants all the data and the add device
on the same view. There will possible be more mini forms as well. I would
prefer to break it up into logical chunks but its not my call.
Would AJAX get me out of this? If I only have to update a region of the page
its di
Hi Gonzalo thanks for the answer.
Unfortunately I dont think that will work. The Set method will set the value
for the current request but when the redirect happens that variable is lost
because the redirect is a new request. The only way I can think to do this
is to set the variable into the GE
Your model has to be the singular name of the database table.
Db table: airportgroups
Model: airportgroup
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Joao Ribeiro da Silva
Sent: Tuesday, March 03, 2009 3:48 PM
To: CakePHP
Subject:
And I thought I was the only one.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Samuel DeVore
Sent: Sunday, March 01, 2009 4:36 PM
To: cake-php@googlegroups.com
Subject: Re: What do you develop in (ide, text editor, etc.)?
a tutu and
No. Each table has a column called location_id. So the value of that column
in a row will correspond to a row in the id column of Location. That is how
the records in the tables are tied together.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On
Look on line 47 of the file: app\config\core.php
Steve
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Rendicahya
Sent: Thursday, February 26, 2009 5:26 AM
To: CakePHP
Subject: [ask] How to customize CakePHP URL?
Hi everybody. I'm a
You have to over ride the _schema property as well.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Miles J
Sent: Wednesday, February 25, 2009 3:53 PM
To: CakePHP
Subject: Re: Not using a DB for data
Just do this in the controller:
Sorry about that. The error was there there was no SQL. The issue was
CakePHP requires you to overide _schema.
I solved the problem with the following:
class Workorder extends AppModel
{
var $useTable = false;
var $_schema = array(
'id'=> array('type' => 'integer'
Thank you.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Webweave
Sent: Wednesday, January 21, 2009 4:33 PM
To: CakePHP
Subject: Re: Relationships - HABTM
http://book.cakephp.org/view/439/recursive
On Jan 19, 7:57 am, "rhythmicde..
$this->Recipe->recursive is set to.
On Mon, Jan 19, 2009 at 4:34 PM, Steven Wright
wrote:
>
> Hi Brian one more thing for clarification. My expectation is that if I
> define the relationships correctly and my DB table are keyed correctly
> when I call for a read all from the Rec
doing this
with Cake. I guess you could put the amount info, etc. in the
ingredients_recipes join table but I'm not sure that'd be the best way.
On Mon, Jan 19, 2009 at 12:50 PM, Steven Wright
wrote:
>
> Hi Brian thanks for writing back.
>
> The ingredient_lists tabl
s for IngredientList, I'm not sure I've never thought much about doing this
with Cake. I guess you could put the amount info, etc. in the
ingredients_recipes join table but I'm not sure that'd be the best way.
On Mon, Jan 19, 2009 at 12:50 PM, Steven Wright
wrote:
>
> Hi Brian t
Hi Brian thanks for writing back.
The ingredient_lists table is where the ingredient, amount and ingredient
level instructions are stored. I suppose it's really a join table for
recipes, ingredients and measurement_types. So from your reply I should
actually rename this to ingredients_recipes.
A
Thanks Miles.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Miles J
Sent: Wednesday, January 14, 2009 11:09 PM
To: CakePHP
Subject: Re: Compliance of HTML output
No it is not, but it doesnt hurt the code.
$form->input is a global
Ha! That was it. Man thanks. I have a secondary method that populated using
list.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Miles J
Sent: Wednesday, January 14, 2009 3:38 PM
To: CakePHP
Subject: Re: Automagic Form Fields
How i
Rock! Thanks for the help.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Dardo Sordi Bogado
Sent: Thursday, January 08, 2009 9:17 PM
To: cake-php@googlegroups.com
Subject: Re: Sanitization
> Question about Sanitization. Am I right i
Thanks I will try that.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Penfold
Sent: Thursday, January 08, 2009 7:27 PM
To: CakePHP
Subject: Re: Sanitization
Try
$this->data = Sanitize::escape($this->data);
On 8 Jan, 23:23, "rhythm
Ok cool. Thanks.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Gwoo
Sent: Thursday, January 08, 2009 5:40 PM
To: CakePHP
Subject: Re: Baking
Because there is no way to tell if a relationship is 1-1 or 1-many in this
context since
jQuery is the way to go. Just try it out in a single HTML page. You will get
the hang of it faster than you think
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of KooT
Sent: Monday, January 05, 2009 2:52 PM
To: CakePHP
Subject: AJAX Di
Do you have mod_rewrite enabled on your apache server?
http://book.cakephp.org/view/333/A-Note-on-mod_rewrite
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of reidster
Sent: Sunday, January 04, 2009 4:24 PM
To: CakePHP
Subject: New In
groups.com [mailto:cake-...@googlegroups.com] On Behalf
Of brian
Sent: Sunday, January 04, 2009 3:01 AM
To: cake-php@googlegroups.com
Subject: Re: Adding table row with AJAX
On Sat, Jan 3, 2009 at 11:15 PM, Steven Wright
wrote:
>
> Actually this works in place of the dummy file
>
> $t
brian
Sent: Sunday, January 04, 2009 3:01 AM
To: cake-php@googlegroups.com
Subject: Re: Adding table row with AJAX
On Sat, Jan 3, 2009 at 11:15 PM, Steven Wright
wrote:
>
> Actually this works in place of the dummy file
>
> $this->autoRender = false;
Yes, that's correct. The reas
-...@googlegroups.com] On Behalf
Of brian
Sent: Sunday, January 04, 2009 3:04 AM
To: cake-php@googlegroups.com
Subject: Re: Adding table row with AJAX
On Sat, Jan 3, 2009 at 9:43 AM, Steven Wright
wrote:
>
> Thanks for the reply. This is mostly working but there is something I
> am still missi
2009 2:46 AM
To: cake-php@googlegroups.com
Subject: Re: Adding table row with AJAX
On Sat, Jan 3, 2009 at 10:05 PM, Steven Wright
wrote:
>
> In addition, just to prove I am not a complete dope. I get how this
> works, just not with CakePHP.
>
> AJAX_TEST.PHP
>
>
> $ro
You need to set it as an environment variable.
Alternatively, I would load MySQL, Apache and PHP individually. The PHP
installation has an option for adding to the path. Also you will have a
better understanding of how these things work. Its not very difficult to do.
Essentially you would
In
ith AJAX
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 wrote:
> Thanks for the reply. This is mostly working but there is something I
> am still missi
having. I dont
understand the error, or why the data is not appending.
Thanks.
On Jan 3, 9:43 am, Steven Wright wrote:
> 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
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 wrote:
> Thanks for the reply. This is mostly working but there is something I
> am still missing.
>
> I tried two different things.
>
> 1) If
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 dependen
the API is weak would help as you are probably not
the only person who has experienced issues with it.
-Mark
On Jan 3, 3:47 pm, Steven Wright wrote:
> Yeah. I am pretty sure the docs are auto created probably like Java Doc.
> But I cant really bitch too much about what is essenti
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, 2
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 diffic
x
}); // ends click
}); // ends document.ready
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of brian
Sent: Friday, January 02, 2009 8:26 PM
To: cake-php@googlegroups.com
Subject: Re: Adding table row with AJAX
On Fri, Ja
Hi Adam,
Thanks for writing back. How would you get the data back for the row from
CakePHP?
My row contains four columns with the following inputs:
amount [text]
measurement_type [select]
description [text]
ingredient [select]
This is normally rendered from an element as a table row. I would li
Ok fair enough. So how does one use the $javascript->object() ?
I want to pass an array to a javasrcipt variable.
Thanks.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Bernardo Vieira
Sent: Wednesday, December 31, 2008 3:58 PM
To:
Try this in your template:
Add this to your controller: $this->pageTitle = 'My search engine optimized
title';
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of mona
Sent: Wednesday, December 31, 2008 11:34 AM
To: CakePHP
Subject: How to
What do your tables, models and controllers look like?
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of gearvOsh
Sent: Saturday, December 27, 2008 7:48 PM
To: CakePHP
Subject: How would I write this query
Im a bit new to the model s
set('data_for_element', $some_data);
$this->render('/elements/my_elmenet');
On Dec 27, 10:03 pm, Steven Wright wrote:
> I may have partially solved this using Ajax. But now I have a
> question. How do I get the content of an element in side of my model
> to pa
I may have partially solved this using Ajax. But now I have a question. How
do I get the content of an element in side of my model to pass back to the
view?
$this->set('mydivcontent', SOME ELEMENT); // somehow get the content for the
element here?
Thanks.
-Original Message-
From:
You are correct the code is not exactly correct. However the passing of the
ID is not the root of my problem. Figuring out how to call the correct
action and where that action should be located is where I am stuck.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@goog
Thanks for all the hard work, its much appreciated.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of teknoid
Sent: Friday, December 26, 2008 12:04 PM
To: CakePHP
Subject: Re: the Gift of 1.2 Final
Congrats, guys!
Really proud of all of
I would not store them in the same table. Store the common fields in one
table and then use two other table to store the user type specific fields.
Why do you want to store all the information in one table?
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups
Ahh I figured out thanks to teknoid. I had forgotten to put the ID of the
recipe in a hidden field in the edit form. Check out this excellent post
from teknoid.
http://teknoid.wordpress.com/2008/08/01/practical-use-of-saveall-part-1-work
ing-with-multiple-models/#comment-909
-Original Mes
save
On 24 dic, 10:32, Steven Wright wrote:
> What does the 0 do?
Make it work :)
Seriously, you can add multiple items in this fashion, such as
Patrimonio.1.tipo, Patrimonio.2.tipo, etc., and they'll be saved in sequence
from a single form.
However, I doubt that this is the problem, I
Thank you very much.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Adriano Varoli Piazza
Sent: Wednesday, December 24, 2008 8:05 AM
To: CakePHP
Subject: Re: Saving Multiple Models in one save
On 24 dic, 10:32, Steven Wright wrote
What does the 0 do?
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Adriano Varoli Piazza
Sent: Wednesday, December 24, 2008 7:26 AM
To: CakePHP
Subject: Re: Saving Multiple Models in one save
In a similar situation, my add view loo
What URL are you using?
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of vikas
Sent: Monday, December 22, 2008 4:29 AM
To: CakePHP
Subject: problem with tablenames
hello all
I want to know about table's naming convention.
I have tab
this out for more information:
http://book.cakephp.org/view/329/Getting-Cake
Steven Wright
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of mona
Sent: Saturday, December 20, 2008 10:10 PM
To: CakePHP
Subject: how to install
Daniel,
Thanks for the observant eye.
Steve
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Daniel Hofstetter
Sent: Sunday, December 21, 2008 7:30 AM
To: CakePHP
Subject: Re: Getting Started
Hi,
> I am having some problems with my c
54 matches
Mail list logo