>  file extension from my-element.html to my-element.php

That should work. The point is that PHP is a server side tech that does
it's thing before the file ever gets to the browser (or has anything to do
with Polymer). When the server gets a request for *.php, it generally runs
that file through PHP and lets PHP send whatever result it wants back to
the client.

You can still support elements/*.html files, but you'd have to configure
your server so it knows that requests for those files should go through the
PHP parser.


On Tue, Oct 21, 2014 at 12:30 PM, Romer Ventura <[email protected]> wrote:

> 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]> 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].
>>> 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
> <https://groups.google.com/d/msgid/polymer-dev/6d7b7842-020d-4dab-a4bf-73488d8293e2%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/CAHbmOLawOjBAJXh%3D%3DYoeTOE%2Bb3dqZ1itdhQdKi3iqqS3EXZo4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to