Re: Sub templating

2009-06-10 Thread Steven Wright
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/

Re: where did u go?

2009-06-10 Thread Steven Wright
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);

RE: Sub templating

2009-06-10 Thread Steven Wright
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

RE: Brain sprain

2009-03-04 Thread Steven Wright
. 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

RE: Brain sprain

2009-03-04 Thread Steven Wright
$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

RE: Errors in expected table names?

2009-03-03 Thread Steven Wright
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:

RE: Brain sprain

2009-03-03 Thread Steven Wright
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

RE: Brain sprain

2009-03-03 Thread Steven Wright
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

RE: What do you develop in (ide, text editor, etc.)?

2009-03-01 Thread Steven Wright
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

RE: [ask] How to customize CakePHP URL?

2009-02-26 Thread Steven Wright
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

RE: Model Q: HABTM association the right way to go?

2009-02-26 Thread Steven Wright
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

RE: Not using a DB for data

2009-02-25 Thread Steven Wright
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',

RE: Not using a DB for data

2009-02-25 Thread Steven Wright
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:

RE: Relationships - HABTM

2009-01-21 Thread Steven Wright
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,

RE: Relationships - HABTM

2009-01-19 Thread Steven Wright
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.

RE: Relationships - HABTM

2009-01-19 Thread Steven Wright
. 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

RE: Relationships - HABTM

2009-01-19 Thread Steven Wright
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

RE: Relationships - HABTM

2009-01-19 Thread Steven Wright
$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

RE: Automagic Form Fields

2009-01-14 Thread Steven Wright
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

RE: Compliance of HTML output

2009-01-14 Thread Steven Wright
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

RE: Sanitization

2009-01-08 Thread Steven Wright
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,

RE: Sanitization

2009-01-08 Thread Steven Wright
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

RE: AJAX Div moving

2009-01-05 Thread Steven Wright
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

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

2009-01-04 Thread Steven Wright
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

RE: Adding table row with AJAX

2009-01-04 Thread Steven Wright
: 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

RE: Adding table row with AJAX

2009-01-04 Thread Steven Wright
-...@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

RE: Adding table row with AJAX

2009-01-04 Thread Steven Wright
: 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

RE: Adding table row with AJAX

2009-01-04 Thread Steven Wright
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

RE: New Install Does Not Show Graphics

2009-01-04 Thread Steven Wright
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

RE: Adding table row with AJAX

2009-01-03 Thread Steven Wright
@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

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

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,

RE: API

2009-01-03 Thread Steven Wright
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

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: Adding table row with AJAX

2009-01-03 Thread Steven Wright
, 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

RE: Adding table row with AJAX

2009-01-03 Thread Steven Wright
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

RE: Adding table row with AJAX

2009-01-03 Thread Steven Wright
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

RE: Adding table row with AJAX

2009-01-02 Thread Steven Wright
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

RE: How to set title for cakephp pages

2008-12-31 Thread Steven Wright
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,

RE: Controller members

2008-12-31 Thread Steven Wright
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:

RE: I am missing something obvious

2008-12-27 Thread Steven Wright
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

RE: I am missing something obvious

2008-12-27 Thread Steven Wright
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:

RE: I am missing something obvious

2008-12-27 Thread Steven Wright
('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

RE: How would I write this query

2008-12-27 Thread Steven Wright
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

RE: Problem in model designing

2008-12-26 Thread Steven Wright
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

RE: the Gift of 1.2 Final

2008-12-26 Thread Steven Wright
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

RE: Saving Multiple Models in one save

2008-12-24 Thread Steven Wright
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

RE: Saving Multiple Models in one save

2008-12-24 Thread Steven Wright
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

RE: Saving Multiple Models in one save

2008-12-24 Thread 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

RE: Updating multiple models

2008-12-24 Thread Steven Wright
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

RE: problem with tablenames

2008-12-22 Thread Steven Wright
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

RE: Getting Started

2008-12-21 Thread Steven Wright
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

RE: how to install cake php

2008-12-21 Thread Steven Wright
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