PDA

View Full Version : Component Dev


TJay
10.04.2004, 18:11
Ok
I have been trying to sharpen my skills with php with Mysql. I am fairly comfortable writing and executing queries and handling output using php.

What I am struggling with is the incorporation using the Mambo global variables and classes.

Also with the valid mambo or die.

I have seen a few posts on this issue and normally folks say grab a component and take it apart. I am not having much luck with this approach.

It seems to me that a good step by step how to would be helpful.
If I can get my first comp written. I will document the process and provide it as a tutorial, cause I dont think one exists, if it does I cant find it.

What I am trying to do, just as a learning tool. Is create a comp that will allow me to view data from a table as specified by a passed parameter. Say user ID
Then add an option to edit this data.
but one step at a time. I have to first get an instance of MOS and get access to the API $database etc classes and variables.

TJay

keliix06
10.04.2004, 20:09
Use Arthur's AkoGallery. That is about as clean as you will find, and will help you with anything you need to do. You can also look at http://mosdoc.mamboserver.com. You may also want to search the mamboserver forums for "Cooking with Mambo." This is an incomplete (but very good) tutorial developed by a core developer.

TJay
10.04.2004, 20:28
Im on it,
Thanks for the friendly nudge, being a Noob is hard sometimes

TJay

prj
22.09.2004, 02:01
Im on it,
Thanks for the friendly nudge, being a Noob is hard sometimes

TJay

This could be a useful componet if say admins could add user data (say bills or account info) that only special users and the actual user could see.