View more context

 

Murugadoss

How to call class Injector inside the public folder file?

wmk

Hi, what do you want to acchieve? Why do you have php code in your public folder?

Murugadoss

I want to provide the one iframe path that's why i create a php code in public folder.

dorsetdigital

If you're looking to use Silverstripe functions, your best bet is to use the routing methods of the framework and just do what you need in a normal controller script

dorsetdigital

No need to put any specific scripts in the public directory then, the request will just be bootstrapped as usual and you'll have access to all the normal functionality.

dorsetdigital

You can just set up a simple controller and route, as described here: https://docs.silverstripe.org/en/4/developer_guides/controllers/

Show 1 attachment(s)
docs.silverstripe.org  
Controllers

Developer and user documentation for the Silverstripe CMS and framework.

Hide attachment content
harvs1789uk

Does DBDatetime have any support/options for fractional parts of a second e.g. DATETIME(3) as per - https://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html

dorsetdigital

The only way I could think of supporting that would be to maybe use an integer column and store mktime() style timestamps

dorsetdigital

Out of curiosity, what are you logging at that level of time accuracy?

harvs1789uk

An Open Banking application, this is for storing transaction times