Jump to content

How to add your own variables? [SOLVED]


Recommended Posts

Posted

I am trying to add a new settings page which will use new variable names, e.g. $var['newname'].

 

How can I add these names to the already existing array?

 

It is not fully clear to me how POST parameters are processed, it looks like an internal emhttp thing, but I could be wrong here.

 

Any help is appreciated :)

Posted

Paramaters are in $argv[1]  I use thise code to make it look like the standard $_REQUEST[] array you see in normal php.

parse_str($argv[1], $_REQUEST);

 

$var = parse_ini_file( "/var/local/emhttp/var.ini", TRUE),

 

You can create your own .ini file in you addon directory and use parse_ini_file

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...