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()和其他東西 –