I am very new to both PHP and Phalcon.
I have just setup a win 7 x64 VM with a manual install of Apache2.4, php7.0, MySQL5.7 and Phalcon 3.0.4. Everything does seem to work properly. I can create a project ' test ' with webtools enabled and I can browse to the default site page that says you are now flying with phalcon. The problem is I cannot open the webtools page when I browse to:
https://localhost/test/webtools.php
I get a blank page. The devtools.log has the following error:
php: [ERROR] Uncaught exception: Resource's content for 'https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js' cannot be read in C:\Apache24\htdocs\test\cache\Phalcon_Web_Tools_Views__layouts_webtools.php on line 18
I have checked my config.php and have set the baseUri to
'baseUri' => '/test/',
I have checked the permissions on the test folder to ensure that all groups have full access to the directory.
This is my webtools.php:
use Phalcon\Bootstrap;
include 'webtools.config.php'; include PTOOLSPATH . '/bootstrap/autoload.php';
$bootstrap = new Bootstrap([ 'ptools_path' => PTOOLSPATH, 'ptools_ip' => PTOOLS_IP, 'base_path' => BASE_PATH, ]);
if (APPLICATION_ENV === ENV_TESTING) { return $bootstrap->run(); } else { echo $bootstrap->run(); }
This is my webtools.config.php
defined('PTOOLS_IP') || define('PTOOLS_IP', '192.168.');
defined('BASE_PATH') || define('BASE_PATH', dirname(dirname(FILE)));
defined('APP_PATH') || define('APP_PATH', BASE_PATH . DIRECTORY_SEPARATOR . 'app');
defined('ENV_PRODUCTION') || define('ENV_PRODUCTION', 'production');
defined('ENV_STAGING') || define('ENV_STAGING', 'staging');
defined('ENV_DEVELOPMENT') || define('ENV_DEVELOPMENT', 'development');
defined('ENV_TESTING') || define('ENV_TESTING', 'testing');
defined('APPLICATION_ENV') || define('APPLICATION_ENV', getenv('APPLICATION_ENV') ?: ENV_DEVELOPMENT);
defined('PTOOLSPATH') || define('PTOOLSPATH', 'C:\php-phalcon');