jonob / html Goto Github PK
View Code? Open in Web Editor NEWA port of Laravel 3's HTML class
A port of Laravel 3's HTML class
You are trying to merge two arrays with $attributes = $attributes + $defaults;
Since illuminate/support@3cd6abb the definition of register()
needs to change. Eliminate $app
parameter, and refer to $app
as $this->app
instead.
There's really no other way to contact you so I put this here : could you also port the String class from Laravel 3 as it isn't in Illuminate either ?
Getting the above error.
Laravel 4 has gained an HTML class, but it's still missing some of the stuff that I use in this class. It'd be awesome to have this class extend the base Laravel HTML class to add some of those missing items back in to the HTML helpers.
Is it possible to use e() in your port?
I'm getting the following message when adding to my service provider
Error: Class 'Jonob\HTML\HTMLServiceProvider' not found in /vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php line 123
HTML::action('AuthController@login', 'Login');
Doesn't generate the expected link. It just points to my root url eg. http://mylaravel4app.dev/
Suggestions?
Route::get('login', 'AuthController@login');
The use of $this->entities(...)
on list items (and elsewhere), means that you can't, for instance, create a list of links, since the HTML for the anchor links get converted to entities. I would expect to be able to do something like:
$links = [
HTML::route('join', Lang::get('home.sign_up')),
HTML::to('#', Lang::get('home.lost_your_password')),
HTML::route('contact', Lang::get('home.contact_us')),
];
echo HTML::ul($links, ['class' => 'unstyled']);
Would it not be better to allow developers to convert content to entities if they think it may contain something that may screw up their markup? Could each relevant method accept a new optional argument which decides whether the contents of the element are converted to entities or not?
Hello
In Laravel v3 is the configuration url and asset_url.
How can I put it in Laravel 4?
Olá.
No Laravel v3 existe a configuração url e asset_url.
Como eu posso coloca-la em Laravel 4?
Form and HTML need to be updated with the new vendor directory structure for L4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.