0
我无法给出根目录链接的正确路径,错误显示“http://localhost/wordpress/alerts.php 404(Not Found)”alerts.php文件主题文件夹的主目录。js文件中的WordPress目录路径问题
.directive('alertsCenter', function() {
return {
templateUrl: 'alerts.php',
replace:true,
restrict: 'E',
controller:'alertsCtrl'
};
});
GET HTTP://localhost/wordpress/alerts.php 403(禁止)eroor显示 –
请检查templateUrl中的内容.. @ SanjayYadav – vrajesh
它只是打印get_template_url()和其他东西 –