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
Class not found... Again
MaxG
December 2012
Hey Guys!
I have the following files:
(APPPATH/bootstrap.php)
(APPPATH/modules/admin/classes/controller/login.php)
(APPPATH/classes/AdvHtml.php)
But when i call the module, there is the following error:
ErrorException [ Error ]: Class 'Html' not found
I just ask me why
:(
Greets
Marcus
December 2012
Accepted Answer
Hi,
if you want to extend the core class, you can call your code via
\AdvHtml::functionname()
but if you want to replace the core class, you have to rename your file
to "html.php" and change the class name to the following
class Html extens Fuel\Core\Html
Hope this helps.
Docs:
http://fuelphp.com/docs/general/extending_core.html
Regards,
Marcus
MaxG
December 2012
Thanks.
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