declare(strict_types=1);
use Org\Wplake\Advanced_Views\Bridge\Controllers\Layout\Layout_Controller_Base;
return new class extends Layout_Controller_Base {
/**
* @return array
*/
public function get_variables(): array
{
return [
// “custom_variable” => get_post_meta($this->get_object_id(), “your_field”, true),
// “another_var” => $this->get_custom_arguments()[“another”] ?? “”,
];
}
/**
* @return array
*/
public function get_variables_for_validation(): array
{
// it’s better to return dummy data here [ “custom_variable” => “dummy string”, ]
return $this->get_variables();
}
/**
* @return array
*/
public function get_ajax_response(): array
{
// $message = $this->get_container()->get(MyClass::class)->myMethod();
return [
// “message” => $message,
];
}
/**
* @return array
*/
public function get_rest_api_response(WP_REST_Request $request): array
{
// $input = $request->get_json_params();
// $message = $this->get_container()->get(MyClass::class)->myMethod();
return [
// “message” => $message,
];
}
};
You walk against the flow
dredging through mud
grasping sparkly grains
call it achievement.
You stand in the flow
sieving through sand
finding shiny pieces
call it happiness.
You follow the flow
feeling through the water
stumbling upon glowing nuggets
call it wisdom.
Finally content
with what you’ve gathered
you sit by the river
watching it flow
mesmerized
as the weight of gold
evaporates
into thin air
……
until you are awakened
as if from a dream
by a newcomer, eager and hopeful
fresh and transparent like a morning dew
who shyly inquires about
the river, and gold…
to whom you have nothing to show
but your words
that there is gold
to whom you have nothing to offer
but your sieve
which has withstood
the flow of
endless sand and mud.
The painting is by artist Jie Yu (my sister).
declare(strict_types=1);
use Org\Wplake\Advanced_Views\Bridge\Controllers\Layout\Layout_Controller_Base;
return new class extends Layout_Controller_Base {
/**
* @return array
*/
public function get_variables(): array
{
return [
// “custom_variable” => get_post_meta($this->get_object_id(), “your_field”, true),
// “another_var” => $this->get_custom_arguments()[“another”] ?? “”,
];
}
/**
* @return array
*/
public function get_variables_for_validation(): array
{
// it’s better to return dummy data here [ “custom_variable” => “dummy string”, ]
return $this->get_variables();
}
/**
* @return array
*/
public function get_ajax_response(): array
{
// $message = $this->get_container()->get(MyClass::class)->myMethod();
return [
// “message” => $message,
];
}
/**
* @return array
*/
public function get_rest_api_response(WP_REST_Request $request): array
{
// $input = $request->get_json_params();
// $message = $this->get_container()->get(MyClass::class)->myMethod();
return [
// “message” => $message,
];
}
};