Exactly...!!

HTMLImpost and platform.js read the information from the files and gets it
back to the client side. The client then just reads that was provided by
the import and platform.js. Everything else on PHP is getting interpreted
except, for "<link rel="import" href=<?php echo
BaseUrl.'external/polymer/0.4.2/polymer/polymer.html';?>>" being used when
creating custom elements.

If there was a problem with the server interpreting PHP, then i would see
the same behavior in all other uses of href=<?php echo.....?>

--
Thanks
Romer Ventura

On Wed, Oct 22, 2014 at 11:36 AM, Scott Miles <[email protected]> wrote:

> >> Nope. That doesn't work.  I've tried it
>
> Yes, sorry, I did read that in your post, but I'm suggesting that it
> doesn't work because of some other misconfiguration.
>
> >> I think it maybe because the HTML import is being picked up by
> platform.js
>
> It can't have anything to do with HTMLImports or platform.js, because
> those are client-side technologies and PHP is purely server-side.
>
> It's important that you fully understand that statement for you to be able
> to diagnose this problem. =P
>
> >> If you look at the posted error it shows the beginning of the PHP tags
> and not being interpreted.
>
> The client sends some request to the server, the server sends back some
> data. What happens in the middle is invisible to the client (HTMLImports
> and/or platform.js in this case). It's the server's job to execute
> server-side tools like PHP and send the pre-processed data back to the
> client. It's in this last step that the PHP tags are converted, so this
> problem is server side (or the client is making requests in such a way that
> the server is not realizing PHP should be involved).
>
> On Tue, Oct 21, 2014 at 6:18 PM, Romer Ventura <[email protected]> wrote:
>
>> Nope. That doesn't work.  I've tried it. I think it maybe because the
>> HTML import is being picked up by platform.js
>>
>> If you look at the posted error it shows the beginning of the PHP tags
>> and not being interpreted.
>>
>>
>> On Tuesday, October 21, 2014, Scott Miles <[email protected]> wrote:
>>
>>> >  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.
>>>>
>>>
>>>
>>
>> --
>> Sent from Gmail Mobile
>>
>
>

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/CANfz%3DL7VnZA5JLgEm_iKF7G8krHGCpNFMyM-X3-%3DjX39SDXr-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to