New feature: passing controller's properties to rules
<?php
ways::rule('is-admin-section', function($data, $args, $props){
var_dump($props);
return $args['section'] === 'admin';
});
New feature: passing controller's properties to rules
<?php
ways::rule('is-admin-section', function($data, $args, $props){
var_dump($props);
return $args['section'] === 'admin';
});