CLosed I can do it I mix code from 2 answer to make my page
I want to make special order page with My custom database table
Can I create New magento admin Page layout like this
I want to show
Orders OrdersDate CustomerID CustomerCompany SKU ProductName Qty, Total Status Action
and mydatabase table name is specialorder in Fields in table have
order_no PK (from product id)
order_item_number PK (to show in Orders)
creat_date (to show in OrdersDate)
Cusid (to show in CustomerID)
Cusname (to show in CustomerCompany)
sku (to show in SKU)
Productname (to show in ProductName )
price
qty (to show in Qty,)
total_price (to show in Total)
status (to show in Status)
data in table like this (order_no + order_item_no = pk)
1 1 date cusid cusname sku P.name price qty total status
2 1 date cusid cusname sku P.name price qty total status
2 2 date cusid cusname sku P.name price qty total status
How can I use this table to show in my custom admin page
Follow the following steps to create module in admin panel with your custom table.
Create module in your local directory (app/code/local/Pfay/Test), Where test -> . Inside this structure create all these directories Helper,etc,Block,Model,Controllers
Lets start with etc create config.xml file in side this :
My table name is Pfay_test add your table name instead of this.
Now in controllers create directory Adminhtml inside this create create your controller IndexController.php
}
where set_time is you menu name added in config.xml file.
Now move to you block section where you will create you Grid. Inside Block directory create
Adminhtml > Grid.php
Next create a directory Test > Grid.php
Now move to your Model Inside Model create Test.php and Mysql4
In Test.php :
Here (test/test) is
Pfay_<modulename>_Model_<modulename> -> (<modulename>/<modulename>)
Now inside
Pfay > Test > Model > Mysql4
folder create Test.php and TestIn Test.php :
Where id_pfay_test is unique key of your table.
Final step inform magento about your module : create file Pfay_Test.xml in
/app/etc/modules
Note : Change Module name and package name according to you.
Feel free if you have any query regarding this.