added "/htdocs/" to webroot tree description
I'm working on a single homed multi MVC application, to simplify my models.
The basic structure is using the web-root for authentication and authorisation purposes, the (custom) session handler will be living in the myfiles directory.
each different "application" has it own 1st level directory under the webroot.
webroot /htdocs/ index.php auth
app_1 /htdocs/1/ index.php functionality x
app_2 /htdocs/2/ index.php functionality y
etc
This is the error message I'm getting when accessing the default tinyMVC test page, which works at level 0.
Error: 0
Message: Unknown controller method 'index.php'
File: <private_path>\tinymvc\myfiles\plugins\tinymvc_controller.php
Line: 58
Trace:
#0 <private_path>\tinymvc\myfiles\TinyMVC.php(120): TinyMVC_Controller->__call('index.php', Array)
#1 <private_path>\tinymvc\myfiles\TinyMVC.php(120): Default_Controller->index.php()
#2 <private_path>\htdocs\m\index.php(41): tmvc->main()
#3 {main}
I can't pin down the reason of this misbehavior yet, could anybody give me directions in backtracing this issue?
I can confirm it is using the correct custom config_application.php, the paths must be correct.
I've got a neat patch for the TinyMVC_ExceptionHandler Class on line 81:
<b>Trace:</b> <br />
<?=str_replace("\n", "<br />\n", $e->getTraceAsString())?><br />