Skip to content
This repository was archived by the owner on Dec 7, 2019. It is now read-only.
This repository was archived by the owner on Dec 7, 2019. It is now read-only.

Can't create index.phtml when creating controller #65

@ne2da1

Description

@ne2da1

When I try create controller with command zf.php create controller I get following errors

Warning: mkdir(): No such file or directory in C:\OpenServer\domains\zf2.local\ZendSkeletonApplication\vendor\zftool\src\ZFTool\Controller\CreateController.php on line 142

Warning: file_put_contents(./module/test/view/test/index/index.phtml): failed to open stream: No such file or directory in C:\OpenServer\domains\zf2.local\ZendSkeletonApplicatio
n\vendor\zftool\src\ZFTool\Controller\CreateController.php on line 147
There was an error during controller creation.

I've fixed this by adding following string in moduleAction method in ZFTool\Controller\CreateController class:
mkdir("$path/module/$name/view/" . strtolower($name));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions