Yep, thats what I ended up doing. Thanks for the help.
On Wed, Jun 10, 2009 at 11:46 AM, rich...@home richardath...@gmail.comwrote:
or alternatively (not tested, may not work), create a subscribers
folder in elements:
app/
views/
elements/
subscribers/
Thank you sir.
On Wed, Jun 10, 2009 at 3:15 PM, Andreas andreasderk...@arcor.de 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);
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
.
On Tue, Mar 3, 2009 at 11:42 PM, Steven Wright rhythmicde...@gmail.com
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
call
$this-setAction('view',
$user_id) instead of redirecting.
On Tue, Mar 3, 2009 at 11:42 PM, Steven Wright rhythmicde...@gmail.com
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
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:
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
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
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
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
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
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',
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:
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,
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.
.
As 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 rhythmicde...@gmail.com
wrote:
Hi Brian thanks
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 rhythmicde...@gmail.com
wrote:
Hi Brian thanks for writing back.
The ingredient_lists table is where the ingredient
$this-Recipe-recursive is set to.
On Mon, Jan 19, 2009 at 4:34 PM, Steven Wright rhythmicde...@gmail.com
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 Recipe
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
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
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,
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
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
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
: cake-php@googlegroups.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 rhythmicde...@gmail.com
wrote:
Actually this works in place
-...@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 rhythmicde...@gmail.com
wrote:
Thanks for the reply. This is mostly working but there is something I
am still
: 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 rhythmicde...@gmail.com
wrote:
Actually this works in place of the dummy file
$this-autoRender = false;
Yes, that's correct. The reason (AFAIK
AM
To: cake-php@googlegroups.com
Subject: Re: Adding table row with AJAX
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
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
@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, Jan 2, 2009 at 7:45 PM, Steven Wright rhythmicde...@gmail.com
wrote:
Hi Adam,
Thanks for writing back. How
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
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,
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 rhythmicde...@gmail.com 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 essentially a free
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
, Steven Wright rhythmicde...@gmail.com 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' action I get a jQuery error ( 'div is null' '
elem = jQuery.makeArray( div.childNodes ); ') 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 missing.
I tried two different things.
1) If I call the 'edit' action I
with 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 rhythmicde...@gmail.com wrote:
Thanks for the reply. This is mostly working but there is something I
am
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
Try this in your template: title?php echo $title_for_layout?/title
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,
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:
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
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:
('data_for_element', $some_data);
$this-render('/elements/my_elmenet');
On Dec 27, 10:03 pm, Steven Wright rhythmicde...@gmail.com 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 pass back to the view
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
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
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
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
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
save
On 24 dic, 10:32, Steven Wright rhythmicde...@gmail.com 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
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
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
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
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
53 matches
Mail list logo