simply-basic
12 Dec 2007, 10:40 PM
Ok, so I'll be the first to admit that I'm absolutely a beginner. But hey, we've all got to start somewhere, right?
So my question is this: can I use PHP calles in the javascript? I've read online that you can change your .js file to .php and it may work, but that hasn't worked for me. What I'm doing is I'm trying to mesh an application with Wordpress, and I want a PHP call. For instance, I was examining the example files just to see what I could do and I tried the following:
...............
getStartConfig : function(){
return {
title: '<?php bloginfo('name'); ?>',
iconCls: 'user',
.................(I've left off the rest of the code)
<?php bloginfo('name'); ?> is a valid wordpress PHP call. I'm sure there's a simple answer to this, but like I said, I'm a complete beginner. Thanks in advance guys, sorry if this has been addressed else where.
So my question is this: can I use PHP calles in the javascript? I've read online that you can change your .js file to .php and it may work, but that hasn't worked for me. What I'm doing is I'm trying to mesh an application with Wordpress, and I want a PHP call. For instance, I was examining the example files just to see what I could do and I tried the following:
...............
getStartConfig : function(){
return {
title: '<?php bloginfo('name'); ?>',
iconCls: 'user',
.................(I've left off the rest of the code)
<?php bloginfo('name'); ?> is a valid wordpress PHP call. I'm sure there's a simple answer to this, but like I said, I'm a complete beginner. Thanks in advance guys, sorry if this has been addressed else where.