problem about laravel-routing-Collection of common programming errors


  • core_m
    model controller laravel laravel-4 laravel-routing
    I can’t get rid of the errors. I’ve created an model, and have functions in controllers and a route, but I get errors.my model(newsticker.php):<?phpclass Newsticker extends Eloquent {protected $table = ‘aac_newsticker’;protected $fillable = array(‘label’, ‘content’);public $timestamps = true; }my controller (also used for other functions, but used also for newstickers):<?phpclass NewsController extends BaseController {/*** News Repository** @var News*/protected $news;public function __cons

  • teresko
    php laravel laravel-routing
    I’m trying to access the name of the current controller and the current method to pass it to my view as a variable. I’ve tried several ways from pointers I found online but they don’t work so I assume they were for Laravel 3.Here is what I’ve triedRequest::$route->controllergivesAccess to undeclared static property: Illuminate\Support\Facades\Request::$routeandRequest::route()->controllergivesCall to undefined method Illuminate\Http\Request::route()

Web site is in building