PHP code example of oat-sa / extension-tao-dac-simple
1. Go to this page and download the library: Download oat-sa/extension-tao-dac-simple library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
oat-sa / extension-tao-dac-simple example snippets
class MyController extends tao_actions_SaSModule
{
/**
* @
}
class MyController extends tao_actions_SaSModule
{
public function editItem()
{
$item = $this->getCurrentInstance();
if ($this->hasWriteAccess($item->getUri())) {
// Do something
}
}
}