Support the ongoing development of Laravel.io →
posted 9 years ago
Blade

Hello, I'm very new in laravel and php and hope that somebody can help me.

I want to add this code:

$atts = array( "id" => 3, "post_id" => $actor['id'], ); rating_form( $atts ); ?>

to laravel blade view and I'm get this exception:

Symfony \ Component \ Debug \ Exception \ FatalErrorException Call to undefined function rating_form()

The function "rating_form" is in an external php file "inc.php" I'm include this file in the main.view with the following code: <?php include('rating-form/inc.php'); ?>

best regards

johnvoice

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

johnvoice johnvoice Joined 23 Oct 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.