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
Response
MaxG
December 2012
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!
Marcus
December 2012
Accepted Answer
Hi,
use
\
Response::forge($body);
instead of
Response::forge($body);
Regards,
Marcus
MaxG
December 2012
Hey,
Thank you
so much!
It helped alot.
Greets
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
Marcus
December 2012
MaxG
December 2012