So what i want to do.

1. I konw how programme gbook with CakePHP
2. I want to afford, people could register self gbook and in admin area
setting how their gbook will look like.
3. Every owner gbook can do self them ( template ) a setting CSS for
this gbook.

So example, this is view for show post in book:
-------------------------------------------------------------------
<h1>Posts in book</h1>
<table>
    <tr>
        <th>Id</th>
        <th>Author</th>
        <th>Title</th>
                <th>Created</th>
    </tr>
    <?php foreach ($data as $post): ?>
    <tr>
                <td><?php echo $post['Post']['id']; ?></td>
        <td><?php echo $post['Post']['author']; ?></td>
        <td><?php echo $post['Post']['title']; ?></td>
                <td><?php echo $post['Post']['created']; ?></td>
    </tr>
        <tr>
                <td colspan="4" class="body"><?php echo $post['Post']['body'];
?></td>
        </tr>
    <?php endforeach; ?>
</table>
---------------------------------------------------------------------
For example this teplate will by default setting, and users could
remake it and save to database.

4. So I need how use template from db for show data, now CakePHP use
all views from   directories that are save in
...app/views/directory_name_as_cotroller_name/

THX


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to