Phalcon and PHP 8.3: Help with Custom Class Usage #16683
Unanswered
KamilTahirli
asked this question in
Q&A
Replies: 1 comment
-
Have a look at this https://docs.phalcon.io/5.8/tutorial-basic/ The component that will help you there is the autoloader. You can define different paths and namespaces of where your files are and then instantiating a class within a controller is going to work because your app will know where to look for each file. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am using the latest version of Phalcon with PHP 8.3. The issue is how I can call my new custom classes inside the controller. Even if I share these classes in service.php, it says it cannot find the class. If you have a sample usage demo, please share it.
Beta Was this translation helpful? Give feedback.
All reactions