Created
January 9, 2015 23:11
-
-
Save tommymarshall/ee41e5c49c39420a7957 to your computer and use it in GitHub Desktop.
Themosis Routes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Home | |
Route::get('home', 'PagesController@home'); | |
// @about method always fires when viewing a page, no matter the page | |
Route::any('page' , [['about'], 'uses' => 'PagesController@about']); | |
Route::any('page' , [['vision'], 'uses' => 'PagesController@vision']); | |
Route::any('archive' , ['blog', 'uses' => 'BlogController@index']); |
Let me know how it goes. I will test this patch on several applications. If everything is ok, I will release a minor version of the framework so this can be fixed.
Regarding the POST
requests, let me know if you still get an error and otherwise, please paster your code so I can test it also.
Great! ran composer update
and that did the trick. Thanks a bunch! The POST requests still sadly do not work. Here's the code: https://gist.github.com/tommymarshall/e90112157a8d76c6d4f1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi tommy,
can you apply this "patch" on the
themosis-framework
Route.php class located:themosis-framework/src/Themosis/Route/Route.php
. Replace the lines102->112
by the following code:I've also updated the master branch of the
themosis-framework
so if you want to test this, simply update yourcomposer.json
file to use thedev-master
package and run acomposer update
.