0 users online. Create an account or sign in to join them.Users

Search

Heloo,

Does this method look right to be able to append my own parameter to a frontend page?

I have a delegate in my extension:

array('page' => '/frontend/','delegate' => 'FrontendParamsResolve','callback' => 'addParam')

And I am trying to call it like this:

public function addParam(&$context) {

                            $set_id = $context['params']['current-page-id'];

                            $parameter = Symphony::Database()->query("SELECT s.* FROM `sym_mytable` AS s WHERE s.page_id = '{$set_id}' LIMIT 1");

                            $context['params'][$parameter['myparamname']] = $parameter['value'];
}

Just not seeing my parameter output to the page. Any pointers?

EDIT

Forgot to add:

public static $params = array();

To the driver file... dumb + ass = moi!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details