Contributions > Plugins, tips, and tricks

How to create a new style

<< < (2/2)

faf:

--- Quote from: sushi on October 29, 2013, 05:54:24 PM ---I try ${page:my_var} but it's doesn't work!

--- End quote ---

In Mibew Messenger 1.6.x if you want to use in template something like ${page:my_var} you will have to set in controller the value of $page['my_var'].

sushi:
Thanks for fast answer!

$page is a global variable?

i try in this file client.php and it's doesn't work.

When i do var_dump($page), $page is null.

I display the var_dump in global scope.

Regards,

sushis

faf:
Yes, $page is global variable.

And if you want to find out where is your trouble, you should show up the code.

sushi:
it's work!

I added my code in the header page and after $page is redifined ( $page = array() ), so i add $page['my_var'] = $my_var and it's work!

Thx for your fast answer!

faf:
You're welcome.

Navigation

[0] Message Index

[*] Previous page

Go to full version