Hi there
i need to know how i can retrieve data from my database
i need to retrieve some data from my database such as firstname lastname email etc for that i am passing primary key ‘id’ to controller from my view
-
how to pass value to controller from view
-
how to use this variable and retrieve data from database ( where will this code be , in model or in controller )
-
how to render this data back to view.
-
how to use this data and print in in pdf using customized layouts ( i will have multiple template files which will describe how the pdf page will look like. and user can select one of the template from view to get pdf )
I want to create something like a resume generator and want to make pdf from this appliction.