Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Response
  • Hey,

    I have the file "login.php", which is located at "fuel/app/modules/admin/classes/controller/login.php".
    The code: 

    <?php

    namespace Admin;

    class Controller_Login
    {
    public function __construct()
    {
    }
    public function action_index()
    {
    $body = "test";
    return Response::forge($body);
    }
    }

    I get the following error when I call it(click!)
    :
    ErrorException [ Error ]: Class 'Admin\Response' not found

    Could you help me? 

    Greets!


  • MarcusMarcus
    Accepted Answer
    Hi,

    use 

    \Response::forge($body);

    instead of 

    Response::forge($body);


    Regards,
    Marcus
  • Hey,

    Thank you so much! It helped alot.

    Greets

Howdy, Stranger!

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

In this Discussion