Custom Library in Concrete5.7

Permalink
How do libraries work in 5.7? I am trying to utilize a custom library for use on a single page.

I have created the single page view and controller. I am able to access the controller from the view.

I also created a library in application/libraries/ called testlib.php.

In my controller I have Loader::library('testlib'); Inside of the library there is only one function right now called sayHello()

In my controller I make a call to the function using: sayHello();. However, I receive the following error Call to undefined function sayHello(). What am I missing to make this work in 5.7?

theneptune
 
StefSmeers replied on at Permalink Reply
StefSmeers
Concrete 5.7 is not using libraries anymore.
This website might be useful for you:http://www.codeblog.ch/2014/09/concrete5-7-upgrade-packages/...
If you have any further questions, feel free to ask.

- Stef