codeigniter-twiggy icon indicating copy to clipboard operation
codeigniter-twiggy copied to clipboard

Custom route giving error

Open jcamachott opened this issue 13 years ago • 0 comments

Hi

I tried to use a custom route on my site:

$route['admin/categories/subcategories/(:num)'] = 'admin/categories/$1';

but got this error:

** A PHP Error was encountered

Severity: Notice

Message: Undefined property: Main::$twiggy

Filename: controllers/main.php

Line Number: 15

Fatal error: Call to a member function set() on a non-object in D:\webs\pmsl2.org\webroot\web\CIapp\controllers\main.php on line 15 **

I'm trying to understand why the system would not see the autoload of the spark. Everything works fine if I take off the custom route.

Thanks in advance. J.

jcamachott avatar Nov 13 '12 23:11 jcamachott