- Create
custom/Extension/modules/{module_name}/Ext/Vardefs/Vardefs.phpHere play with dictionary array and define fields accordingly - Create file
custom/Extension/modules/{module_name}/Ext/Language/en_us.{custom_modulename}.php
This is a language file and you have to define variable that actually displays a label, here you have to use modstring array. - Create file
custom/modules/{module_name}/metadata/detailviewdefs.phpplace your cusotm fields here if you want to display those fields in detail view of that module. - Create file
custom/modules/{module_name}/metadata/editviewdefs.phpPlace your fields here if you want to show these fields in edit view
//connecting to db $conn = mysql_connect("localhost","peter","abc123"); if (!$conn) { die('Could not connect: ' . mysql_error()); } // some code mysql_close($conn); // closing connection //query db $data=$conn->query("SELECT * FROM myTable "); foreach($data as $row) { print_r($row); }
Comments
Post a Comment