I want to call show.phtml
file which will print database records from entry.phtml
file.Here is the code of my files having-
show.phtml
<?php
$model=Mage::getModel('entry/entry')->getCollection()->getData();
echo "<pre>";
print_r($model);
exit();
?>
entry.phtml
<h1>HELLO</h1>
<form enctype="multipart/form-data" method="post" action="<?php echo $this->getBaseUrl().'entry/index/save' ?>">
<input type="text" name="name" placeholder="Enter Name">
<input type="text" name="email" placeholder="Enter Email">
<input type="text" name="mobile" placeholder="Enter Mobile">
<input type="submit" value="Enter">
</form>
Best Answer
You can call your phtml file in another phtml file as below
But if you want to show your phtml file from controller as you commented below my answer, you can call it as below.
Create a phtml file
Create an xml file
Create a controller file