SHOW:
|
|
- or go back to the newest paste.
1 | - | I am getting 302 error for site.com/internet-items/index link |
1 | + | Request URL:http://projectnirvana.runcode/internet-items/index |
2 | Request Method:GET | |
3 | Status Code:302 Found | |
4 | ||
5 | Controller page: | |
6 | ------------------ | |
7 | <?php | |
8 | ||
9 | require_once dirname(__FILE__) . '/../../library/Nir/Controller/Action.php'; | |
10 | class InternetItemsController extends Nir_Controller_Action | |
11 | { | |
12 | ||
13 | public function init() | |
14 | { | |
15 | parent::init(); | |
16 | } | |
17 | ||
18 | public function indexAction() | |
19 | { | |
20 | // action body | |
21 | } | |
22 | ||
23 | ||
24 | } | |
25 | ||
26 | View page in internet-items folder(internet-items/index.phtml) | |
27 | ------------------------------------------------------------------ | |
28 | <br /><br /> | |
29 | <div id="view-content"> | |
30 | <p>View script for controller <b>InternetItems</b> and script/action name <b>index</b></p> | |
31 | </div> |