dsyph3r / symblog-docs Goto Github PK
View Code? Open in Web Editor NEWTutorial for symblog - Creating a blog in Symfony2
Home Page: http://tutorial.symblog.co.uk
Tutorial for symblog - Creating a blog in Symfony2
Home Page: http://tutorial.symblog.co.uk
At configuration-and-templating.html the step Creating never mentioned the console and what to do next. Thinking that with the command I set the configuration exactly as the tutorial, I didn't pay much attention and for my surprise I had a php file instead of yml. And for the Cleaning up section I couldn't find information where to save the twig file.
For my surprise, I had erased a few files, I file with no evident location to be saved, a different configuration.
After erasing the framework (bad idea) trying desesperate to restore my framework, I had a corrupt Symfony I don't know how to get back! The thing is that, while I am writing this, I founded that, something I thought was something like "more information if you're interested", there was the location where I had to save the twig!
Don't assume a user will understand everything, we cannot read your mind. Describe more what a user will find by clicking a link, if you want to skip the details where user should save the file (or something else), like you did at the begining by saying that the documentation at the official site was enough to us to understand how to set the enviroment.
Are you interested in any contributed chapters? I have a non-pushed branch that integrates the FOSUserBundle for the user stuff along with changes to the existing stuff to make use of the real users now. Do you want a chapter on that?
I get the following error in the Testing Part:
There was 1 error:
1) Blogger\BlogBundle\Tests\Twig\Extensions\BloggerBlogExtensionTest::testCreatedAgo
InvalidArgumentException: You must not expect the generic exception class.
/Users/jaimesuez/Sites/symblog/src/Blogger/BlogBundle/Tests/Twig/Extensions/BloggerBlogExtensionTest.php:23
FAILURES!
Tests: 4, Assertions: 14, Errors: 1.
It's related to this part of the BloggerBlogExtension.php
:
<?php
// src/Blogger/BlogBundle/Tests/Twig/Extensions/BloggerBlogExtensionTest.php
namespace Blogger\BlogBundle\Tests\Twig\Extensions;
use Blogger\BlogBundle\Twig\Extensions\BloggerBlogExtension;
class BloggerBlogExtensionTest extends \PHPUnit_Framework_TestCase
{
public function testCreatedAgo()
{
//....
// Cannot create time in the future
$this->setExpectedException('\Exception');
$blog->createdAgo($this->getDateTime(60));
}
Thanks!
I have a problem running PHPUnit:
Fatal error: Call to undefined method PHP_CodeCoverage_Filter::getInstance() in
C:\xampp\php\phpunit on line 39
I installed PHPUnit via composer in Windows 7 with Xampp 3.1
Any idea?
The project's webpage is offline in http://tutorial.symblog.co.uk/, anybody knows where I can find it?
Hello!
I have translated into Russian language this tutorial:
http://symfony.in.ua/
When will chapter 7 and more?
In [Part 3], DoctrineFixturesBundle
[DoctrineFixturesBundle]
git=http://github.com/symfony/DoctrineFixturesBundle.git
target=/bundles/Symfony/Bundle/DoctrineFixturesBundle
should be updated to
[DoctrineFixturesBundle]
git=http://github.com/doctrine/DoctrineFixturesBundle.git
target=/bundles/Symfony/Bundle/DoctrineFixturesBundle
version=origin/2.0
In [Part 4], DoctrineMigrationsBundle
[DoctrineMigrationsBundle]
git=http://github.com/symfony/DoctrineMigrationsBundle.git
target=/bundles/Symfony/Bundle/DoctrineMigrationsBundle
updated to
[DoctrineMigrationsBundle]
git=http://github.com/doctrine/DoctrineMigrationsBundle.git
target=/bundles/Symfony/Bundle/DoctrineMigrationsBundle
version=origin/2.0
Any plans for doing this for SF 3?
Some practices could be changed for better ones, too.
I get the following error:
There was 1 error:
1) Blogger\BlogBundle\Tests\Controller\PageControllerTest::testContact
InvalidArgumentException: The form field "blogger_blogbundle_enquirytype[name]" does not exist
/Users/jaimesuez/Sites/symblog/vendor/symfony/src/Symfony/Component/DomCrawler/Form.php:358
/Users/jaimesuez/Sites/symblog/src/Blogger/BlogBundle/Tests/Controller/PageControllerTest.php:48
Issue related with this code:
<?php
public function testContact()
{
$client = static::createClient();
$crawler = $client->request('GET', '/contact');
$this->assertEquals(1, $crawler->filter('h1:contains("Contact symblog")')->count());
// Select based on button value, or id or name for buttons
$form = $crawler->selectButton('Submit')->form();
$form['blogger_blogbundle_enquirytype[name]'] = 'name';
$form['blogger_blogbundle_enquirytype[email]'] = '[email protected]';
$form['blogger_blogbundle_enquirytype[subject]'] = 'Subject';
$form['blogger_blogbundle_enquirytype[body]'] = 'The comment body must be at least 50 characters long as there is a validation constrain on the Enquiry entity';
$crawler = $client->submit($form);
$this->assertEquals(1, $crawler->filter('.blogger-notice:contains("Your contact enquiry was successfully sent. Thank you!")')->count());
}
Hi, I read symblog, and love this tutorial, and now I have translated all chapters in Japanese.
I have not push to github, but I will soon.
Is there anything I need to follow to open this contents in Japanese?
I'm hoping the upcoming articles, too.
Thank you for creating symblog and its tutorial!
Just a note that I had tried to translate this documentation into Traditional Chinese there:
https://github.com/kiang/symblog-docs-tw
For anyone who interested in contributing, please fork it and pull back. Or just submit an issue to me if you don't know how to start. ;)
First of all many thanks for the tutorial, is really great for learning Symfony2!
In part 3 of the tutorial, when I did
php app/console doctrine:fixtures:load
I get the following error:
PHP Fatal error: Declaration of Blogger\BlogBundle\DataFixtures\ORM\BlogFixtures::load()
must be compatible with that of Doctrine\Common\DataFixtures\FixtureInterface::load() in
/Users/jaimesuez/Sites/symblog/src/Blogger/BlogBundle/DataFixtures/ORM/BlogFixtures.php on line 10
I hope you can help with this
When I use "{% extends '::base.html.twig' %} I am getting the welcome screen as it looks like it is pulling the base.html.twig under app\Resources\views\default instead of the intended location of Blogger\BlogBundle\Resources\views\base.html.twig.
Changing the extends command to {% extends 'BloggerBlogBundle::base.html.twig %} fixes it for me.
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.