Difference between revisions of "6CS028 Workshop - Web Frameworks"
From mi-linux
Jump to navigationJump to searchLine 7: | Line 7: | ||
You will need a MySQL database - more information [[MySQL|here]]. | You will need a MySQL database - more information [[MySQL|here]]. | ||
+ | |||
+ | === Hyperlink === | ||
+ | Every time the tutorial incudes an HTML link with a path, for example: | ||
+ | <pre> | ||
+ | <form action="/news/create" method="post"> | ||
+ | <a href="/news/"> | ||
+ | </pre> | ||
+ | |||
+ | You need to prefix the path with your base URL, using the helper as per like week: | ||
+ | <pre> | ||
+ | <form action="/news/create" method="post"> | ||
+ | <a href="/news/"> | ||
+ | </pre> | ||
+ | |||
+ | So for the above: | ||
+ | <pre> | ||
+ | <form action="<?=site_url()?>/news/create" method="post"> | ||
+ | <a href="<?=site_url()?>/news/"> | ||
+ | </pre> |
Revision as of 15:50, 21 January 2022
Main Page >> Advanced Web Development >> Workbook >> Week 02
Tutorial parts 2 and 3
Please work through parts 2 and 3 of the tuturial:
You will need a MySQL database - more information here.
Hyperlink
Every time the tutorial incudes an HTML link with a path, for example:
<form action="/news/create" method="post"> <a href="/news/">
You need to prefix the path with your base URL, using the helper as per like week:
<form action="/news/create" method="post"> <a href="/news/">
So for the above:
<form action="<?=site_url()?>/news/create" method="post"> <a href="<?=site_url()?>/news/">