PHP Classes
elePHPant
Icontem

File: templates/grey/_verbs.phtml

Recommend this page to a friend!
  Classes of Mike Stowe  >  PHP RAML to HTML  >  templates/grey/_verbs.phtml  >  Download  
File: templates/grey/_verbs.phtml
Role: Auxiliary script
Content type: text/plain
Description: Sample output
Class: PHP RAML to HTML
Parse RAML of an API to generate documentation
Author: By
Last change:
Date: 4 years ago
Size: 524 bytes
 

Contents

Class file image Download
<h3>Available Actions</h3>

<ul class="verbs">
    <?php foreach ($RAML->path()->getVerbs() as $verb) { ?>
<li>
        <div style="display: inline-block;">
            <a href="<?php echo $_SERVER['PHP_SELF']; ?>?path=<?php echo $RAML->getCurrentPath(); ?>&action=<?php echo $verb; ?>" class="badge badge_<?php echo $verb; ?>"><?php echo $verb; ?></a>
        </div>
       
        <div style="float: display: inline-block; margin: -26px 0 0 90px;">
            <?php echo $RAML->path()->get($verb)->get('description'); ?>
</div>
        <br />
    </li>
    <?php } ?>
</ul>