Công nghệ thông tin
Overview of Components - Sơ lược về Com | Overview of Components - Sơ lược về Com |
|
|
|
| Thứ sáu, 23 Tháng một 2007 | ||||||||||||||||||||||||||||||||||
Page 4 of 8 Developing the Administrator ComponentFrom Mambo ManualWe need to develop a component in the Administrator in order for your Client to maintain who should be shown on the in/out board. We also need to plug into the Categories feature to enable us to provide different groups of users for different in/out boards. So, where do we start? [edit] Adding Menu ItemsMost components will have some sort of administration function. This is placed under the menu item called 'Components' on the menu bar. All these items are generated dynamically from the database. When you finally deploy your component, it will be delivered in a zipped file with an xml definition file telling the Component Installer what files to copy where, what tables to create and what menu items to provide. Well, it's a bit premature to do that during the development stage so we'll have to add the menu items by hand. We need to add a few rows to the mos_components table. Have a look at this table. It has the following fields: Table 5−1. mos_components Table Structure
So, let's create a menu item called 'In/Out Board' and a fly−out menu with two item: 'Manages Users' and 'In/Out Categories'. The SQL to do this is: INSERT INTO `mos_components`VALUES(500, 'In/Out Board', '', 0, 0, '', Execute these three lines of code in your database client. Refresh the Mambo Administrator and you should see the new entries in the menu. Newer news items:
Older news items:
|
||||||||||||||||||||||||||||||||||
| Liên kết Webs |
| Why's luyenkim.net |
| Woman Calendar |
| Cà phê chiều thứ 7 |
| Từ điển LạcViệt Online |
| Kulkul's world |
| www.xahoihoctap.net |
| www.paper.edu.cn |
| Học tiếng Anh online |
| Danh bạ ĐT cố định |
| Online dictionary |
| Tivi Online |
| - - - - - - - |
| Tin thể thao |
| Dân trí |
| Tiền phong |
| Người lao động |
| - - - - - - - |