Wednesday, February 11, 2015

Re: CakePHP 3 Plugin not working (controller file not found)

{
    "name": "cakephp/app",
    "description": "CakePHP skeleton app",
    "homepage": "http://cakephp.org",
    "type": "project",
    "license": "MIT",
    "require": {
        "php": ">=5.4.16",
        "cakephp/cakephp": "3.0.*-dev",
        "mobiledetect/mobiledetectlib": "2.*",
        "cakephp/migrations": "dev-master",
        "mailgun/mailgun-php": "dev-master",
        "twilio/sdk": "dev-master"
    },
    "require-dev": {
        "d11wtq/boris": "1.0.*",
        "cakephp/debug_kit": "3.0.*-dev",
        "cakephp/bake": "dev-master"
    },
    "suggest": {
        "phpunit/phpunit": "Allows automated tests to be run without system-wide install.",
        "cakephp/cakephp-codesniffer": "Allows to check the code against the coding standards used in CakePHP."
    },
    "autoload": {
        "psr-4": {
            "App\\": "src"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "App\\Test\\": "tests",
            "Cake\\Test\\": "./vendor/cakephp/cakephp/tests"
        }
    },
    "scripts": {
        "post-install-cmd": "App\\Console\\Installer::postInstall"
    },
    "minimum-stability" : "dev",
    "prefer-stable": true
}

Thanks!

On Monday, February 9, 2015 at 6:23:14 PM UTC-8, José Lorenzo wrote:
How does your composer.json file look like?

On Sunday, February 8, 2015 at 11:28:58 AM UTC-4:30, HVan wrote:
I followed all the instrucitons, even tried baking a plugin. But each time I reference the plugin (eg. http://localhost/contact_manager/contacts) it says Controller not found. All the files have been created and placed in the proper location. It will say file not found in /plugins/ContactManager/src/Controller/ContactsController.php and I've tripled checked, of course, that the file exists. I also created the Table file - nada.

It's loading the plugin properly because when I remove, say bootstrap.php inside the plugin, it will say the bootstrap file is not found inside the plugin.

Any ideas?

--
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+unsubscribe@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/d/optout.

No comments: