Skip to content

Instantly share code, notes, and snippets.

@nerdmom
nerdmom / language-laravel-blade-extension.php
Created June 3, 2012 10:46
Language Laravel Blade Extension
<?php
/**
* Compiles language strings
* Standalone:
* {{"some.string_here"}} = <?php echo \Lang::line("some.string_here")->get(); ?>
* Not Standalone (ie, within a function,etc)
* {"some.string_Here"} = \Lang::line('some.string_here')->get()
* @param string Template
* @return string Template
**/
<?php
/**
* A custom view class that is used for themeing
*
* PHP versions 4 and 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
// Makes it extremely easy to integrate code igniter and smarty as well as provide layout capabilites
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
require "smarty/Smarty.class.php";
class Template extends Smarty{
var $theme = "default";