Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Modules?
  • 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!



  • HarroHarro
    Accepted Answer
    Looks ok.

    You've got the modules path configured in your config.php?
  • Yes.

    It is:
    'module_paths' => array(APPPATH.'modules'.DS)

    Greets & Thanks!

  • HarroHarro
    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.
  • Arrrwww :-D

    I think I will copy one of the Modules of the Depot :)

    Greets 

    \close

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion