Re: ACL - Error messages after adding new user

2013-11-25 Thread thebeardman
Ok, I've found my mistake.
I created the Aros, Acos tables before using the cake bake command. So when 
I used the AclBehavior, it was trying to use the node() function from the 
Aro's class autogenerated by Cake bake command, not the one from the 
AclBehavior.

I needed a good night sleep to finally being able to see this :/

Le dimanche 24 novembre 2013 16:20:45 UTC+1, thebeardman a écrit :
>
> Hi,
>
> I'm using CakePHP 2.4.2 and I followed the tuto to use the core Acl 
> behavior.
> I am able to create an usergroup and its Aros correctly.
> However when I'm trying to add a new user, the user is correctly inserted 
> in the User table but the Aro's not.
> I'm having the same issue as this one : 
> https://groups.google.com/forum/#!msg/cake-php/J964MBrQJ9A/_CXWk0BsSVkJbut 
> because it is a bit old, I thought I should open a new one.
>
> Here my User Model : 
> http://pastebin.com/pGc1U7S8
> Here the errors I have when trying to add a new user: 
> http://pastebin.com/UUDnxwsc
>
> As far as I understand the Acl behavior, it's like the AclBehavior object 
> never call the Aro->node() function.
>
> If I return null directly in the User model parentNode() function, it is 
> working but the I don't have the linked with the user's usergroup.
>
> How can I make it work?
>
> Thank for any advices.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Ordering of block content across view types

2013-11-25 Thread Reuben
Gah, just realised that I don't add my layout scripts to the scripts block, 
so I imagine if I did, the order would be whacky.

On Tuesday, 26 November 2013 16:21:50 UTC+10, Reuben wrote:
>
> Hi all
>
> How does CakePHP know to put block content in the right order, for block 
> content generated by different view types?
>
> For example, you may add scripts in the layout, and you may add scripts in 
> the view.  When the scripts block is rendered, layout scripts will appear 
> before view scripts, even though the view is actually rendered before the 
> layout.
>
> I'm toying with a helper to assist with deferred loading, as described 
> here : 
> https://developers.google.com/speed/docs/best-practices/payload#DeferLoadingJS
>
> So, I'm doing a DeferJsLoadHelper that extends the HtmlHelper.  It 
> overrides script() to add the url to a list, and then I have a 
> deferredBlock() that will create the script as seen in the link, though 
> creating multiple script elements and appending them to the document.body.
>
> However, scripts in my view are getting added to the top of the list, 
> which is an issue, because the view scripts are dependent on the layout 
> scripts getting loaded first (a jQuery dependency).
>
> Somehow HtmlHelper->script() and css() manages to get it right, and I just 
> can't see how it's doing it.
>
> Regards
> Reuben Helms
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Ordering of block content across view types

2013-11-25 Thread Reuben
Hi all

How does CakePHP know to put block content in the right order, for block 
content generated by different view types?

For example, you may add scripts in the layout, and you may add scripts in 
the view.  When the scripts block is rendered, layout scripts will appear 
before view scripts, even though the view is actually rendered before the 
layout.

I'm toying with a helper to assist with deferred loading, as described here 
: 
https://developers.google.com/speed/docs/best-practices/payload#DeferLoadingJS

So, I'm doing a DeferJsLoadHelper that extends the HtmlHelper.  It 
overrides script() to add the url to a list, and then I have a 
deferredBlock() that will create the script as seen in the link, though 
creating multiple script elements and appending them to the document.body.

However, scripts in my view are getting added to the top of the list, which 
is an issue, because the view scripts are dependent on the layout scripts 
getting loaded first (a jQuery dependency).

Somehow HtmlHelper->script() and css() manages to get it right, and I just 
can't see how it's doing it.

Regards
Reuben Helms

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


CakeDC Search $filterArgs

2013-11-25 Thread Charles Blackwell
Can someone explain to me the filterArgs property? Is it like a pre-search 
filter? Am I restricting what users can search for?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: CakePdf - How To Start?

2013-11-25 Thread Mohammad Ashfaq

For Compelete help: 

http://rapidsol.blogspot.com/2013/11/cakephp-email-with-pdf-attachment-and.html



On Friday, August 3, 2012 10:03:11 AM UTC+5, elogic wrote:
>
> I have just downloaded and installed CakePdf - 
> https://github.com/ceeram/CakePdf
>
> I don't understand how to get a sample PDF running. Anything will do, i.e. 
> hello world, once I get this going then I can look into generating things 
> further.
>
> Thanks.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Error: Index.phpController could not be found

2013-11-25 Thread Yvonne Liu
 I got this error at very beginning. I found out it is just because I 
forgot https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Cake PHP displaying values from paginate() in view - basic question

2013-11-25 Thread Sercan Dağlı
Write pr($users); in php tags top of file see accessible datas. 

İf user and post models dependent and if you want access Posts like 
$users['Post'] change $this->User->recursive = 1;

If its 0 this code get only users tables datas.



-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.