Coder Social home page Coder Social logo

symblog-docs's People

Contributors

dsyph3r avatar flojon avatar ganchiku avatar jaimesuez avatar nagodon avatar nickvergessen avatar osukaru avatar patriciomacadden avatar pwaring avatar rodrigodeaquino avatar rvgate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

symblog-docs's Issues

Incomplete steps

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.

SF 3

Any plans for doing this for SF 3?

Some practices could be changed for better ones, too.

Is there a typo in Part 1 "layout.html.twig

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.

Error with loading the data fixtures

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

PHPUnit with Forms

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());
}

Update doctrine deps git locations

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

PHPUnit error

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?

PHPUnit

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!

Additional Chapters

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?

Japanese translation

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!

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.