I have this code:
$("#tab").load(path/to/php_file);
I get this error when executing:
Fatal error: Call to undefined function _e() in ... on line 4
Part of the content of this php file:
<div class="cell_wrapper">
<div class="cell">
<div class="cell_inner">
<label><?php _e("Use playlist selector:", "domain"); ?></label>
</div>
<div class="cell_inner">
<input type="checkbox" class="usePlaylistSelector">
</div>
</div>
....
It works well if I include this php file like this:
<div id="tab">
<?php require_once(path/to/php_file); ?>
</div>
I have several big php files which I need to include on demand (when I need it).
Is this something that can be solved or I have to take another approach?