|
using html in php files is state of the art, so please ....
|
||||||||||||
|
Site Admin
|
I'm not sure I got it right. What's expected from a php script like below?
mytest.php:
and from the script below remove_account.php
|
||||||||||||||||
_________________ The PHP IDE team |
|
Dimitri, In both cases absolutely nothing would be shown. The html preview tab should only process html tags and totally ignore the php ones. Maybe I'm wrong but I get the feeling you might be confused because you output all html in a php file from within php tags.. ie.. (in a very simplified form ) <?php echo "<html><body><p>hello there</p>"; echo $fredsname; echo "</body></html>"; ?> Whereas what we are basically meaning is this.... <html> <body> <p>hello there</p> <?php echo $fredsname; ?> </body> </html> now the file in question would still have a php extension of course so that it is parsed but it is in effect basically a html file with php elements. So what would be ideal for us is if the html preview tab displayed it as a normal html file but just ignored everything between the php tags. If we need to see the result of the php we can either run the debugger or just view the file through our local webserver. Does this make things clearer or have I totally confused the issue? Richard. |
||||||||||||||||||
|
|
This would be a great addition. We never use any .html files in our projects. Everything is .tpl or .tpl.php or .php or something besides .html.
|
||||||||||||
|
HTML view not available in PHP templates? |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by