Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
2 improved formatting
source | link

In a phtml file, if you need to instantiate a block without cache you can use this:

echo $this->getLayout()->createBlock('cms/block')->setBlockId('block_id')->setCacheKey(uniqid())->toHtml();

echo $this->getLayout()->createBlock('cms/block')->setBlockId('block_id')->setCacheKey(uniqid())->toHtml();

In the block you can instantiate the page/content that you need like this:

{{block type="core/template" template="page/some_page.phtml"}}

{{block type="core/template" template="page/some_page.phtml"}} or or just write the content directly in there. some_page.phtml some_page.phtml is in app/design/frontend/base/default/template/page/ .app/design/frontend/base/default/template/page/

Hope it does it for you!

In a phtml file, if you need to instantiate a block without cache you can use this:

echo $this->getLayout()->createBlock('cms/block')->setBlockId('block_id')->setCacheKey(uniqid())->toHtml();

In the block you can instantiate the page/content that you need like this:

{{block type="core/template" template="page/some_page.phtml"}} or just write the content directly in there. some_page.phtml is in app/design/frontend/base/default/template/page/ .

Hope it does it for you!

In a phtml file, if you need to instantiate a block without cache you can use this:

echo $this->getLayout()->createBlock('cms/block')->setBlockId('block_id')->setCacheKey(uniqid())->toHtml();

In the block you can instantiate the page/content that you need like this:

{{block type="core/template" template="page/some_page.phtml"}}

or just write the content directly in there some_page.phtml is in app/design/frontend/base/default/template/page/

Hope it does it for you!

1
source | link

In a phtml file, if you need to instantiate a block without cache you can use this:

echo $this->getLayout()->createBlock('cms/block')->setBlockId('block_id')->setCacheKey(uniqid())->toHtml();

In the block you can instantiate the page/content that you need like this:

{{block type="core/template" template="page/some_page.phtml"}} or just write the content directly in there. some_page.phtml is in app/design/frontend/base/default/template/page/ .

Hope it does it for you!