Skip to main content

Posts

Showing posts from December, 2016

Yii2 Reference : php.exe win32 invalid application error while installing composer

php.exe win32 invalid application error while installing composer solution ========= composer create-project --stability=dev --prefer-dist yiisoft/yii2-app-basic C:\xampp\htdocs\splp ------------------- Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation.  All rights reserved. C:\Users\cda>cd C:\xampp\php C:\xampp\php>composer create-project --stability=dev --prefer-dist yiisoft/yii2- app-basic C:\xampp\htdocs\splp Installing yiisoft/yii2-app-basic (dev-master ebfe2aec0ca05aa3e27c85c10f6bb6e7f8 c83253)   [InvalidArgumentException]   Project directory C:/xampp/htdocs/splp/ is not empty. create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--r epository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no -custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vc s] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<vers ion>]

Yii2 Reference : How to clearcache composer - using cmd

Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation.  All rights reserved. C:\Users\cda>cd C://xampp/htdocs/splp C:\xampp\htdocs\splp>composer config cache-dir C:/Users/cda/AppData/Local/Composer C:\xampp\htdocs\splp>composer flush-cache   [Symfony\Component\Console\Exception\CommandNotFoundException]   Command "flush-cache" is not defined. C:\xampp\htdocs\splp>composer clearcache Clearing cache (cache-dir): C:\Users\cda\AppData\Local\Composer Clearing cache (cache-files-dir): C:\Users\cda\AppData\Local\Composer \files Clearing cache (cache-repo-dir): C:\Users\cda\AppData\Local\Composer\ repo Cache directory does not exist (cache-vcs-dir): All caches cleared. C:\xampp\htdocs\splp>composer update Loading composer repositories with package information Updating dependencies (including require-dev)

Yii2 Reference : PHP Notice - yii\base\ErrorException Undefined variable: sideMenuId

Kalo keluar error ni.... Solution: try comment error_reporting dalam php.ini ;error_reporting=E_ALL & ~E_DEPRECATED & ~E_NOTICE