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
Modules?
MaxG
December 2012
Hey Guys,
I try to use modules, but iam a littlebit confused about it.
My Directories look so("APPPATH/modules"):
-admin
--classes
----controller
------admin.php
----model
--lang
--views
The Code of my admin.php:
<?php
namespace Admin;
class Controller_Admin
{
public function action_login()
{
echo "hey guys!";
//return Response::forge(View::forge('welcome/index'));
}
}
When I try to call it via: mydomain.com/admin/admin/login ,
It give me an 404 error.
Could you help me?
Greets!
Harro
December 2012
Accepted Answer
Looks ok.
You've got the modules path configured in your config.php?
MaxG
December 2012
Yes.
It is:
'module_paths' => array(APPPATH.'modules'.DS)
Greets & Thanks!
Harro
December 2012
Accepted Answer
Looks ok too.
No routes that could interfere? Or a file rigths issue? Other then that I can't think of an immediate reason why this would fail, config, folder structure and class look fine.
MaxG
December 2012
Arrrwww
:-D
I think I will copy one of the Modules of the Depot
:)
Greets
\close
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
December 2012
MaxG
December 2012