How to load a php block in your customised theme?

Posted by Damodar Bashyal on April 11, 2009

 

How to load a codefight cms block in certain area?

Since i started to code my cms, i have learnt new things and ideas. My latest addition is blocks. I have created blocks of different parts, or say features. This one is currently working for template view files. Because of this, its quite easy to build a new theme for codefight cms.

If you check the file tree image you will get some idea. Or, for more detail you can download the cms. This is how blocks are loaded in the area you want:

$this->blocks->load('block_name');

or, you can even load a different blocks with one call using array as:

More»

QR Code: How to load a php block in your customised theme?