コード例 #1
0
<?php

$resource = new Acl_Model_Resource();
$resource->find("features", "code");
if ($resource->getId()) {
    $resource->setCode("feature")->save();
}
コード例 #2
0
<?php

$weather_resource = new Acl_Model_Resource();
$weather_resource->find("weather", "code");
if ($weather_resource->getId()) {
    $weather_resource->setCode("feature_weather")->setLabel("Weather")->save();
}