I am trying to create an user's items listing page (somethings similar to dropbox website but a lot more basic, of course).
In normal PHP (without any framework), I can do it simply by using something like <a href="absolute path of item on server">Item Name</a> It will use browser function to display content of the item (if .mp3 browser play music, if .jpg browser show the picture...etc)
But I'm using Phalcon and I have to do in another way This is what I'm trying to do
public function indexAction() {
//This action will list all items of an user //The most important line is
{{ link_to("/items/show" ~ item.id, item.name) }}
//When user click the item in index page, it will forward to showAction with the corresponding $item_id
}
public function showAction() {
//Hard things for me is here. I don't know how this showAction can actually show the item's content
}
How can I view the content in Phalcon? At least like what I could do with normal PHP?
Thank you very much