<?php Route::controller('/', 'SnippetsController');
snippetsController:
<?php class SnippetsController extends BaseController { public function getIndex(){ return View::make('snippet.new'); } public function postIndex() { return 'post'; } }
snippet/new.blade.php:
@extends('master') @section('container') {{ Form::textarea('snippet') }} {{ Form::submit('Save') }} {{ Form::close() }} @stop
teoretycznie naciśnięcie [Save] powinno odpalić metodę postIndex(), jednak z jakichś powodów cały czas pokazuje mi getIndex()
co robię źle?
podbijam