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
[solved]how can I add my custom class in fuelphp ?
reka
December 2012
how can I add my custom class in fuelphp ?
Harro
December 2012
Dump it into classes and use it?
ilNotturno
December 2012
Put your file in che "class" folder and add it to the autoloader in the boostrap.php file:
Autoloader::add_classes(array(
// Add classes you want to override here
'MyCLass' => APPPATH.'classes/myclass.php',
));
Harro
December 2012
Note that it s not required to define anything for classes in app, they will be found without add_classes() too.
Adding them like this will only save a file_exists() check as the autoloader doesn't have to check if it exists.
reka
December 2012
tanks everyone... ^_^
it work like a charm...
:D
I'm getting used with fuelphp..
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
ilNotturno
December 2012
reka
December 2012