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.
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
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
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
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
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
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
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
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
?
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
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
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
?
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
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
,
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
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
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
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
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
($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
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
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
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
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
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
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
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
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
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
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
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
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
'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
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
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
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.
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
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
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
) {
[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
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
41 matches
Mail list logo