laminas-api-tools / api-tools

Laminas API Tools module for Laminas
https://api-tools.getlaminas.org/documentation
BSD 3-Clause "New" or "Revised" License
37 stars 19 forks source link

php public/index.php returns base path error #82

Closed adarshkhatri closed 3 years ago

adarshkhatri commented 3 years ago

Bug Report

Summary

When I run php public/index.php it returns this error:

Uncaught Laminas\View\Exception\RuntimeException: No base path provided in vendor\laminas\laminas-view\src\Helper\BasePath.php:37

However, running php public/index.php development enable does work.

I have updated laminas-view and laminas-cache to the latest version but no help.

Is this normal behavior?

Current behavior

Throws error. Uncaught Laminas\View\Exception\RuntimeException: No base path provided in vendor\laminas\laminas-view\src\Helper\BasePath.php:37

How to reproduce

Run php public/index.php

Expected behavior

Show the command line tools.

samsonasik commented 3 years ago

This component mostly used via api-tools-skeleton, please follow documentation at https://api-tools.getlaminas.org/documentation/intro/installation .

If the issue persist, please re-create issue at https://github.com/laminas-api-tools/api-tools-skeleton