You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Good Afternoon,
I'm attempting to pass multiple variables to the following call
<?php $this->include_namespace('cms','my_method', 'reference_string'); ?>
I would like to pass the following variables to it
function my_method ($reference = '', $width, $height, $color, $etc) {
I've noticed it being done with the sql method
$result = $this->CORE_DB->sql_do(array('sql' => $sql, 'table' => $table, 'order' => array('sortorder' => 'ASC')));
as well as this in CMS_Content
$this->exec_namespace(array('app' => 'cms', 'namespace' => 'pagesubmenu', 'type' => 'INTERNAL', 'params' => array('id' => $result[0]['id'], 'name' => '')));
Offline
CORE_Display->include_namespace() is just a simpler interface which frontends CORE_App->exec_namespace() so you don't have to write a ton of options into your includes that you'll never use. Either way, pass your params as a single array with multiple named keys, if you have multiple values you want to pass into the function being called by the namespace you've created.
Offline