Writing array from dynamically generated Select boxes to database.

2014-06-24 Thread Christopher Wilson
I don't quite know what this is called, so I'm having trouble finding a working example. This is what I want: 1. A select/pulldown menu that pulls data from the database. 2. An add button that creates a new menu that is a clone of the original 3. For this to write to the database.

Array Format for Multiple Inserts

2014-06-24 Thread Christopher Wilson
I have a series of Form elements(select) that I create dynamically w/ JS, and I have JS that will change the name so that they will create an array. I can create either *Module.column_id.0* or *Module.0.column_id* and increment the number, but I can't get the multiple elements to write to the

Re: Multi Tenancy / SaaS

2013-02-03 Thread Andrew Wilson
I've got the same issue on a project I'm working on. Any solutions you came up with Dylan? On Monday, August 6, 2012 4:02:15 PM UTC-6, Dylan Jennings wrote: Hello I'm currently building a SaaS application using cakePHP. I've worked with cakePHP before a few times and I'm comfortable with

SQL / PHP Beginner....

2011-08-18 Thread Edmund Wilson
Hi I am trying to make a simple PHP page that queries a MySQL database. There are two tables created by a program (I don't have any control over the creation of these tables) but they both created by the same data source. I was trying to form a FULL JOIN to display data from both tables in one

Tree Behavior problem

2010-02-18 Thread Bill Wilson
I've got a problem with the Tree behavior in an application I'm maintaining. The version of cakephp is 1.2.1.8004. The user wants to move a node that was already created to a node created after the node being moved. After the save is performed the old node has the same lft, rght values as before

Losing Session on Redirect

2009-08-31 Thread Wilson Sheldon
data everytime? I'm on PHP 5.6.5, Cake 1.2.4.8166. Thanks! Wilson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from

Re: Save HABTM, Undefined index: id

2009-08-30 Thread Wilson
Thanks Martin! That works. Not quite sure why, but I've added an 'id' field to my join table. For the multi-saves, there's no error, but nothing is written to the field? Anyhow, I appreciate your help. Wilson On Aug 17, 4:02 am, Martin Westin martin.westin...@gmail.com wrote: Which model

Save HABTM, Undefined index: id

2009-08-16 Thread Wilson Sheldon
with the index on my join table? Thanks, Wilson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email

Re: Containable recursive find problem

2009-06-15 Thread Wilson
Hi Andreas, I'm trying to this same thing, but without success. Do you mind pasting your find logic here? On Jun 12, 9:20 am, Andreas Derksen andreasderk...@arcor.de wrote: Thanks, Works fine! Thought to complicated... :-) Containable behavior is really nice ;-) greets Andreas Martin

$this-layout not working in Production in 8166, but is in 7945

2009-05-25 Thread Wilson Sheldon
? Thanks for any help! Wilson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr

Re: Anyone built a forum system yet?

2009-01-20 Thread Wilson Sheldon
I've 'bridged' a phpBB2 and phpBB3 system successfully on two separate occasions. For phpBB3, you can use the bridge I wrote here. http://bakery.cakephp.org/articles/view/phpbb3-api-bridge And certainly you could extend it to match your ACL, Who's Online and read/unread requirements. Some of

Re: data is one step behind when submitting a form with FCK editor and AJAX

2008-06-11 Thread wilson
Check the Expire headers your server is sending. I had an issue with this causing similar problems. In fact, I had to disable the far future Expires until I could determine a way to apply it to all but the /admin routes. Wilson On Jun 11, 10:18 am, Jonathan Snook [EMAIL PROTECTED] wrote: I'm

RC1 SVN Question

2008-06-09 Thread wilson
? Thanks for your advice! Best, Wilson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Expires Headers and Routes

2008-05-13 Thread wilson
system. Many thanks, Wilson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED

Routes or Template Field?

2008-03-02 Thread wilson
, pages.template = 'clients' 2 Hard-code the possible routes, for example: Router::connect('/clients/*', array('controller' = 'clients', 'action' = 'index')); Just looking for the best practice way of doing this. Thanks! Wilson --~--~-~--~~~---~--~~ You

Reverse Bake?

2008-02-13 Thread wilson
Hi, I heard a developer friend mention once that he heard of CakePHP considering sort of a 'reverse baking' technique, in that the database structure is created automatically from the model relationships. Could anyone verify this? And if true point me to the thread, it sounds very interesting

Re: Changing Kids in HasMany (like an Adoption) . . .

2008-02-10 Thread Ben Wilson
On Feb 10, 2008 4:36 AM, AD7six [EMAIL PROTECTED] wrote: On Feb 10, 3:47 am, Ben Wilson [EMAIL PROTECTED] wrote: I'm not getting this from the documentation, so could somebody point me to an example that shows this? I have a Parent that hasMany Children. I also have children belongsTo

history...

2008-02-09 Thread Ben Wilson
I am storing a row's history in a json_encoded hx field, where each change is a timestamped key. How do I go about putting this behavior in save() so I don't have to do it in every action? -- Ben Wilson Words are the only thing which will last forever Churchill

Re: history...

2008-02-09 Thread Ben Wilson
to use beforeSave, roughly how would I got about it? I mean, what do I need to do before/after the history logic? -- Ben Wilson Words are the only thing which will last forever Churchill --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: history...

2008-02-09 Thread Ben Wilson
($orig['hx'], 1); $key = time(); unset($orig['hx']); $hx[$key] = $orig; $new['hx'] = json_encode($hx); Model::save($new); } However, I don't know the right way to call the parent class that will recognize the model described. -- Ben Wilson Words are the only thing which will last forever

Changing Kids in HasMany (like an Adoption) . . .

2008-02-09 Thread Ben Wilson
I'm not getting this from the documentation, so could somebody point me to an example that shows this? I have a Parent that hasMany Children. I also have children belongsTo Parent. I want to change a handful of Children so they have a different Parent. -- Ben Wilson Words are the only thing

Re: SQL error with ACL ARO

2008-01-31 Thread Ben Wilson
doing wrong? David, you're carping about the same thing I've raised. It seems that the script that creates the database neglects the correct schema. Nobody seems interested in addressing or resolving this. -- Ben Wilson Words are the only thing which will last forever Churchill

cake acl create aco ROOT Members... problem

2008-01-29 Thread Ben Wilson
to CakePHP v1.2.0.6311 beta Console --- Error: Could not find parent node using reference ROOT The table: id object_id alias lft rght 1 NULLROOT1 2 -- Ben Wilson Words are the only thing which will last

Too Much Noise Auth/ACL 1.2

2008-01-28 Thread Ben Wilson
the 1.1 table structure, but nothing that explains 1.2 in a way that clearly makes sense to me. I even tried that ACL Management plugin and threw it away. I need a solution that works vanilla. -- Ben Wilson Words are the only thing which will last forever Churchill [1]: http://wiki.kabturek.info

Auth 1.2 infinite redirect...

2008-01-20 Thread Ben Wilson
is to allow '*', which defeats the purpose. [1]: http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/ -- Ben Wilson Words are the only thing which will last forever Churchill --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Auth in 1.2

2008-01-20 Thread Ben Wilson
is not in the 'allow' list, calls to it result in the loop. $menus = $this-requestAction('menus/getMenus/header'); -- Ben Wilson Words are the only thing which will last forever Churchill --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Auth 1.2 infinite redirect...

2008-01-20 Thread Ben Wilson
On Jan 20, 2008 9:11 AM, Ben Wilson [EMAIL PROTECTED] wrote: Could somebody clue me into why I'm encountering an infinite redirection loop? I'm using the latest Beta 1.2 series. My browser allows cookies. I am following what appears to be a pretty-good tutorial---and have made my users/groups

Re: Auth in 1.2

2008-01-19 Thread Ben Wilson
and your code, I'm getting a blank display on the browser. -- Ben Wilson Words are the only thing which will last forever Churchill --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

Re: Auth in 1.2

2008-01-19 Thread Ben Wilson
On Jan 19, 2008 10:55 PM, Ben Wilson [EMAIL PROTECTED] wrote: On Jan 16, 2008 5:05 PM, Baz [EMAIL PROTECTED] wrote: Yep, Took me a while too. lol Okay, I bit. I'm trying to get authentication/authorization going for a site and am trying your tutorial. Although, I have a table in place

Building an action list bar

2008-01-12 Thread Ben Wilson
that a user can do (e.g. login/logout, view, edit) for display at the top of the page. I figured there would be a short tutorial somewhere, or a ready-baked solution in the tool itself. Would somebody mind pointing me in the right direction? Regards, Ben Wilson

Re: Building an action list bar

2008-01-12 Thread Ben Wilson
posted the solution tried to have it accepted into the core,[2] but was unsuccessful from what I can tell. Ben Wilson [1]: http://bakery.cakephp.org/articles/view/ul-ol-menu-method-for-helpers [2]: https://trac.cakephp.org/ticket/3144 On Jan 12, 2008 12:25 PM, Marcin Domanski [EMAIL PROTECTED] wrote

Exclude Array Item on Save

2007-12-01 Thread wilson
it to not update a field? I'm using the latest 1.2x from the SVN. Many thanks! Wilson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

HTTP_ACCEPT_LANGUAGE and Locale Question

2007-07-13 Thread wilson
'en-us' or 'en-gb' (or any other). Is there another variable set to 'eng' somewhere? Thanks! Wilson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php

Validate one form, multiple models, 1.2

2007-07-11 Thread wilson
in the User model are validated correctly. But the fields from the Photo model aren't validated. Many thanks! Wilson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email

Baked Enum in 1.2?

2007-07-09 Thread wilson
is it included in 1.2? I baked my App to start and it was broken in that, though it had this curious $s variable in the view. I just need a dropdown and set a selected value on render, like a lot of folks I imagine. I can code it myself if need be. Thanks, Wilson

Re: Quick admin routes question

2007-07-08 Thread wilson
Gracias hellbot. W On Jul 8, 7:17 am, Hellbot [EMAIL PROTECTED] wrote: Router::connect('/admin/', array(CAKE_ADMIN = true, 'controller' = 'photos', 'action' = 'index')); 2007/7/8, [EMAIL PROTECTED] [EMAIL PROTECTED]: I need to route '/admin' to '/admin/photos/index' in my routes table.

Re: Quick admin routes question

2007-07-08 Thread wilson
Hmmm. Actually I couldn't get this to work for me. Perhaps, it's because I'm on 1.2x. Anyone else got a way they do this? I'll dig in the source a bit. Thanks, Wilson On Jul 8, 7:17 am, Hellbot [EMAIL PROTECTED] wrote: Router::connect('/admin/', array(CAKE_ADMIN = true, 'controller

Re: Quick admin routes question

2007-07-08 Thread wilson
Ah, got it! Router::connect('/admin', array('controller'='photos','action'='index', CAKE_ADMIN = CAKE_ADMIN)); On 8 Jul, 21:30, wilson [EMAIL PROTECTED] wrote: Hmmm. Actually I couldn't get this to work for me. Perhaps, it's because I'm on 1.2x. Anyone else got a way they do this? I'll

Session Woes

2007-04-03 Thread Kerry Wilson
I am having problems maintaining a session. It seems the domain object I place into session is dropped after a single request ( similar to flash scope )... Login Post Valid ( adds partner to session ) Renders flash redirect message Shows homepage When I am on the home page the partner is

Re: Session Woes

2007-04-03 Thread Kerry Wilson
) { [id]= string(5) 11429 [created]= string(19) 2007-04-25 10:00:00 [modified]= string(19) 2007-04-28 10:00:00 [name]= string(12) Kerry Wilson [email]= string(17) [EMAIL PROTECTED] [password]= string(32) d1e96978c6935ec01d995b1b8e4d8c33 } } 2nd request

Re: Session Woes

2007-04-03 Thread Kerry Wilson
looks like this problem was caused by the firecake helper, wasted a day b/c of firecake. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to