Giter VIP home page Giter VIP logo

Comments (11)

markstory avatar markstory commented on May 31, 2024

Have you tried using the 2.0 branch? This should already be done there.

from acl_extras.

CriztianiX avatar CriztianiX commented on May 31, 2024

I have the same problem. I tried using 2.0 branch

from acl_extras.

CriztianiX avatar CriztianiX commented on May 31, 2024

Ok. The solution is:

  1. The folder must be: AclExtras undes plugin direcrory
  2. In bootstrap.php add:
    CakePlugin::load('AclExtras');

thanx to jose_zap

from acl_extras.

 avatar commented on May 31, 2024

I am having the same issue. The plugin is unzipped in app/Plugin/AclExtras and it is being loaded in bootstrap.php and I receive "Error: Class AclExtrasShell could not be loaded." when trying to run.

from acl_extras.

markstory avatar markstory commented on May 31, 2024

Running the shell is a bit different, You need to use cake AclExtras.AclExtras aco_sync for example. I'll update the readme.

from acl_extras.

carmelchas avatar carmelchas commented on May 31, 2024

I am having this problem and I have done everything mentioned before in this thread. Could someone please review the information below and help me figure out how to make it work? I downloaded the source from https://github.com/markstory/acl_extras/tree/2.0 and followed the instructions there. NOTE: The extracted download does not include a file named AclExtrasShell.php. I included the directory listing for the package downloaded below.

Command Output

[root@fedora app]# ./Console/cake AclExtras.AclExtras aco_sync
Error: Shell class AclExtrasShell could not be found.
#0 /opt/cake/lib/Cake/Console/ShellDispatcher.php(167): ShellDispatcher->_getShell('AclExtras.AclEx...')
#1 /opt/cake/lib/Cake/Console/ShellDispatcher.php(69): ShellDispatcher->dispatch()
#2 /opt/cake/app/Console/cake.php(41): ShellDispatcher::run(Array)
#3 {main}

Config File [bootstrap.php]:

'File')); CakePlugin::load('AclExtras'); ... # # Package Directory Listing: [root@fedora app]# ls -altr Plugin/AclExtras/* -rw-r--r--. 1 root wheel 969 Sep 27 07:26 Plugin/AclExtras/README.md Plugin/AclExtras/vendors: total 12 drwxr-xr-x. 2 root wheel 4096 Sep 27 07:26 shells drwxr-xr-x. 3 root wheel 4096 Sep 27 07:26 . drwxr-xr-x. 4 root wheel 4096 Nov 2 16:25 .. Plugin/AclExtras/tests: total 16 -rw-r--r--. 1 root wheel 433 Sep 27 07:26 test_controllers.php drwxr-xr-x. 3 root wheel 4096 Sep 27 07:26 cases drwxr-xr-x. 3 root wheel 4096 Sep 27 07:26 . drwxr-xr-x. 4 root wheel 4096 Nov 2 16:25 .. [root@fedora app]#

from acl_extras.

carmelchas avatar carmelchas commented on May 31, 2024

I am having this problem and I have done everything mentioned before in this thread. Could someone please review the information below and help me figure out how to make it work? I downloaded the source from https://github.com/markstory/acl_extras/tree/2.0 and followed the instructions there. NOTE: The extracted download does not include a file named AclExtrasShell.php. I included the directory listing for the package downloaded below.

Command Output

[root@fedora app]# ./Console/cake AclExtras.AclExtras aco_sync
Error: Shell class AclExtrasShell could not be found.
#0 /opt/cake/lib/Cake/Console/ShellDispatcher.php(167): ShellDispatcher->_getShell('AclExtras.AclEx...')
#1 /opt/cake/lib/Cake/Console/ShellDispatcher.php(69): ShellDispatcher->dispatch()
#2 /opt/cake/app/Console/cake.php(41): ShellDispatcher::run(Array)
#3 {main}

Config File [bootstrap.php]:

'File')); CakePlugin::load('AclExtras'); ... # # Package Directory Listing: [root@fedora app]# ls -altr Plugin/AclExtras/* -rw-r--r--. 1 root wheel 969 Sep 27 07:26 Plugin/AclExtras/README.md Plugin/AclExtras/vendors: total 12 drwxr-xr-x. 2 root wheel 4096 Sep 27 07:26 shells drwxr-xr-x. 3 root wheel 4096 Sep 27 07:26 . drwxr-xr-x. 4 root wheel 4096 Nov 2 16:25 .. Plugin/AclExtras/tests: total 16 -rw-r--r--. 1 root wheel 433 Sep 27 07:26 test_controllers.php drwxr-xr-x. 3 root wheel 4096 Sep 27 07:26 cases drwxr-xr-x. 3 root wheel 4096 Sep 27 07:26 . drwxr-xr-x. 4 root wheel 4096 Nov 2 16:25 .. [root@fedora app]#

from acl_extras.

 avatar commented on May 31, 2024

From your app directory when you run ./Console/cake, what is the path to the "core"? If it is not the path of your current app, then you'll need to change that to your current path. You may need to modify your environment variables to do this.

from acl_extras.

markstory avatar markstory commented on May 31, 2024

Looks like you have the wrong download. A directory containing vendors, is not the 2.0 version, its the 1.x version. From the code tab, use the branch selector to choose 2.0, before downloading the tar/zip file. Alternatively use git to clone the repo and checkout the correct branch.

from acl_extras.

carmelchas avatar carmelchas commented on May 31, 2024

Thanks. I got the correct downlad now. It was the branch selection.

from acl_extras.

musznik avatar musznik commented on May 31, 2024

if anyone still has problems using absolute path to php.exe, try to use same method
c:\full\path\project\app\Console>cake -app c:\full\path\project\app\ AclExtras.AclExtras aco_sync

from acl_extras.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.