marmelab / phpcr-browser Goto Github PK
View Code? Open in Web Editor NEWWeb interface for browsing PHPCR repositories, using Silex and AngularJS
License: MIT License
Web interface for browsing PHPCR repositories, using Silex and AngularJS
License: MIT License
I lost a lot of time here, because apache is "not so sweet" to debug.
The config on the docs:
<VirtualHost *:80>
DocumentRoot /path/to/the/browser/web
ServerName phpcr-browser.lo
AllowEncodedSlashes On
</VirtualHost>
Does not specify that you need the AllowOverride to be set. Since the browser has a specific .htaccess, it's needed. The errors without it are hard to debug. So it's good to make it clear on the docs.
Putting something like this on the docs, will help other people not so expert with apache configs as me:
<VirtualHost *:80>
ServerName xxxx
AllowEncodedSlashes On
DocumentRoot /path/to/the/browser/web
<Directory "/path/to/the/browser/web">
AllowOverride All
</Directory>
</VirtualHost>
No favicon found in the web root directory
web/
├── assets/
├── index.php
└── index_dev.php
Posted from SensioLabsInsight
when I add a property, then click on another node and then go back to the node where I added a property, the new property is not shown. however when I reload it appears.
The class
Igorw\Silex\ConfigServiceProvider
is declared but never used. You should remove theuse
statement.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Igorw\Silex\ConfigServiceProvider;
use PHPCRBrowser\Browser\Provider\BrowserControllerProvider;
use PHPCRBrowser\Browser\Provider\BrowserServiceProvider;
use Silex\Application;
use Silex\Application\UrlGeneratorTrait;
use Silex\Provider\TwigServiceProvider;
Posted from SensioLabsInsight
Hi,
Would be great to have Import / export workspace feature.
To backup, put staging data in production or production to staging or dev.
Do you plan to do that ?
Thanks
how hard would it be to split the actual phpcr browser into its own library and a silex provider and a symfony bundle that use the library? i think it would be very interesting to integrate this browser in a symfony application as well.
splitting a library out of the codebase could also solve the issue of supporting other phpcr implementations: if the actual silex app is only the bootstrap code, you could do a second app for jackalope-doctrine-dbal.
This should be mentioned in the README or, even better, set as requirement in composer.json
Did a clone, make install, copied prod.yaml-dist to prod.yaml and changed http://localhost:8080/server to http://localhost:8000/server for jackalope.jackrabbit_uri.
After a bin/run.sh, I see the app running in my browser. If I click "My Jackrabbit Repository" the loader bar on top of the page takes forever and then will just freeze at the end and not load anything.
If I switch prod.yaml to use both repositories (including doctrine-dbal), clicking "My Doctrine DBAL Repository" will produce an on screen error .."Uexpected error talking to the backend: An exception occured while executing 'SELECT 1 FROM phpcr_workspaces WHERE name = ?' with params["default"]: SQLSTATE[HY000]: General error: 1 no such table: phpcr_workspaces."
Is ther something I am missing. Does each repo have data already or no?
The README says it's better to use the PHP built-in webserver but API calls with containing periods confuse that server to go look for a specific file from the docroot instead of using index.php
.
I see the following possible resolutions:
/api
to /index.php/api
in api-foundation.js line 5-t
parameter) of the PHP built-in web server but supply a routing.php
file like suggested here.I'm facing with Error 500
when i browse into the second depth level.
From my project's symfony console I can view the paths:
$ bin/console doctrine:phpcr:node:dump --depth 2
ROOT:
cms:
pages:
routes:
content:
menu:
While in your phpcr-browser I can see only the root path
Please tell me how can I inspect the problem.
Thanks
Commented out code reduces readability and lowers the code confidence for other developers. If it's common usage for debug, it should not be committed. Using a version control system, such code can be safely removed.
use UrlGeneratorTrait;
}
$app = new PHPCRBrowserApplication();
//$app->register(new SessionServiceProvider());
$app->register(new UrlGeneratorServiceProvider());
$app->register(new TwigServiceProvider(), array(
'twig.path' => __DIR__.'/../views',
));
Posted from SensioLabsInsight
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.