ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Active Record Plugin: A Query Module Replacement for EE2

November 05, 2010 11:16am

Subscribe [3]
  • #1 / Nov 05, 2010 11:16am

    Rob Sanchez

    335 posts

    The Active Record plugin allows you to use CodeIgniter’s Active Record database pattern in the form of a template tag. It is meant as a replacement for the standard query module.

    For example, you can replace this:

    {exp:query sql="SELECT member_id, username FROM exp_members WHERE group_id = 1"}
        {username} - {member_id}
    
    {/exp:query}

    With this:

    {exp:activerecord select="member_id, username" from="members" where:group_id="1"}
        {username} - {member_id}
    
    {/exp:activerecord}

    Download & Documentation

    If you like this plugin, please rate and/or favorite it on Devot://ee 😊

  • #2 / Nov 30, 2010 4:04pm

    stubear

    114 posts

    Nice plugin but I couldn’t get limit to work and I was also wondering if it’s possible to pass ee tags into any of the parameters?

  • #3 / Nov 30, 2010 4:07pm

    Rob Sanchez

    335 posts

    Start a thread here with some more details on your limit problem and I’ll get it sorted out: http://devot-ee.com/add-ons/support/activerecord/viewforum/1237/

    To answer your second question, yes, you should be able to pass ee tags as parameters.

  • #4 / Feb 15, 2011 8:14pm

    Rob Sanchez

    335 posts

    I finally got around to fixing the limit bug—limit was not working without pagination before, now it is.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases