Forums / Developer / view_parameter in php / Comment63146
Ivo Lukac
Wednesday 27 October 2010 4:31:16 am
This url looks more like a module not a dataype.
Let say your base root is http://localhost/cms, than your relative url is 'something/attribute/5' which means module 'something' and view 'attribute' with parameter '5'
Your module.php in 'something' should have this:
$ViewList['attribute'] = array( 'functions' => array( 'attribute' ), 'script' => 'attribute.php', 'params' => array( 'Param1' ) );
They in attribute.php you can get parameter value like this:
$Params['Param1'];
http://www.linkedin.com/in/ivolukac http://www.netgen.hr/eng/blog http://twitter.com/ilukac