Permalink
Browse files

Namespaced issues

  • Loading branch information...
1 parent a1306ef commit b98844f1956bc547d813c6ead9a70ff8ec6b63f7 @kvz committed Sep 29, 2008
Showing with 8 additions and 7 deletions.
  1. +1 −1 _tools/namespaced.js
  2. +4 −2 examples/php.example.js
  3. +3 −4 examples/php.namespaced.example.js
View
@@ -16,7 +16,7 @@ window.onload = function(){
*/
// Create PHPJS object
- window.$P = PHP_JS();
+ //window.$P = PHP_JS();
// Call a PHPJS function
p = $P.strpos('Kevin van Zonneveld', 'e');
View
@@ -1,5 +1,7 @@
-// call a PHPJS function
+// Include the php.js file.
+
+// Call a PHPJS function
p = strpos('Kevin van Zonneveld', 'e');
-// call another PHPJS function
+// Call another PHPJS function
d = date('F j, Y, g:i a');
@@ -1,8 +1,7 @@
-// create PHPJS object
-window.$P = PHP_JS();
+// Include the php.namespaced.js file.
-// call a PHPJS function
+// Call a PHPJS function
p = $P.strpos('Kevin van Zonneveld', 'e');
-// call another PHPJS function
+// Call another PHPJS function
d = $P.date('F j, Y, g:i a');

0 comments on commit b98844f

Please sign in to comment.