Re: acl.php : Call to undefined function uses()
Works perfectly, thanks Stonez. Looks like the IMB tutorial is wrong. --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: acl.php : Call to undefined function uses()
On Mar 27, 2008, at 2:52 PM, jamest_amr wrote: Works perfectly, thanks Stonez. Looks like the IMB tutorial is wrong. That accursed International Maritime Bureau is always posting outdated CakePHP tutes. :( -- John --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: acl.php : Call to undefined function uses()
Try: cake acl create aro 0 null Users it's not acl.php. it's acl Stonez --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: acl.php : Call to undefined function uses()
I forgot to mention, you have to change this code below, before you issue the command: cake acl create aro 0 null Dealers \cake\cake\libs\model\datasources\db_source.php in line 29 change uses('set') into uses('set','string') --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: acl.php fatal error
Ok, I solve it. I use the SQL query in the acl.sql file. On 30 Mag, 12:20, KoD [EMAIL PROTECTED] wrote: Hi, when I run php acl.php initdb php return the error: PHP Fatal error: Allowed memory size of 1342177228 bytes exhausted (tried to allocate 786432 bytes) in C:\web\cake\libs\session.php on line 597 Someone know why? --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: acl.php initdb doesn't work in 1.1.14.4797
Looks like this is https://trac.cakephp.org/ticket/2370 I made the edit described there and now it seems to work ok. I'd still appreciate any comments about how I could get hold of an older version (if I find it's needed) as working with such a recent release for this particular work makes me very nervous! On Apr 11, 10:47 pm, Damien [EMAIL PROTECTED] wrote: Hi, I'm just getting to grips with CakePHP but definitely like what I see. I'm currently following the IBM tutorial series here -http://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake1.html I'm trying to use the php acl.php initdb command to create the ACL tables in my database, but when I execute this command I get no output - just returned to the command prompt. Interestingly, if I use the php acl.php help command that does give me output - anything else (including commands that aren't defined) don't give me any output at all. If it makes any difference, I'm using MySQL 5.0.27, and PHP 5.2.0. Any idea what's up? Also, I can't find any other versions of CakePHP besides the 1.2 alpha and 1.1.14.4797 ones displayed on the homepage... aren't there any others available for download? I'd prefer to use an older version which works for the moment as I'm sure I'll create enough problems for myself without cake bugs creeping in too? --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: acl.php initdb doesn't work in 1.1.14.4797
Looks like this is https://trac.cakephp.org/ticket/2370 I made the edit described there and now it seems to work ok. I'd still appreciate any comments about how I could get hold of an older version (if I find it's needed) as working with such a recent release for this particular work makes me very nervous! On Apr 11, 10:47 pm, Damien [EMAIL PROTECTED] wrote: Hi, I'm just getting to grips with CakePHP but definitely like what I see. I'm currently following the IBM tutorial series here -http://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake1.html I'm trying to use the php acl.php initdb command to create the ACL tables in my database, but when I execute this command I get no output - just returned to the command prompt. Interestingly, if I use the php acl.php help command that does give me output - anything else (including commands that aren't defined) don't give me any output at all. If it makes any difference, I'm using MySQL 5.0.27, and PHP 5.2.0. Any idea what's up? Also, I can't find any other versions of CakePHP besides the 1.2 alpha and 1.1.14.4797 ones displayed on the homepage... aren't there any others available for download? I'd prefer to use an older version which works for the moment as I'm sure I'll create enough problems for myself without cake bugs creeping in too? --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: acl.php
Have the same problem, when using solution from bakery (http:// bakery.cakephp.org/articles/view/176). Everything goes fine until I have to get something out from db. Anyone? Running on cake 1.1.12.4205 Thanks in advance --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: acl.php
@Daniel That has not fixed the problem for me. I have now gotten the fix for the errors, the initdb call does not work yet though. If I execute php acl.php initdb or php-cgi acl.php initdb with a valid database connection in app no tables are created. So I just executed the queries manually to create the tabes and could then work with the application. One can find those queries in app\config\sql\db_acl.sql. @Joe I also noticed that. For example, php acl.php view aco -app blabla does not work: Wrong number of parameters: 3. I had to change the app name in acl.php itself in line 36. Then everything worked fine. Another thing that is not good is that php acl.php help does not work when the database tables are not created yet. So you cannot find out from the help that you need to call initdb, which doesn't work. :) --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: acl.php
I'm having exactly the same problem -- I'm running 1.1.11.4064, and I have the fixes in from trunk for acl.php and error.php to stop those errors. My installation is set up so that multiple apps share a single cake folder, and I wonder if that's the problem. I'm wondering if acl.php doesn't deal correctly with the -app switch right now or something. bake.php doesn't seem to have any trouble with it. --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: acl.php
Try executing 'php-cgi' or 'php5-cgi' instead of php. That solved the problem for me. Dan On Dec 6, 7:15 am, Falagar [EMAIL PROTECTED] wrote: Hi, I tried to use the ACL example from the manual and ran into problems. I have 1.1.11.4064 installed, the database connection is set up and I have successfully baked stuff with bake.php. When running php acl.php initdb -app blabla from /cake/scripts the following error occurs: Fatal error: Class 'Configure' not found in C:\www\xampp\htdocs\cake\cake\libs\m odel\datasources\dbo_source.php on line 84 I added the following lines in acl.php in a futile attempt to fix it: require ('cake'.DS.'dispatcher.php'); require ('cake'.DS.'libs'.DS.'configure.php'); and the errors go away, however, now I get HTML code back telling me this (abridged): h1Missing Database Table/h1 p class=errorNo Database table for model Aro (expected aros), create it first./p pspan class=noticestrongNotice:/strong If you want to customize this e rror message, create blabla\views/errors/missing_table.thtml./span/p I looked a little bit further into the script but got lost. The $command variable is set to 'initdb' correctly, but the switch statement is never reached. Nor is the line: if (ACL_CLASSNAME != 'DB_ACL'){. But isn't the whole point of initdb to create those tables in the database? Or am I just totally misunderstanding something? Any help is greatly appreciated. Mike --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---