Jump to content

How to add your own variables? [SOLVED]


Recommended Posts

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 :)

Link to comment

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

Link to comment

Archived

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

×
×
  • Create New...