Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorbiohacker
     
    Greetings. This is my first post. I have a personal project and I chose the akelos framework because I feel comfortable with the mvc model. I installed the application and made a Hello World. Now I am in the process of tailoring akelos to my application. I searched the web but I am not sure about what would be the best way of setting a header and a footer to my application being respectful with the framework. I would be grateful if someone could help me.

    Thanks in advance.
    •  
      CommentAuthorGNUNano
     
    i have an idea about that, why don't you make this header and footer in your model, and use them in your tpl.

    for example:

    if you have a model agent:

    class Agent extends ActiveRecord
    {
    //create a function here.....
    function header()
    {
    $header = "<center><div class='defined'><h1>This is a header.</h1></div></center>";
    return $header;
    }

    }

    in your tpl, call the function header...
    <?php echo $agent->header(); ?>
    <div id="sidebar">
    <h1>_{Tasks}:</h1>

    do the same in the footer section.
    every time you want to display the header and footer, just call the function...^_^

    Just a good sound advice...

    "Keep calm and carry on..." --pabz, blair, arnel-->