[Typo3] Kickstarter problem

Grunde Løvoll grunde at freecode.no
Mon Oct 24 09:55:00 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I've watched Kaspers wonderful movie where he uses the kickstarter to
create an extension for his CD list. Based on this examle I'm trying to
create my own similar extension.

Here is my problem:
I can not render the categories properly. My mysql table name is:
tx_kccbase_category
Here is my SQL/php code:

# The query to get the fetch the category
$my_query = 'SELECT * FROM tx_kccbase_category WHERE
pid='.intval($GLOBALS["TSFE"]->id).$this->cObj->enableFields(tx_kccbase_category);
debug(array($my_query));
$res = mysql(TYPO3_db, $my_query);

# Iterate over the result set and fill the categoryCashe
while($row = mysql_fetch_assoc($res)){
  $this->categoryCashe[$row['uid']] = $row;
}

- ---
The catecoryCashe is defined as earlier as in Kaspers example. The query
retun no result and I'm not able to fetch the name of the categories.

Further: the debug(); call do not work.

Any idea why this don't work? I'm using the latest version of Typo3 and
the kickstarter, have the api changed?

Regards,
Grunde

- --
Grunde Løvoll
Konsulent - Fri Programvare
FreeCode AS
Gaustadalleen 21
0341 Oslo
mob. +47 47 34 40 05
tlf. +47 21 53 69 00
e-post. grunde at freecode.no
http://www.freecode.no/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDXJNUKYgDwJX1vxwRAqGsAJ9cUmYOmgh18m1TohMeKSxXGLez2ACeP5an
wrMaYX/YIEnRAXlBtxt8Z7A=
=YJ7H
-----END PGP SIGNATURE-----



More information about the TYPO3-english mailing list