Well it does depending on which file you are asking about. I have my index.php with all my HTML, css, etc. On this index.php the <?php echo?> is getting processed. However, i created a folder "elements" where i have all my custom elements, but importing any polymer components with <?php echo ?> from within "elements/my-custom-element.html" will fail. Error reported in the dev tools console is: GET http://localhost/kesillo/Apps/KeShop/Rsrc/Elements/%3C?php 404 (Not Found) localhost/:1
So i can see that the <?php echo ?> is not being interpreted. So i changed the file file extension from my-element.html to my-element.php and i get the same exact error, for some reason the php code is not getting interpreted.. Any ideas? Thanks On Tuesday, October 21, 2014 1:22:03 PM UTC-5, Eric Bidelman wrote: > > Is PHP processing my-element.html? If it's not, than <?php echo ... ?> > won't get interpreted and you'll be left with the literal string "<link > rel="import" href=<?php echo BaseUrl.'external/polymer/0.4. > 2/polymer/polymer.html';?>>". > > > On Tue, Oct 21, 2014 at 12:03 PM, Romer Ventura <[email protected] > <javascript:>> wrote: > >> Hello, >> >> I am having some issues creating some custom elements. I am trying to do: >> my-element.html: >> <link rel="import" href=<?php echo >> BaseUrl.'external/polymer/0.4.2/polymer/polymer.html';?>> >> >> The above will not work I have to do: >> <link rel="import" >> href="../../../../external/polymer/0.4.2/polymer/polymer.html"> >> >> On my index.php the php echo for the html import works, i am thinking it >> is because JS cant resolve the "php echo" part... >> >> Is what i am trying to do not possible, or are there any work around..? >> >> Thanks. >> >> Follow Polymer on Google+: plus.google.com/107187849809354688692 >> --- >> You received this message because you are subscribed to the Google Groups >> "Polymer" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/polymer-dev/1d3d9332-2b58-4a85-a8c5-b901cf0e29a4%40googlegroups.com >> >> <https://groups.google.com/d/msgid/polymer-dev/1d3d9332-2b58-4a85-a8c5-b901cf0e29a4%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > Follow Polymer on Google+: plus.google.com/107187849809354688692 --- You received this message because you are subscribed to the Google Groups "Polymer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/6d7b7842-020d-4dab-a4bf-73488d8293e2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
