dsyph3r / symblog Goto Github PK
View Code? Open in Web Editor NEWSymfony 2 Tutorial - Creating a blogging website [http://tutorial.symblog.co.uk]
Home Page: http://symblog.co.uk/
License: MIT License
Symfony 2 Tutorial - Creating a blogging website [http://tutorial.symblog.co.uk]
Home Page: http://symblog.co.uk/
License: MIT License
On run of php bin/vendors makes it to:
Installing/Updating doctrine-fixtures
HEAD is now at b4213c2 Merge pull request #207 from TomasVotruba/patch-1
Installing/Updating DoctrineFixturesBundle
Cloning into '/var/www/symblog/vendor//bundles/Symfony/Bundle/DoctrineFixturesBundle'...
Username for 'https://github.com': themullet
Password for 'https://[email protected]':
remote: Repository not found.
fatal: repository 'https://github.com/symfony/DoctrineFixturesBundle.git/' not found
sh: 1: cd: can't cd to /var/www/symblog/vendor//bundles/Symfony/Bundle/DoctrineFixturesBundle
Installing/Updating doctrine-migrations
HEAD is now at 5f9429e Merge pull request #450 from localheinz/fix/short
Installing/Updating DoctrineMigrationsBundle
Cloning into '/var/www/symblog/vendor//bundles/Symfony/Bundle/DoctrineMigrationsBundle'...
Username for 'https://github.com': themullet
Password for 'https://[email protected]':
remote: Repository not found.
fatal: repository 'https://github.com/symfony/DoctrineMigrationsBundle.git/' not found
Any suggestions?
Cheers
Hi guys,
I don't know what is going on, but I can't get to the website with the tutorial.
If hosting is issue, I can help with that, have multiple sites hosted and can take this over.
Hi,
I'm following your Symblog tutorial but i found some problems... When I define an entity without gets-sets methods and I try to do that with doctrine:generate:entities Blogger command, i get [RunTimeException] Bundle "Blogger" does not contain any mapped entities...
Well, I don´t like it but I can do the same with doctrine:generate:entity... Finally I have the entity with sets-gets methods at Blogger\BlogBundle\Entity\Blog.php and everything seems ok.
After that, i make the database but when I put doctrine:schema:create, it returns NO METADATA CLASSES TO PROCEED. cache cleaning does not solve the problem and the annotations are well because they proceed automatically from console instruction.
I don´t know the reason!!!
Maybe can help... I'm working under Windows 7, WampServer 2.2 with Symfony 2.1. Apache 2.2.22, PHP 5.4.3 and Mysql 5.5.24.
I can't go forward, I hope your answer!!!
Thank you!!!
I see the implementation of multi languages in your blog(Symblog). Could you please guide me how to implement it?
When I follow install instructions I'm getting this error after executing php app/console doctrine:fixtures:load
Fatal error: Declaration of Blogger\BlogBundle\DataFixtures\ORM\BlogFixtures::load() must be compatible with that of Doctrine\Common\DataFixtures\FixtureInterface::load() in src/Blogger/BlogBundle/DataFixtures/ORM/BlogFixtures.php on line 9
and
Fatal error: Declaration of Blogger\BlogBundle\DataFixtures\ORM\CommentFixtures::load() must be compatible with that of Doctrine\Common\DataFixtures\FixtureInterface::load() in src/Blogger/BlogBundle/DataFixtures/ORM/CommentFixtures.php on line 10
All I've done in order to fix this issue was modification of this files:
/src/Blogger/BlogBundle/DataFixtures/ORM/BlogFixtures.php
/src/Blogger/BlogBundle/DataFixtures/ORM/CommentFixtures.php
in both files I've added:
use Doctrine\Common\Persistence\ObjectManager;
and changed method declaration:
public function load($manager)
to:
public function load(ObjectManager $manager)
Now it's working.
In that file the code looks like:
/**
* @ORM\preUpdate
*/
public function setUpdatedValue()
{
$this->setUpdated(new \DateTime());
}
When it should look like this:
/**
* @Orm\PreUpdate
*/
public function setUpdatedValue()
{
$this->setUpdated(new \DateTime());
}
You will get an error when you run the command:
php app/console doctrine:generate:entities Blogger\BlogBundle
When I try to install vendors as per your instructions, few of the bundles are asking for account username and password.
[doctrine-fixtures]
git=http://github.com/doctrine/data-fixtures.git
[DoctrineFixturesBundle]
git=http://github.com/symfony/DoctrineFixturesBundle.git
target=/bundles/Symfony/Bundle/DoctrineFixturesBundle
[doctrine-migrations]
git=http://github.com/doctrine/migrations.git
[DoctrineMigrationsBundle]
git=http://github.com/symfony/DoctrineMigrationsBundle.git
target=/bundles/Symfony/Bundle/DoctrineMigrationsBundle
The following {% render 'BloggerBlogBundle:Comment:new' with { 'blog_id': blog.id } %}
from http://tutorial.symblog.co.uk/docs/extending-the-model-blog-comments.html does not work anymore:
An exception has been thrown during the rendering of a template ("No route found for "GET Comment:new"") in BloggerBlogBundle:Blog:show.html.twig at line 24.
See: http://symfony.com/blog/security-release-symfony-2-0-20-and-2-1-5-released
Just copy-pasting what the debug toolbar is telling me. I'm using 2.2.2 right now.
The Changelog.md file says:
Deprecated the following methods from the Session class: setFlash()
, setFlashes()
, getFlash()
, hasFlash()
, and removeFlash()
. Use getFlashBag()
instead which returns a FlashBagInterface
.
This is about the contact.html.twig file.
I updated to the following code in the following files:
contact.html.twig:
{% if app.session.getFlashBag.has('blogger-notice') %}
PageController.php:
$this->get('session')->getFlashBag()->add('blogger-notice', 'Your contact enquiry was successfully sent. Thank you!');
And I'm getting the flash message, just like it did with the deprecated functions.
I just wanted to know if there is some way to run this symfony application on windows enviroment?
In the user's profile when they click on mobile field to enter the mobile number, then numeric keypad should be displayed instead of text.
When I use tel tag as input type in the form to enable the numeric keypad in the mobile, It is not working.
Can anyone please help me with this issue
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.