Friday, December 30, 2011

Re: Tree Helper Cake 2.0

in main view for some action:

$options = array(
'model' => 'Aco',
'plugin' => 'user',
'element' => 'permission'
);
print $this->Tree->generate($results, $options);


in Element:

in $data variable you have array for each result :)


$results array:

  Array (     [0] => Array         (             [Aco] => Array                 (                     [alias] => AclExtras                     [id] => 225                     [lft] => 2                     [rght] => 3                 )          )      [1] => Array         (             [Aco] => Array                 (                     [alias] => Block                     [id] => 226                     [lft] => 4                     [rght] => 9                 )          )      [2] => Array         (             [Aco] => Array                 (                     [alias] => Blocks                     [id] => 227                     [lft] => 5                     [rght] => 8                 )          )      [3] => Array         (             [Aco] => Array                 (                     [alias] => index2                     [id] => 228                     [lft] => 6                     [rght] => 7                 )          ) 
etc.

--
Lep pozdrav, Tilen Majerle



2011/12/30 Waterschaats <jschoonderbeek@gmail.com>
Serieusly? I've tried and didn't get it to work.
Can you give me an example of the model and controller code you're
using?

Thanks, Dirck

On 30 dec, 09:45, Tilen Majerle <tilen.maje...@gmail.com> wrote:
> http://www.megaupload.com/?d=0UI55OY3
>
> This works for me in 2.0 :)
> --
> Lep pozdrav, Tilen Majerlehttp://majerle.eu
>
> 2011/12/30 gimmebucks <sapew...@gmail.com>
>
>
>
>
>
>
>
> > I'm looking for it too(2.0).. currently i did it manually (nested
> > loop) and find out that it's quicker than using helpers (1.3)
>
> > On Dec 29, 6:45 pm, Waterschaats <jschoonderb...@gmail.com> wrote:
> > > Is there already a Tree Helper for Cakephp 2.0. I need it to generate
> > > unordered lists.
>
> > > Thanks,
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com For more options, visit this group
> > athttp://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Tree Helper Cake 2.0

Serieusly? I've tried and didn't get it to work.
Can you give me an example of the model and controller code you're
using?

Thanks, Dirck

On 30 dec, 09:45, Tilen Majerle <tilen.maje...@gmail.com> wrote:
> http://www.megaupload.com/?d=0UI55OY3
>
> This works for me in 2.0 :)
> --
> Lep pozdrav, Tilen Majerlehttp://majerle.eu
>
> 2011/12/30 gimmebucks <sapew...@gmail.com>
>
>
>
>
>
>
>
> > I'm looking for it too(2.0).. currently i did it manually (nested
> > loop) and find out that it's quicker than using helpers (1.3)
>
> > On Dec 29, 6:45 pm, Waterschaats <jschoonderb...@gmail.com> wrote:
> > > Is there already a Tree Helper for Cakephp 2.0. I need it to generate
> > > unordered lists.
>
> > > Thanks,
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com For more options, visit this group
> > athttp://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Tree Helper Cake 2.0

Serieusly? I've tried and didn't get it to work.
Can you give me an example of the model and controller code you're using?

Thanks, Dirck


On Fri, Dec 30, 2011 at 9:45 AM, Tilen Majerle <tilen.majerle@gmail.com> wrote:
http://www.megaupload.com/?d=0UI55OY3 

This works for me in 2.0 :)
--
Lep pozdrav, Tilen Majerle



2011/12/30 gimmebucks <sapewady@gmail.com>
I'm looking for it too(2.0).. currently i did it manually (nested
loop) and find out that it's quicker than using helpers (1.3)

On Dec 29, 6:45 pm, Waterschaats <jschoonderb...@gmail.com> wrote:
> Is there already a Tree Helper for Cakephp 2.0. I need it to generate
> unordered lists.
>
> Thanks,

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Cake 1.3.11: Wrong singular of 'encounter_foes'

I just opened a ticket for this, thanks.

On 29 Dez., 11:37, euromark <dereurom...@googlemail.com> wrote:
> if you feel like this is a bug in cake, you can open a ticket for it:http://cakephp.lighthouseapp.com/projects/42648/tickets/
>
> On 29 Dez., 08:57, Jeremy Burns | Class Outfit
>
>
>
>
>
>
>
> <jeremybu...@classoutfit.com> wrote:
> >http://book.cakephp.org/view/953/Inflections
>
> > Jeremy Burns
> > Class Outfit
>
> >http://www.classoutfit.com
>
> > On 28 Dec 2011, at 13:06, Zaphod wrote:
>
> > > Hi there,
>
> > > I think there's a bug in 1.3.11 which converts a link of '/
> > > encounter_foes' to the singular form 'encounter_fo' to get to the
> > > model.
> > > I did some research and found that line 123 of inflector.php is
> > > responsible:
> > > '/(o)es$/i' => '\1',
>
> > > I commented it out and it worked now, but I'm not sure what for this
> > > line was? Truely english is not my mother tongue.
>
> > > Have a nice day
> > > - Zaphod -
>
> > > --
> > > Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.org
> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp others with their CakePHP related questions.
>
> > > To unsubscribe from this group, send email to
> > > cake-php+unsubscribe@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: How to "custom belongsto" in CakePHP 2?

Any way?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Tree Helper Cake 2.0

http://www.megaupload.com/?d=0UI55OY3 

This works for me in 2.0 :)
--
Lep pozdrav, Tilen Majerle



2011/12/30 gimmebucks <sapewady@gmail.com>
I'm looking for it too(2.0).. currently i did it manually (nested
loop) and find out that it's quicker than using helpers (1.3)

On Dec 29, 6:45 pm, Waterschaats <jschoonderb...@gmail.com> wrote:
> Is there already a Tree Helper for Cakephp 2.0. I need it to generate
> unordered lists.
>
> Thanks,

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Thursday, December 29, 2011

ldap datasource and LdapAuth componentes

So I started porting the LdapDatasource and auth components today.
So far I got hobbled together a mostly working system
https://github.com/analogrithems/idbroker/tree/dev_cake2.0 but I
notice that the datasource interface has changed a lot in this
version.

for the listSources function I see from the relational databases it
looks like it returns all the names of the tables in the database. In
Ldap you don't really have tables, you only have dn's which are kinda
like nodes/leafs. Any recommendation for what I should return here?

for the describe i'm more or less in the same boat. Should I just
return the schema definition of all the objectclass at a particular
point in the tree?

I understand that I don't technically have to implement these but what
is the consequence if I don't?


If anyone has experience working on datasources in 2.0 and would find
offering a little help, please let me know.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php