GithubHelp home page GithubHelp logo

Render view for sitemap about bladeone HOT 4 CLOSED

eftec avatar eftec commented on May 18, 2024
Render view for sitemap

from bladeone.

Comments (4)

m-mohr avatar m-mohr commented on May 18, 2024

Not a problem with BladeOne, check http://php.net/manual/de/function.header.php how to use header() function properly.

from bladeone.

jorgecc avatar jorgecc commented on May 18, 2024

I added an example of json.
In the php file
...
$drinks= array('Cocacola','Pepsi','Fanta','Sprite','7up');
$json=json_encode($drinks);
header('Content-Type: application/json');
echo $blade->run("TestJson.example",['json'=>$json]);

in the template example.blade.php
{!! $json !!}

from bladeone.

zaingithub avatar zaingithub commented on May 18, 2024

Thank you... I set ob_start(); before echoing the blade and it works. :)
ob_start();
header("HTTP/1.1 200 OK");
header("Status: 200 OK");
header("Content-type: text/xml");

Anyway, your blade doesn't ignore any @media screen from css in <style> area. Can you solve it?
screenshot_178

<style> @media screen and (max-width:500px){.class_box{width:48%}}@media screen and (max-width:323px){.class_box{width:99%;height:150px}.class_box a{height:130px}ul.class_rand-text li{width:100%;float:none}} </style>

from bladeone.

jorgecc avatar jorgecc commented on May 18, 2024

you should escape every "@" with a double @@ , for example @@media

Based in laravel's blade
http://stackoverflow.com/questions/29450708/using-at-sign-in-php-laravel-strings

from bladeone.

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.