developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#370 closed new feature (fixed)

Create a new jtpl plugin modifier to count record

Reported by: dandelionmood Owned by:
Priority: normal Milestone: Jelix 1.0 RC1
Component: jelix:tpl Version: 1.0 beta 3.1
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed:
Hosting Provider: Php version:

Description

I think that jTpl lacks of a plugin to count the number of records in a DBResultSet.

In controlers, you can obtain it using the rowCount() method, but it doesn't exist in templates at the moment ... Altough there is already an array_count, for instance.

Attachments (1)

modifier.count_records.php (596 bytes) - added by dandelionmood 13 years ago.
Code implementing the missing feature

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by dandelionmood

Code implementing the missing feature

comment:1 Changed 13 years ago by laurentj

  • Milestone set to Jelix 1.0 RC1

comment:2 Changed 13 years ago by laurentj

  • Resolution set to fixed
  • Status changed from new to closed

Plugin included in the trunk. Thanks for this contribution !

Do you have a real name, to write your name in the CREDITS file ? Or do you prefer to stay anonymous with your pseudo ?

comment:3 Changed 13 years ago by dandelionmood

I'd prefer to stay anonymous ... Besides, this is just a tiny little feature ;) Thanks for including it !

Note: See TracTickets for help on using tickets.