You would still want controller code in place for non-JS clients where
the onclick wouldn't fire.
On Mar 15, 4:35 pm, "francky06l" <[EMAIL PROTECTED]> wrote:
> you could even use the aboce and add an "onClik" to redirect where
> you want without submitting at all the form.
>
> On Mar 15, 10:22 p
This overrides built-in validates and allows you to pass an array of
field names that you want to check. Pretty much like the one above but
I didn't like how that one permanently changed the fields that were
set for model->validate. Bonus would be to make it so you could change
the rules by passin
owever and not
use this for many small strings in between PHP code as multiple
context switches between PHP and plain text will ebb away at the
performance gained by not having PHP print the text via one of it's
functions or constructs."
On Mar 2, 1:20 am, "scragz" <[EMAIL PR
http://ilia.ws/archives/12-PHP-Optimization-Tricks.html
On Mar 1, 8:39 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 3/2/07, mozart_ar <[EMAIL PROTECTED]> wrote:
>
> > This would
> > help to the performance of cakephp, correct? Why the script bake.php
> > makes the opposite?
>
> Did you
I don't have any experience with phpGacl. How hard do you think it
would be to get it using the existing Cake DB connection (for
performance reasons)?
On Feb 28, 4:16 pm, "Mariano Iglesias" <[EMAIL PROTECTED]>
wrote:
> Update: still working on this (component is already over 900 lines,
> includin
Includes with parts of layouts are elements. Other way is probably
better though.
On Feb 28, 1:49 pm, "phirschybar" <[EMAIL PROTECTED]> wrote:
> scragz: that sounds silly unless there is a slick way of doing
> 'includes' with parts of layouts. In your case I woul
Make multiple layouts and switch between them in the controller, $this-
>layout = 'no_thingy';
On Feb 28, 11:44 am, "phirschybar" <[EMAIL PROTECTED]> wrote:
> Hey all..
>
> What if I have an element and I want to switch it on for some pages
> and off for others?
>
> I could easily pass it some da
The 2nd argument is the parent.
On Feb 23, 3:39 pm, "josoroma" <[EMAIL PROTECTED]> wrote:
> I was wondering how to create parent groups or child groups using
> acl.php script, for example, i just used "php acl.php initdb" and
> every table was created well. Then i used:
> php acl.php create ar
I'm having some issues getting ACL working in the 1.2 branch. I think
I'm finally pretty close and was wondering how to properly save a tree
model. I have, so far:
$acl->Aro->create(array('model' => 'Role', 'foreign_key' => 1,
'parent_id' => 0, 'alias' => 'foo'));
$acl->Aro->save();
Outputs:
1