• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read/Load all php files with a certain ending?

Ah thanks, you are the man!

finally I see an array.

Is it possible to search in my helper files for a certain function (in my case a test function) which is present in most of the helpers in the following syntax:

"function helper_name_helper_test"

So they are always ending with _helper_test

I would like to always search for the function and so make it include itself within my sidekick if new helpers are added to the folder.

That is an whole other case. In that situation it would be better to create a helper with the functions you need and load that helper in the class.

Otherwise you need to read all the files and check for the function names which is a very expensive procedure.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.