Difference between revisions of "6CS028 Workshop - Web Frameworks"

From mi-linux
Jump to navigationJump to search
Line 16: Line 16:
  
 
You need to prefix the path with your base URL, using the helper as per like week:
 
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>
 
<pre>
 
<form action="<?=site_url()?>/news/create" method="post">
 
<form action="<?=site_url()?>/news/create" method="post">
 
<a href="<?=site_url()?>/news/">
 
<a href="<?=site_url()?>/news/">
 
</pre>
 
</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.

Hyperlinks

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="<?=site_url()?>/news/create" method="post">
<a href="<?=site_url()?>/news/">