So i wrote a few simple classes to handle login, password hashing and query handling. They've all been tested and work... HOWEVER!
I placed these classes inside a template, let's call it /classes
When i used php's include "" and require "" it caused server errors.
I then resorted to using EE syntax to embed the classes template
{embed="/path_to/classes"}
So that only worked half way. The code below will work fine in classes template alone, but NOT if classes is embedded and the code below is ran on the parent template.
$createPassword = new protectPassword;
$securePassword = $createPassword->makePassword($passwrd);
So i guess my questions are, am i doing something wrong in EE, or does EE just not like / allow such things?
Any help is much appreciated! Thanks!