jsantari Posted February 13, 2014 Share Posted February 13, 2014 I'm trying to load a class (it's going to load mls data from another db) in my hanna. The only way I could get the class to load was by placing it in the /cache/HannaCode folder other wise my include would fail. Is this where it needs to live to be accessed? Link to comment Share on other sites More sharing options...
ryan Posted February 17, 2014 Share Posted February 17, 2014 I would avoid putting it in /cache/HannaCode/. What does your include line look like? If your class file were placed in /site/templates/includes/ (for example) then your include line should look like this: require_once(wire('config')->paths->templates . "includes/YourClass.php"); 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now