how to use reqire_once in controller.php

Permalink
hi
i will know how can use require_once in controller.php for a block and how can i have the address of current folder in controller.php
thanks

 
ScottC replied on at Permalink Reply
ScottC
the equivalent method is Loader::(folder)(php filename without the .php)

look at block/tools folder if you want to use a bunch of ajax stuff that interacts with the db from the block edit or add.