Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
router.php error
atabak
January 2016
hi
Harro,
what is controller_path in router.php?
i have users module and module have users file in controller
i get "Undefined variable: key" error when use module like this : localhost/dashboard/users
Harro
January 2016
Accepted Answer
controller_path are the URI segments before the controller. With this URI,
/path1/path2/controller/action/parm1/parm2
controller_path would be "path1/path2".
The error was caused because your URI doesn't have any segments at all, which causes the foreach loop to be skipped, and $key not be set.
Just pushed a fix.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
January 2016