bojanz / musicbox Goto Github PK
View Code? Open in Web Editor NEWSilex demo project (music portal)
License: MIT License
Silex demo project (music portal)
License: MIT License
As far as I can see, there is no way to add users an no way to login as admin. Correct? Left as an exercise?
git clone https://github.com/bojanz/musicbox.git
results in
.git
app
src
web
.gitignore
composer.json
composer.lock
LICENSE
README.md
consequently
Warning: require_once(J:\www\musicbox\web/../vendor/autoload.php): failed to open stream:
Copied vendor from silex-skeleton
Fatal error: Class 'Doctrine\DBAL\Configuration' not found in J:\www\musicbox\vendor\silex\silex\src\Silex\Provider\DoctrineServiceProvider.php
What now?
The likes aren't saved by the factory to the DB.
The following patch should fix this:
@@ -31,10 +31,11 @@ class ArtistRepository implements RepositoryInterface
'name' => $artist->getName(),
'short_biography' => $artist->getShortBiography(),
'biography' => $artist->getBiography(),
'soundcloud_url' => $artist->getSoundCloudUrl(),
'image' => $artist->getImage(),
+ 'likes' => $artist->getLikes(),
);
if ($artist->getId()) {
// If a new image was uploaded, make sure the filename gets set.
$newFile = $this->handleFileUpload($artist);
Hope this helps.
Hi, first of all I think you did a awesome job with this project. I use it as a blueprint for mine.
As the title says, I wonder why you put the app.php
and routes.php
files in the src/
folder instead of app/
. I am tempted to make this change in my project.
Could you elaborate on that ? Thanks.
First of all, thanks for this project; it makes understanding Silex a lot easier.
When I click on "My Profile" I get the following error:
Twig_Error_Runtime: Impossible to access an attribute ("id") on a boolean variable ("") in "profile.html.twig" at line 29
Any chance you could supply a fix for that?
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.