Magento Include Phtml File in Phtml

How to display and call one phtml file as a link in another phtml file.
Magento 2:
:: Below is the code to call a custom template block in another template file in Magento 2.
If you call testdemo.phtml file, then write following code:
<?php
$this->getLayout()
->createBlock('Bhavesh\Testdemo\Block\Testdemo')
->setTemplate('Bhavesh_Testdemo::testdemo.phtml')
->toHtml();
?>
:: Call template block in CMS static Block or CMS Page in Magento 2, then write following code.
<?php
{{
block class="Bhavesh\Testdemo\Block\Testdemo" name="your_block_name" template="Bhavesh_Testdemo::testdemo.phtml"
}}
?>
Magento 1 :
You call testdemo.phtml in any phtml file using below code:
But, You can not call directly one phtml file to another phtml file.
Way :
(1) – call your phtml file either create one controller and create one action
– call action from your anchor tag or create one cms page which call your phtml file.
(2)-If you create one module
– your layout file something you can write
<modulename_controllername_controlleraction>
<reference name="content">
<block type="catalog/product_testdemo" template="custom/testdemo.phtml" />
</reference>
</module_controllername_controlleraction>
(3) Directly put below code in your cms page content area.
{{block type="catalog/product_new" template="custom/testdemo.phtml"}}