Problems, need help? Have a tip or advice? Post it here.
12 posts Page 2 of 2
looks impressive, how do i get couch data out as json?
a basic tempate would be something like this.
Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
<cms:template hidden='1' title='JSON Template'/> <cms:content_type "application/json"/>

[
   <cms:pages masterpage='some.php'>
      {
      "name":"<cms:addslashes><cms:show k_page_title/></cms:addslashes>",
      "link":"<cms:addslashes><cms:show k_page_link/></cms:addslashes>"
      }<cms:if "<cms:not k_paginated_bottom/>">,</cms:if>
     
    </cms:pages>
]

<?php COUCH::invoke();?>
I load frameworks and write bugs on top of them, after that I rearrange the code so that it looks like a cool product.
12 posts Page 2 of 2
cron