Comments (4)
Config the uri service currectly:
$di->set('url', function() use (){
$url = new Phalcon\Mvc\Url();
$url->setBaseUri('/'); // here
return $url;
});
https://github.com/snowair/phalcon-debugbar/blob/master/README_zh.md#ε ³δΊ-baseuri
from phalcon-debugbar.
thank you. But my config the uri service:
$di->set('url', function () use ($config) {
$url = new UrlResolver();
$url->setBaseUri($config->application->baseUri);
return $url;
});
In config file : 'baseUri' => 'http://dashboard.somo.local/'
I can not change 'baseUri' => '/' . because this affects config my website.
have other solution to this issue ?
from phalcon-debugbar.
You should find out a way, to render the route /_debugbar/assets/stylesheets
from the wrong result:
http://dashboard.somo.local_debugbar/assets/stylesheets
to the right:
http://dashboard.somo.local/_debugbar/assets/stylesheets
from phalcon-debugbar.
in phalcon simple-service-provider ind .htaccess
`
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access plus 1 month"
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
and add in app\Bootstrap.php function getOutput()
(new \Snowair\Debugbar\ServiceProvider(MYPATH.'config/debugbar.php'))->start();
in
from phalcon-debugbar.
Related Issues (20)
- PHP 7 Support HOT 2
- Uncaught Error: Access to undeclared static property
- Variables values not showing up HOT 1
- Debugbar messages not working HOT 1
- TemplatesWidget Error HOT 1
- Ajax display message HOT 6
- debug db errror HOT 1
- Problems loading _debugbar resources, add slash before url. HOT 1
- Call to undefined method App\Middleware\Url::getStatic() HOT 1
- _debugbar/assets/javascript?m=frontend&1523208358 HOT 1
- Unable to add \Throwable using the PhalconDebug helper HOT 1
- Unable to get to work with simple service provider example
- Warning: get_class() expects parameter 1 to be object
- Static url on subdomain
- doesn't work
- syntax error, unexpected '$classname' (T_VARIABLE) HOT 4
- does not work with Phalcon version 4.0.0 HOT 10
- Error Phalcon 4 HOT 1
- [SOLUTION] Phalcon 4.1.0 - \Profiler::startProfile() must be of the type string, null given
- [SOLUTION] Warning: Illegal offset type in /vendor/snowair/phalcon-debugbar/src/PhalconDebugbar.php on line 419 / 432
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 phalcon-debugbar.