NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Beginner Question about Preview and PHP blocks


Joined: 08 Jun 2009
Posts: 2
Reply with quote
Hey there,

When editing a PHP file. I find that if I got to preview. I get nothing but little blue buttons that say "PHP". I have to go over to the "run" button to see what my PHP does. To me this defeats the purpose of the "Splitted Preview"? What good is a preview if all you see are PHP place holders? Is there some way to fix this?

A lesser problem, on the side, when I go to the code navigator nothing seems to show up except strings and variables.

Sorry if these are common questions, I did my best to dig around before posting.
Thanks !
View user's profileFind all posts by redfishSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
It is impossible to "preview" php since it is server side code that has to be executed... There is little you can do about that.
What exactly do you miss in the navigator? You can define what it has to show by using the toggles on top of the window.
View user's profileFind all posts by BlizzSend private messageVisit poster's website


Joined: 08 Jun 2009
Posts: 2
Reply with quote
Blizz wrote:
It is impossible to "preview" php since it is server side code that has to be executed... There is little you can do about that.
What exactly do you miss in the navigator? You can define what it has to show by using the toggles on top of the window.


Thanks for the explanation. What is most noticeably missing are all my prints and echos. When I have the string or function, it sees it find. But when I echo / print the function it doesn't show up in the navigator.
View user's profileFind all posts by redfishSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
The code navigator is for your own code in the file only. So all classes, functions, variables and includes you have defined. print and echo are php commands and will never show up in the navigator.
View user's profileFind all posts by BlizzSend private messageVisit poster's website
Beginner Question about Preview and PHP blocks
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic