Is there any documentation bundle for symfony? - symfony

Is there any documentation bundle for Symfony? Where simple help pages can be created / edited? Or separate software that can be integrated but not in iframe?

For real good documentations Sphinx is much better. You can generate different formats from your sources it's very cool.
http://www.sphinx-doc.org/en/stable/
The only bundle for SF i know is the APIDocBundle but that is more for Api documentations.
https://symfony.com/doc/master/bundles/NelmioApiDocBundle/index.html

Related

How to include resources and bundles with Addons?

When making a plone 5 addon, how do we add our own resources to the registry now? (aka our own css and js to the outgoing bundles?)
I've read http://docs.plone.org/adapt-and-extend/theming/resourceregistry.html and it isn't helpful...
Can someone point me to a working example of a collective addon or some better addon documentation?
vangheem's example.plone5resource in the collective on github has examples of several strategies. The examples vary with the extent to which you need requirejs to handle dependencies and whether or not you want the resources compiled by the bundle manager. "Legacy" bundles are the easiest if you're updating a Plone 3 or 4 resource.

How to publish my symfony2 bundles?

I am trying to find a documentation or a tutorial about creating and publishing symfony2 bundles for other developer use.
I tried to look at some source code for some public bundles but it seems it needs more in dept understanding.
Is there any official documentation about this ?
You can find most of the recommendations from the official symfony documentation : http://symfony.com/doc/master/cookbook/bundles/best_practices.html
I also encourage you to read this slides from the famous #stof70 and #lsmith, that exposes the most recent best practices about bundles (composer, travis, knpbundles, etc) : http://friendsofsymfony.github.com/slides/there_is_a_bundle_for_that.html#1
There is no official documentation on this topic. But from my point of view I can tell you, that most important things for you bundle are:
Uniqueness
README
Tests
Avoiding dependencies
Good practice also is to tag stable releases.
By the way, at KnpBundles you can see the number left to the bundle name. It represents respectability of bundle within community. You can check most respectable and the looser ones, compare and analyze them to define points, that make bundles successful.

using symfony bundles

I am new to symfony, so may be it's not a good question...
If any symfony1 plugin works in Symfony2?
How to install new bundle in Symfony2 or where can I learn about it?
Is there any good place to look after bundles?
Is there a bundle for resizing images?
No. Symfony2 is completely different. But some symfony1 modules have been ported to Symfony2.
Usually each bundle provides instructions for setting it up. Take a look at ElnurBlowfishPasswordEncoderBundle for an example.
KnpBundles is the de-facto place for searching bundles.
http://knpbundles.com/search?q=imag

Symfony2 Backend?

I am new to Symfony, please don't scold me about this question.
I read in a Symfony 1.4 book that there is a functionality of adding backends to your applications via doctrine:generate-admin or generate:app backend, implementing CRUD operations.
Now I wonder, is there anything similiar with Symfony2.0?
Basically I have an user management and a database in the background that I would love to have available for my Admin Users, but do I have to code it myself (i.e. securing the are /admin, creating templates, classes, methods etc. that fulfill this tasks) or can it be done more easy by using some kind of an already existing backend functionality?
Thanks!
EDIT: Also read there's a plugin called "Apostophe" - but isn't there anything included with SF2 or are there any preconfigured SF2 Versions that already come with Backend solutions?
There's the SonataAdminBundle (and possibly a few more I haven't seen) that helps provide an admin system, however this area is still being worked on heavily by the Symfony2 community.
Lukas has put together a blog article on the current state of development of a Symfony2 CMF, with some rough timescales - State of the Symfony2 CMF
Hope this helps!
Also there is another bundle for managing the admin. You can take a look here http://knpbundles.com/cedriclombardot/AdmingeneratorGeneratorBundle
For "admin generation", Symfony2 is not yet with the code generation on that aspect. The base is VERY STRONG. Remember Symfony2 is still at 2.0 stage. (Not 2.1++ like symfony1).
If you want cut and paste code. Symfony2 is not exactly for that.
DISCLAIMER
I am more specialized in frontend than backend, but I got around stuff. But Thanks to Symfony2. I can be on both sides. So I speak from this context.
CAVEATS
What I call "good stuff".
Only using ONE {{ form_widget(form) }} that Symfony form documentation recommends ... and not explictly cut and pasting from the Twig tutorial that is /meant/ to show how to do theme... not to implement like it is shown.
Thinnest controller methods possible
... out of scope of this post.
SO
My best advice is serious RTFM, a few times, with Symfony books. It is scary, but I am working with it since three months and re-reading a lot. Everytime I get excited with gems.
ANSWER IN QUESTION
My current choice of bundles is:
FR3DLdapBundle, with FOSUserBundle
MopaBootstrapBundle along with all code generated with HTML/CSS structure Twitter Bootstrap gives. (if you haven't heard of it, yet, where were you?)
AsseticBundle with proper {%- javascript %} inclusion
And the rest is contextual.
My READ and RE-Read list
A hidden gem and very helpful blog posts were for me from:
Problematic's blog post series "On a diet"
Matthias Noback
Liip Symfony2 tagged blog posts, but mostly the Table Inheritance topic
and CraftItOnline
For the sake of completeness there is a native way to generate CRUDs:
php app/console doctrine:generate:crud
This command will ask to you some information, like the entity, if you want a write action, the configuration format or the base route prefix.
In my opinion this is the fastest and light way to quickly generate a controller to create, read, update or delete your entities, so it is good on simple projects or to code a basic CRUD inside a little Bundle.
Official documentation: http://symfony.com/doc/master/bundles/SensioGeneratorBundle/commands/generate_doctrine_crud.html

Pointers for getting started with SilverStripe modules

I am new to SilverStripe.
I would like to know a good place where I can start making modules for SilverStripe; some good tutorials to get me started.
A SilverStripe module can do practically anything, so it's hard to say where to get started.
The following Wiki page has some very basic startup information:
SilverStripe Wiki - Creating Modules
Beyond that, I'd recommend reading up on how to use ModelAdmin to create simple administration interfaces in the CMS, and maybe take a good look through the API Docs to get an idea of what is available to use.
However, there is nothing fundamentally different about modules as there is about any other site functionality (or even themes) - it all uses the same API and structure - so maybe download a few popular modules to see how they're built.
Finally, SSBits is also a particularly good tips & tutorials website for SilverStripe, and the SilverStripe Forum and IRC channel are useful too.
I recommend the SilverStripe book "The Complete Guide to CMS Development", you can find it at Amazon or view it online at Google Books, it is not a complete reference but a good start to module development.
It has many examples, using a complete example project (with downloadable code) and some additional recipes for frequent tasks.
Here are some more up-to-date resources...
Module structure:
http://docs.silverstripe.org/en/developer_guides/extending/modules/
Publishing modules:
http://docs.silverstripe.org/en/developer_guides/extending/how_tos/publish_a_module/
SilverStripe video lessons:
http://www.silverstripe.org/learn/lessons/
If you're still unsure, I can recomment the book "SilverStripe 2.4 Module Extension, Themes, and Widgets: Beginner's Guide" - targeting the current SilverStripe version.
Disclaimer: I'm the author of the book, but given the title it should fit your requirements well...

Resources