You are not logged in.

Important Note: This forum is being archived and will be completely locked down on the 7th of February. The new forum can be found at http://laravel.io.

Announcement

    Laravel 4 Advanced Architecture: Book Now On Sale

#1 2013-12-21 23:20:34

AraHabs
Artisan
Registered: 2012-12-28
Posts: 221

Andrew - Laravel 4 Starter Kit - Data Tables problem

Hi guys,

So a small problem. I am unable to edit a column with the $id.

What I would like to do is this:

 public function getData()
    {
        $associations = Association::select(array('associations.id', 'associations.city', 'associations.general_manager', 'associations.address as address', 'associations.telephone_number'));

        return Datatables::of($associations)

->edit_column('address', Helpers::linkAddress($address))

        ->add_column('actions', '<a href="{{{ URL::to(\'admin/associations/\' . $id . \'/edit\' ) }}}" class="btn btn-default btn-xs iframe" >{{{ Lang::get(\'admin/terms.edit\') }}}</a>
                <a href="{{{ URL::to(\'admin/associations/\' . $id . \'/delete\' ) }}}" class="btn btn-xs btn-danger iframe">{{{ Lang::get(\'admin/terms.delete\') }}}</a>
            ')

        ->remove_column('id')

        ->make();
    }

But I keep getting undefined variable: $address

Thanks,
Ara

Offline

Board footer

Powered by FluxBB

');