. Rocky The Rebel Watch Online - RockTheWeirdOne (Full Movie). Rocky- The Rebel 720p download / download movies .Q:
How to return data from helper in HTML.Blade
Currently I'm using a helper that returns the value:
{{ HTML::encode($data['value']) }}
Is it possible to return this value directly to the HTML.blade view?
A:
You can use a variable in a view and pass it to the helpers as a parameter:
{{ HTML::encode(view('your_controller', array('value' => $data['value'])) ) }}
or without changing the helper:
{{ HTML::encode(View::make('your_controller', array('value' => $data['value'])) ) }}
# Generated by Django 2.2.5 on 2020-05-17 00:16
import logging
import django
from django.db import migrations, models
logger = logging.getLogger(__name__)
class Migration(migrations.Migration):
dependencies = [
('hb', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='TaggedAttribute',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('tag', models.CharField(max_length=100, verbose_name='Tag')),
('attribute', models.CharField(max_length=100, verbose_name='Attribute')),
('value', models.TextField(verbose_name='Value')),
],
),
migrations be359ba680
Related links:
Comments