Re: ACL warning while update user data
Hi, you have probably not added an ARO with 'model' = 'Group' and 'foreign_key' = 3. $aro = new Aro(); $aro-create(array('parent_id' = null, 'alias' = 'groups')); $aro-save(); $aro-create(array('model' = 'Group', 'foreign_key' = 1, 'parent_id' = 1, 'alias' = 'Banned')); $aro-save(); For an example. On Mar 24, 9:44 pm, baur79 bau...@gmail.com wrote: Hi, i have weird warning in 2.1 while i try to function change password for user current user already belong to Group.3 there is no problem with logging, (ACL working fine) AclNode::node() - Couldn#039;t find Aco node identified by Array ( [Aco0.model] = Group [Aco0.foreign_key] = 3 ) Error: An Internal Error Has Occurred. Stack Trace CORE\Cake\Model\Behavior\AclBehavior.php line 88 → AclNode-node(array) CORE\Cake\Model\Behavior\AclBehavior.php line 106 → AclBehavior-node(User, array, string) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Disable create new aro item for user while create new user (as requester)
Hi, sorry if I'm telling you something you are already aware of but the creation of AROs is done by the ACL behavior. Maybe if you want to disable this create temporarily you can do: $actsAs = $this-User-actsAs; $this-User-actsAs = null; $this-User-save(); $this-User-actsAs = $actsAs; from your controller if you want to disable the ARO creation selectively. If you want to disable it completely, simply don't add the ACL behavior to your user model. On Mar 24, 4:34 pm, baur79 bau...@gmail.com wrote: Hi, i have the working ACL cakephp app (group based ACL) i have users in group and make them ACL group-based every time a register new user it creates new ARO for user how can disable to creation in aro table, cause it make the trash rows (60 000 user = 60 rows) user model public $actsAs = array('Acl' = array('type' = 'requester')); group model public $actsAs = array('Acl' = array('type' = 'requester')); thanks in advance -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: [ACL] Disable create new aro item for user while create new user (as requester)
Use bindNode in the user model to return it's group, there is information about group only acl in the cake book. I use roles instead of groups, so in my case it looks like: function bindNode($user) { return array('model' = 'Role', 'foreign_key' = $user['User']['role_id']); } El sábado 24 de marzo de 2012 12:34:02 UTC+1, baur79 escribió: Hi, i have the working ACL cakephp app (group based ACL) i have users in group and make them ACL group-based every time a register new user it creates new ARO for user how can disable to creation in aro table, cause it make the trash rows (60 000 user = 60 rows) user model public $actsAs = array('Acl' = array('type' = 'requester')); group model public $actsAs = array('Acl' = array('type' = 'requester')); thanks in advance -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CakeTrap. A HTML5 CakePHP Bootstrap
haha yeah, i need to review this name ... On Thursday, March 22, 2012 7:11:08 AM UTC-3, Hugo Dias wrote: Hey guys. I just created a very basic Html5 Bootstrap for CakepPHP 2.1.x with HTML5 Boilerplate, RequireJS, Modernizr and Twitter bootstrap. Already have a auth system too. Features Front-end 1. HTML5 Boilerplate 2. RequireJS 3. Modernizr 4. Twitter Bootstrap Back-end 1. CakePHP 2.0.x Security Authentication 2. Simple users register Its OpenSource and its Live on Github. Here is the link: https://github.com/hugodias/caketraphttps://github.com/hugodias/caketrap -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CakeTrap. A HTML5 CakePHP Bootstrap
Done. Cake*S*trap its LIVE ! https://github.com/hugodias/cakeStrap -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
read filename of current view file in pages
Dear all I'm doing my website multilingual. Now I'm working on the pages handling. Most of them works fine. If somebody calls www.mydomain/pages/about_us (or www.mydomain/ita/pages/about_us) then I want (in the AppController) to read the name of about_us. In this case it's about_us.ctp in the pages folder. I want to create a switch and have to ask which page it is. Then I can check if the file exists in the exact folder (ex. pages/ita/about_us.ctp) How can I get the filename? I tried to do this: $this-action, but the action is display, so I need another solution. Any ideas? Thank you very much. Ivo -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Convert the content of a form from Markdown to HTML
Hi ! In my app I have a simple form : div class='centered'h1 style=margin-bottom: 20px;Add an article/h1/div ?php echo $this-Form-create('Post', array( 'class' = 'form', 'inputDefaults' = array( 'div' = 'control-group', 'label' = false, 'between' = 'div class=controls', 'after' = '/div', 'error' = array('attributes' = array('wrap' = 'div', 'class' = 'alert alert-error')) ) )); echo $this-Form-input('title',array( 'style' = 'width:490px', 'before' = 'span class = \'control-label\'Title/span')); echo $this-Form-input('body',array( 'style' = 'width:490px', 'rows' = '15', 'placeholder' = 'pPlease use HTML syntax/p', 'before' = 'span class = \'control-label\'Content/span')); echo $this-Form-input('format', array( 'options' = array('standard' = 'Standard post', 'link' = 'Link post'))); echo (input type='submit' class='btn' value='Publish'); ? a class=btn btn-danger href=?php echo $this-Html-url('/'); ?Cancel/a I want the user to be able to enter body as markdown syntax, but to be converted to html and stored in the database. I've downloaded it from http://michelf.com/projects/php-markdown/ and the help file says : include_once markdown.php; $my_html = Markdown($my_text); So I guess I have to use : App::import('Vendor', 'markdown/markdown'); But where do I put this and how can I change my form so only the body input area is converted from Markdown to html ? Thanks a lot ! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Where is this CSS?
I want to change some CSS: border: 2px inset; ...to: border: 0px; ...but when I look for the location Google chrome says it's in user agent stylesheet not in cake.generic.css. How do I change this CSS? 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
How can I paginate data from different database's table in cakephp?
I have two database users and magento. magento is reside at remote machine in LAN. and users is reside at my local machine. connection between them and fetching data from that magento database is working fine but I want to do pagination on magento's table data. simple displaying it is done, but for pagination we require model name, and how can i have model of other database?? // in controller action $this-Vendor-changeDataSource('vsdatabase'); if($this-changeDbSource('vsdatabase')) { $magento_data = $this-Vendor-query(SELECT * from admin_user); $this-set('products',$magento_data); } and changeDataSource($newdb) is defined in model file and changeDbSource($database='default') in controller so how can I solve my problem with pagination? I have completed fetching data without pagination. or any other option to do this? 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Add-on Domain w/ Cakephp
Nice done, Adam Royle and cjsharp1 :) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CakeTrap. A HTML5 CakePHP Bootstrap
glad to hear that :) great work - keep it up Am Sonntag, 25. März 2012 16:13:40 UTC+2 schrieb Hugo Dias: Done. Cake*S*trap its LIVE ! https://github.com/hugodias/cakeStraphttps://github.com/hugodias/cakeStrap -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Where is this CSS?
If you want to use your own layout you must add a file called default.ctp into layouts folder (inside your apps View folder). This will override cakes default layout, you'll have to setup your default layout though. Then you can define your own css stylesheets, add them into the css folder of your webroot. Then inside your views you can echo $this-Html-css(array('mycssstyle')); and it will format it correctly and link to the correct css file in your webroot css folder. On Sunday, March 25, 2012 11:22:51 AM UTC-7, Daniel wrote: I want to change some CSS: border: 2px inset; ...to: border: 0px; ...but when I look for the location Google chrome says it's in user agent stylesheet not in cake.generic.css. How do I change this CSS? 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
RSS converting to entities in Cake 2.1
Hello, Is there any way to disable converting text (cyrillic) to html entities in RSS helper? That's really bad default behavior. Thanks, Sergei. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php