We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How to include a php file in my controller? | Forum

Marina Bircher
Marina Bircher Apr 14 '15
I want to include a php file to my controller; it is in the same directory. How is the Path for it? 



include 'myCode.php';  doesnt work!

include './myCode.php'; doesnt work!


how?

dave Leader
dave Apr 14 '15
I know when i added some files that were not part of a plugin or core files i had to write the exception in htaccess to allow them.  


Just cause im picky and its the way i do this have you tried  include('filename'); 


If that does not work then let me know and ill share the htaccess way that i do any added files that i need. 

Marina Bircher
Marina Bircher Apr 15 '15
Thank you that worked for me!