Search the Community
Showing results for tags 'autoload'.
-
I've seen a couple of questions regarding namespaces and autoloading floating around the forum recently, so I decided to write a little tutorial. In general, I often see people getting confused when they try to wrap their head around namespaces, autoloading, Composer and the mapping of namespaces to...
- 5 replies
-
- 37
-
-
-
- autoload
- namespaces
-
(and 2 more)
Tagged with:
-
I'm trying to get a short routine to run once per day that will look at some pages and send a reminder email when that customer's subscription (yearly) is about to expire. When I run the code in a template then it works without issue, but inside my lazycron service routine, I get an "Error: Uncaught...
-
Hi all, I need a page for users to post questions to moderators. I'm reusing the Discussions module and the Comment module for the replies (I didn't like the idea of having hundred of pages for replies so I modified it). To handle the form, the Discussions module to autoload in every pages and I t...
-
Hi there, I'm trying to get a script to work in process wire that loads a class dynamically if that class is not found. Do you know if there is something I need to do in Processwire to get the function __autoload() {} to work correctly? Here is the code I am using that would include the class:...