Closed JoseManuelAbarca closed 10 years ago
The problem is wrong path. You have to define proper path to Your template.
+1..i have the same problem..
if fixed it by using the construct() function. in there you can assign content to config variable by $this->config = array(etc etc);, and in there you can use __DIR .
Hi, I'm try to use my own templates. I write my config like this:
class DataTableCompanies extends AbstractTable { protected $config = array( 'valuesOfItemPerPage' => array(5, 10, 20, 50 , 100), 'templateMap' => array( 'paginator-slide' => '../../../view/templates/slide-paginator.phtml', 'default-params' => '../../../view/templates/default-params.phtml', 'container' => '../../../view/templates/container-b3.phtml', 'data-table-init' => '../../../view/templates/data-table-init.phtml', 'custom-b2' => '../../../view/templates/custom-b2.phtml', 'custom-b3' => '../../../view/templates/custom-b3.phtml', ) );
I can't use DIR in this array and I get an error: Warning: include(../../../view/templates/custom-b2.phtml) [function.include]: failed to open stream: No such file or directory in ....
How can I use templateMap option?¿