Hello,
I am a total newb to processwire but have experience with other cms and frameworks. I saw a video and got a basic understanding of how processwired is used for simple webpages. If i want to get rows from a table i found i can query them like this
$result = $this->db->query("SELECT id, name, title, url FROM yourtablename WHERE id=$id");
and i know i could then loop and print the results on a grid with the html.
I was wondering is there a way to use partial views in this? Should i use the fields or simply echo these and create fields only for things i fill by hand?
If they are links and the page i go to has the respective data how do i go about it? Do i query again for only one row using the id from the url and echo the values? Do i use the fields of process wire in this case?
Even if there are different ways to do it i would like the proper one so that i dont regret it later or when i do some expansion.
Any advice or link to guides are welcome.