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 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'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
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 we
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 th
thout
losing session 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@g
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 wrote:
> Which model
might be something to do 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 un
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 wrote:
> Thanks, Works fine! Thought to complicated... :-)
> Containable behavior is really nice ;-)
>
> greets
> Andreas
>
> Martin Westin schrieb:
>
>
Is this a bug? Did anything change between 7945 and 8166?
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.
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 t
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 PROT
?
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
clients' admin 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 th
template in the table? For example,
pages.template = 'clients'
2 Hard-code the possible routes, for example:
Router::connect('/clients/*', array('controller' => 'clients',
'action
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 a
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'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
"Word
er (say) 30 days the
history is truncated. Were I 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
--~--~-~--~~--
, $new) {
$hx = json_decode($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.
--
Be
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 for
t; I had the table structure correct. Does anyone have any idea what I
> am 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.
--
shan,
Welcome 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 NULLROOT 1 2
--
Ben Wilson
"Word
s 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://wik
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
> tutor
e the action 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
--~--~-~--~~~---~--
ping 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 bec
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
h the original table 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
; I noticed the individual who 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, Mar
bar that lists all 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 direct
mplish this in your forms? Is there a CakePHP
syntax to tell 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 "Ca
ng' rather than '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
PH
ed 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
ed. So 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.
Than
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.
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/'
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 ro
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 cake-php@googlegroups.c
g(32) "64892a71614760306f6c52f1cb727cca"
}
["partner"]=>
&array(6) {
["id"]=>
string(5) "11429"
["created"]=>
string(19) "2007-04-25 10:00:00"
["modified"]=>
string(19) "20
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 st
41 matches
Mail list logo