What tutorials do you need?
- Posted by dlib on March 17th, 2008 filed in Kohana
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.
March 17th, 2008 at 3:29 am
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.
March 17th, 2008 at 9:58 am
new validation lib and upload with it
March 17th, 2008 at 4:55 pm
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.
March 17th, 2008 at 5:11 pm
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();
March 17th, 2008 at 6:44 pm
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).
March 17th, 2008 at 7:48 pm
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.
March 17th, 2008 at 9:16 pm
Doesn’t matter to me - I’m new to both!
March 17th, 2008 at 9:40 pm
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.
March 17th, 2008 at 11:01 pm
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.
March 17th, 2008 at 11:23 pm
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) ?
March 17th, 2008 at 11:44 pm
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.
March 18th, 2008 at 9:36 am
Of course I will link to the original!
Great!
March 19th, 2008 at 8:04 pm
I prefer form related topics, using Formation & validation…
March 20th, 2008 at 10:05 am
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.
April 13th, 2008 at 3:40 pm
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!
July 3rd, 2008 at 12:56 pm
came here looking for authentication, cookies, and session management, login logout etc. in kohana.
Thanks.