Giter VIP home page Giter VIP logo

Comments (4)

Chado avatar Chado commented on May 18, 2024

Looks like github obfuscated my code...

i've added the desired outcome to this updated pastebin:

http://pastebin.com/XRqpw9CV

from xhp-lib.

Chado avatar Chado commented on May 18, 2024

Basically, in a sense.. i'm looking to use XHP to help with building FBML mashups... but also, I notice a problem as XHP tries to render the FBML sytanx:

ie: if I render() the following from within an element class:

<fb:friend-selector uid="$uid" name="uid" idname="referrer" prefill_id=""/>

It will try to use XHP to render <fb:friend-selector (expectedly).

Is there a way to get FBML/XHP to play nice?

I thought adding the following might work, but no luck:

protected $tagName = 'fb:friend-slector';

from xhp-lib.

Chado avatar Chado commented on May 18, 2024

I guess I could theoretically add every fbml element to html.php? I'm hopeful there is another way...?

from xhp-lib.

laverdet avatar laverdet commented on May 18, 2024

So with regards to the pasted code, you should try doing echo $el->__toString() so that you can see what the exception is. Zend has a design flaw where exceptions thrown from a string cast result in a fatal instead of unwinding the stack like they should. If you manually call __toString() you can see what the exception is and correct it.

With regards to FBML you will have to define them all yourself. Check out php-lib/html.php -- we define each and every HTML element you can use, including attributes and children. XHP has no idea what you want to render until you tell it what to do.

from xhp-lib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.