Comments (6)
Thanks for catching this one. The route class was missing a condition statement. Which version of the framework are you testing? This issue will be patch on 0.9.7.
from framework.
Nice!
php composer.phar show -i
composer/installers v1.0.17 A multi-framework Composer library installer
fancyguy/webroot-installer 1.1.0 A composer installer for libraries that live in an application webroot.
symfony/class-loader v2.5.0 Symfony ClassLoader Component
symfony/http-foundation v2.4.2 Symfony HttpFoundation Component
themosis/framework 0.9.6 The Themosis framework.
themosis/theme 0.9.6 The Themosis framework theme.
wordpress/wordpress 3.9.2
from framework.
The 0.9.7 patch is online. Can you please update your themosis/framework dependency to 0.9.7, test and tell me if everything goes right ?
Thanks!
from framework.
It works indeed. Thanks!
from framework.
Tip: you don't need to write the global $post
anymore. The closure contains the globals $post and $query(alias $wp_query) as arguments:
Route::any('page', function($post, $query){
return View::make('pages.template', array('page' => $post));
});
And the same is also true for controller methods.
from framework.
Nice. Looking forward to final version.
Would be happy to help if needed.
from framework.
Related Issues (20)
- Class DateField missing
- Metabox Field rules error message not showing up HOT 3
- Test (phpunit) has no access to config HOT 3
- Oddity in the Form handleRequest method HOT 7
- Trait 'Themosis\Core\Events\Dispatchable' not found HOT 1
- Themosis throws ErrorException for deprecations HOT 2
- themosis stores the node folder in the database HOT 2
- Defining routes to a controller, Reflection errors HOT 3
- Php artisan don't working after upgrade HOT 5
- Custom prefix routes in RouteServiceProvider.php
- User can directly access the theme directory
- Publish problem HOT 4
- Route controller declaration using array syntax
- Problem with connection after "vagrant up" command HOT 1
- Class FatalThrowableError not found
- Easy way to create Gutenberg blocks
- Wrong Twig Template Loading Order (App vs. Theme)
- Class \"Illuminate\\Foundation\\Bus\\PendingChain\" not found HOT 3
- Properly way to use form class and AJAX class
- Route using template not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from framework.