Jump to content

Jimbos

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Jimbos's Achievements

Newbie

Newbie (2/6)

0

Reputation

  1. Hello, I'm trying to cache some queries. Everything works correctly, but I encounter issues when I try to insert one or more external variables into the function: $name = $cache->get('cachedname', "+2 minutes", function($pages) { return $pages->find("template=names, parent=1195, id=$nameid, status=published, limit=3"); }); Can you help me?
  2. Thank you zoeck, never works, it seems a problem related to the datetime field. Filter the pages through this field doesn't works.
  3. Hello, I've a problem with date filtering: this query works: $today = date("Y-m-d", strtotime('today')); $pages->find("template=page, sort=datetime, datetime>=$today"); but this not: $today = date("Y-m-d", strtotime('tomorrow')); $pages->find("template=page, sort=datetime, datetime<=$tomorrow"); why? Thank you!!
×
×
  • Create New...