Git Product home page Git Product logo

Comments (4)

snowair avatar snowair commented on August 24, 2024

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.

gpphong8th2 avatar gpphong8th2 commented on August 24, 2024

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.

snowair avatar snowair commented on August 24, 2024

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.

luguiant avatar luguiant commented on August 24, 2024

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"

# add options Options -MultiViews RewriteEngine On RewriteRule ^$ public/ [L] RewriteRule ^((?s).*)$ public/$1 [QSA,L]
 # 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.