Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

Recoding data in custom tables?

Hi I am new to Pepper development and PHP for that matter. I am trying to write a simple pepper to record some data off a webpage. The data is returned correctly however it does not get populated in the table that my peppper creates in manifest array. Looking at mint.php, it seems that onRecord gets called once and it only records to a hardcoded table mint_visit.

Is that how it supposed to be? So far I have been using $this->query() within my pepper in onRecord function to insert data in tables. Is that how it is supposed to be? Little help needed.

/Rizwan

Shaun Inman
Mint/Pepper Developer
Posted on Mar 03, '10 at 09:13 am

Don’t look at mint.php. Pepper don’t behave like MInt. Look at the class.php of another Pepper that uses a custom table to see how it’s done. Secret Crush is probably a good place to start.

You must be logged in to reply. Login above or create an account