21311 Posts in 5739 Topics by 2604 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 411 Views |
-
Call function from php file

6 August 2011 at 12:46am
Hi again Silverstripe community
I've been getting some help from a friend on something I'm trying but my friend has told me to call the function from the file he gave me.
Can someone tell me how to call the function from a php file in Silverstripe?
Project/TestFile.php
<?
require_once "project.php";project_recent_sidebar("myaccountnamehere",10,0,"left","Text Here",true,"top","",true);
?>Thanks
-
Re: Call function from php file

6 August 2011 at 6:53am
This one potentially really simple. Put the project.php into your mysite/code and do a dev/build?flush=all to rebuild the manifest. You may need to tweak the name of the file or the class in it to fit into the SS namespace. Then you don't even need to use require_once its just available.
| 411 Views | ||
|
Page:
1
|
Go to Top |


