tags:

views:

285

answers:

1

I've been trying to implement PHP Tag Engine in my application but only succeeded to do it partially. According to the documentation, to call the HTML form to modify an existing item's tags you should use the following code:

$pte->html_item_tags($item_id)

The thing is that nothing is explained about how to call the tags form for a new item (one which doesn't have an ID yet).

Does anyone know how to do it?

Also, in $pte->html_item_tags($item_id) $item_id cannot be null.

+1  A: 

Found a solution.

On line 914 in file phptagengine.class.inc.php add:

if ($tags==false)
{
 $tags=array();
}

No you can call the HTML form with $pte->html_item_tags()

Don't know why the developer forgot this part.

Cheers,

Roy.

Roy Peleg
You can mark your own answer as accepted btw.
Ross
I must wait 24 hours before accepting my own answer
Roy Peleg