Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorenser
     
    Hi,
    I'm going thru blog video tutorial and everything is fine until the part with the comments.
    After making the associations in models
    in post model: var $has_many = 'comments';
    in comment model: var $belongs_to = 'post';
    and after "php migrate comment install (in windows cmd)" the comment table is created with one comment row but the comments are not displayed in show.tpl
    i.e the loop in show.tpl:
    {loop post.comments}
    <hr>
    <p>{comment.body}</p>
    {end}
    doesn't work!

    Did someone has similar problem??
    •  
      CommentAuthorbermi
     

    @enser See this thread I forgot one step on the screencast. My fault :(

    • CommentAuthorezramiykal
     
    First of all, sorry if my post is misplaced. But since the title is "blog tutorial problem" which exactly what I'm facing right now, so I think I could post mine here :).

    I've downloaded the akelos_framework-dev_preview.tar.gz, and extract it to ~/Sites/akelos (I'm on Leopard, and trying to be as close as I can with the screencast, I mean if in the screencast you use ~/Projects/blog, I use ~/Sites/blog instead). But after this step: ln -s ~/Sites/blog/public ~/Sites, I got different result, instead of opening localhost, I went to localhost/blog and following the next steps, I was able to create the databases, setting the localization and got the Getting started screen.
    The next step is also different, the step when you open up TextMate to edit the config.php which also different with the one I've downloaded (you got the file with database configuration included, but mine, the database config is stored in database.yml)
    and after the generating controller step, you have the error but not mine, I have the Getting started screen on my http://localhost/blog/. I decide to go on, and following your steps from editing the blog_controller.php file up to creating index.tpl template file. but no luck, I'm stuck with the getting started screen.

    I have no Idea how to continue since I'm only a novice, but I want to use Akelos really bad for my project, for some reason :)
    Beside the problem, I think it might be a good idea to keep the screencast updated and with different version (X'ish, Windows and Mac), to make it even more attractive to newcomers if its easy to follow, as you might already know, some of the learners are bit lazy, and prefer a spoonfed example like me :)

    Thank you in advance for the reply.
    • CommentAuthorezramiykal
     
    in addition to my issue, I see that the application is always looking for page_controller.php, not the blog_controller.php, how can I change this. I'm able to make the changes to the template file; page_controller.tpl but I feel that I'm not supposed to make the changes in that file. As it's not the suggested steps in the screencast.

    Thank you very much.
    • CommentAuthorsuthern
     
    The default route when someone access your website is stored in \config\routes.php.

    Look for this line "$Map->connect('/:controller/:action/:id', array('controller' => 'page', 'action' => 'index'));"

    and change it. What happens if you change 'page' to 'blog'?
    • CommentAuthorezramiykal
     
    @suthern
    Thank you very much, it works. Again for a novice its bit confusing to set this up, since the comments in the file is not that informative :)

    would be so much help if for example the comment on the routes.php is similar with:

    //change the controller default value, e.g : 'page' to 'main' to display your default page template
    $Map->connect('/:controller/:action/:id', array('controller' => 'page', 'action' => 'index'));
    • CommentAuthorsuthern
     
    I'm glad it helped! :-)