I have a simple project in my xampp/htdocs directory called phalcon and I have apache configured to point to that folder so that I can go to phalcon/ in my browser.
The problem occurs when I try to open an index controller view other than index(default).
For instance I have someAction in Index controller and in views/index I have some.phtml.
If I go to phalcon/index/some I don't get the text from some.phtml outputed to the page.
It's probably because it thinks as if I wan't to open IndexController->indexAction and pass some as a parameter.
Would be grateful on any help provided to resolve this.
P.S. the project skeleton was copied from https://github.com/phalcon/skeleton-single.
Index controller:
<?php
class IndexController extends ControllerBase
{
public function indexAction($action = null)
{
}
public function someAction () {
exit('test');
}
}
views/index/index.phtml :
<?php echo $this->getContent(); ?>
views/index/some.phtml:
Some Action
views/index.phtml
<!DOCTYPE html>
<html>
<head>
<title>Phalcon PHP Framework</title>
</head>
<body>
<?php echo $this->getContent(); ?>
</body>
</html>