fat free framework - Error using map in fatfree php -
when putting employee.php class in same directory index.php every thing working fine
index.php:
<?php $f3=require('lib/base.php'); $f3->config('config.ini'); $f3->map('/employee','employee'); $f3->run(); when putting employee.php class under directory, app examle , running following index.php
<?php $f3=require('lib/base.php'); $f3->config('config.ini'); $f3->map('/employee','app\employee'); $f3->run(); i getting error
internal server error fatal error: cannot redeclare class employee • /home/zaky/development/kinder/app/employee.php:2 employee.php:
<?php class employee{ function get() {die("get---");} function post() {die("post---");} function put() {die("put---");} function delete() {die("delete---");} }
Comments
Post a Comment