We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Create my own tools class

Hi,

I want to add multiple functions in a php file. But I don't know where I should put this functions. Can I put my functions in a model Class (Tools) and use my tools class as an object without create a table in my database ? For example :

       $tools = new Tools();
       $tools->myFunction();


85.5k
Accepted
answer

As far as i understood you i think the answer here should help you out ?

https://stackoverflow.com/questions/22422312/phalcon-loading-helper-file-library

Oh nice :) thanks a lot