Hi i use {{ uri.getBaseUri }} on my volt file. it work but Notice appear.
Notice: Undefined property: Phalcon\Mvc\Url::$getBaseUri in E:\wamp\www\kevin\phalcon\anotherphalcontest\app\cache\e__wamp_www_kevin_phalcon_anotherphalcontest_app_views_index_index.volt.php on line 2
here's my view/index/index.volt code:
{{ link_to(url.getBaseUri ~ "index/input", "Add") }}
my indexController.php code:
<?php
class IndexController extends ControllerBase
{
public function indexAction()
{
}
public function inputAction() {
}
public function listAction() {
}
public function addNewAction() {
$a = new Users();
//echo $this->request->getPost("name") . " " . $this->request->getPost("email");
$a->name = $this->request->getPost("name");
$a->email = $this->request->getPost("email");
$a->save();
}
}