Exemple #1
0
<?php

$i = 0;
foreach ($ressource as $name => $services) {
    ?>

<table>
    <caption>
        <a id="ressource-<?php 
    echo sfRestDoc::slugify($name);
    ?>
"></a>
        <strong><?php 
    echo __($name);
    ?>
</strong>
        <p></p>
    </caption>
    <thead>
        <tr>
            <th class="rest-doc-service"><?php 
    echo __('Service');
    ?>
</th>
            <th class="rest-doc-description"><?php 
    echo __('Description');
    ?>
</th>
            <th class="rest-doc-available"><?php 
    echo __('Dispo ?');
    ?>
 public function getSlug()
 {
     return sfRestDoc::slugify($this->getTitle());
 }
 public function executeIndex(sfWebRequest $request)
 {
     $documentation = new sfRestDoc();
     $this->ressource = $documentation->getRessources($request->getParameter("section"));
 }