What tutorials do you need?

This blog’s called Learning Kohana so it should teach you on Kohana. I’ve written a couple of tutorials, some code examples and just some general information on Kohana. I know my way around Kohana but still some people find parts difficult, I hope to help there.

Anyway, I will try to continue writing tutorials on Kohana but I would like to hear from you what’s most desired. I have a couple of suggestions

      ORM relationships
      ORM where_key
      Forge or Formation uploading
      Image library usage
      Explanation of events

I’ve got a suspicion of what is deemed most important but you guys can still vote in the comments. If there’s anything else you think deserves a tutorial you can point it out and I might use the topic for a later tutorial.


16 Responses to “What tutorials do you need?”

  1. neovive Says:

    I would be interested in a tutorial on uploading an image via Forge and creating a thumbnail. This is a common scenario that I had working in CI, but have not yet tried in Kohana. I’ve seen many people inquire about this as well.

  2. nrm Says:

    new validation lib and upload with it ;)

  3. vincent voyer Says:

    Hi ! A complete example of form validation, pre-populating then re-populating if errors with showing errors individually. (like an “edit your profile page”)

    I have my own technique with old validation library but dunno if i’m doing it well. ;)

  4. vincent voyer Says:

    Hi, i saw your template_controller extends controller example and it’s nice but i don’t like the idea of having primary controllers extending a template controller in a MVC architecture.

    My solution was to create a layout_model wich is alsa very bad !
    $layout=new Layout_Model(’some/page’);
    $layout->vue->header->titre=’some title’;
    $layout->vue->header->css=array(’nice’,'css’,’sheets!’);
    $layout->render();

    So, having a layout library/helper would be great !
    $layout=new Layout(’/some/page’);
    $layout->content->somevar = ’somevalue’;
    $layout->header->css = array(’more’,'css’,’sheets’);
    $layout->render();

  5. kag Says:

    As Vincent stated, I would also like to know how to populate form fields when editing an existing item, and how to repopulate it when there’s an error.

    And also the proper way of displaying a dropdown from another model in an editor. A simple example is a page where you edit a user’s profile, how to show a “Group” dropdown (a user belongs to 1 group).

  6. admin Says:

    Ok, so so many people want form related stuff. I would have expected ORM relationships but forms it is. One more question, do you want tutorials using generated forms (Formation or Forge) or hand-written forms? Especially for Kohana’s native form generation and validation libraries this makes quite a difference.

  7. kag Says:

    Doesn’t matter to me - I’m new to both!

  8. Neovive Says:

    This may be a lot to ask for :), but here is a suggested tutorial that would be an excellent reference for those starting with Kohana. Maybe something that could be covered over a series of posts.

    A sample form that implements most of the commonly used fields (text, select, checkbox, radio, textarea) that also includes an image upload and resize. It would then show how to set default values, validate, repopulate and process to database, etc. You could provide alternative implementations for Forge, Formation, and [Native + New Validation].

    This would allow users to really get an understanding of the differences between each approach and when each approach would work better. From my own perspective, I am most familiar with using Forge, but would be interested in seeing how the same or better result can be accomplished using the new validation or Formation library, since I have never used these alternatives.

  9. Xobb Says:

    Vincent Voyer
    I’ve got the layout library. It’s kinda with dispatcher build in. You can pass the controllers and methods to be executed and their output will be added to the library. It’s pretty raw, but if you want I can share it.

  10. spirit Says:

    I agree with Neovive. +1 for his suggestion, indeed forms (validate, add, edit, populate, …) are huge tasks for web developers and I have the feeling that both Formation and new validation library could ease this process.

    By the way, I would like to translate to french some of your tutorials. Do I have your agreement (I saw on the forum you were OK but I wanted to be sure) ?

  11. admin Says:

    Translations are fine as long as you link to the original.

    I think an approach to forms using more than one method is indeed a good way to go despite it being a lot of work. I’ll start working on it sometime this week.

  12. spirit Says:

    Of course I will link to the original! :-)

    Great!

  13. Peter Says:

    I prefer form related topics, using Formation & validation…

  14. spirit Says:

    Just to let you know I already translate the “Kohana under the hood” series: http://www.hotandspicy.fr/.

    You will find at the top of each article a link to your website.

  15. Leo Says:

    I’d like to see some examples of authentication, cookies, and session management. Unless… those are already out there?

    Thank you *so much* for your posts!

  16. bishnoi Says:

    came here looking for authentication, cookies, and session management, login logout etc. in kohana.
    Thanks.

Leave a Comment