First Steps on Joomla Framework

125 views
Skip to first unread message

Eric Fernance

unread,
Jan 28, 2014, 9:13:35 PM1/28/14
to joomla-dev...@googlegroups.com
Hi Folks,

Great work on the Joomla Framework.  Previously I have used Code Ignitor for developing standard alone web apps.  After the Ellis Labs  CI update from December 2012, I decided it was time to find a new development framework.

Initially I was trying to decide between Laravel or F3 (yes, I know they are very different).  When I read the announcement about the Joomla Framework reaching 1.0, I thought I might try this one and see if I could leverage any experience from component development.

To be honest, for the first day or two I thought I might have done something wrong.  I had been tempted to fall back on one of the other choices.  Now, after 3 days and some tears I am very happy that I stuck it out.  The learning curve is a bit steeper than I had expected but well worth the effort.

To that end, I was going to start a page on the wiki here [http://docs.joomla.org/Framework:Home](http://docs.joomla.org/Framework:Home) with some of the things that took some time to figure out.  I know these probably seem simple, but these were the points that caused me pain when first trying to get into the framework that might cause pain for others. i.e.:

* To use the default Joomla\Router\Router class you need to have .htaccess working to re-write URL's to remove index.php otherwise matching the route fails.  Also adding index.php to the route was resulting in an invalid routes.json file.
* When specifying the defaultController for the router using setDefaultController the namespaced controller class name needs to be used.
* Don't forget to pass in the Joomla\Registry\Registry object to the application when bootstrapping with valid config details to connect to the database
* How to create routes a bit more easily than using $router->addMap.  I know the framework-app shows how to use routes.json and decode this to array then pass to $router->addMaps(), which is what I eventually did.  It just took time reading through all the sample code.

So, after the overly long preamble.  My question I guess is, would the wiki be the best place to put this sort of page?  It the sort of information that doesn't belong in the source code docs but just would be convenient for when people are using google to try and find answers.

Thoughts would be great before I just run ahead and maybe end up either duplicating something else that already exists or that people feel is not really needed?

Cheers,
Eric. 

Don Gilbert

unread,
Jan 29, 2014, 11:04:46 AM1/29/14
to joomla-dev...@googlegroups.com
This is awesome. I'm glad you stuck it out to get through to a working concept app. Your findings will definitely be helpful for us writing better beginners documentation, as well as improving the framework.

The wiki is a good place for a "getting started" type introduction to the framework, at least until we find a better place for it.

Thanks!
Don

Eric Fernance

unread,
Jan 29, 2014, 7:05:51 PM1/29/14
to joomla-dev...@googlegroups.com
Okay thanks Don.

I have added the http://docs.joomla.org/Framework:Getting_Started page.  I have tried to make this a Q & A style format to make it a bit easier for people to find the information they are looking for quickly.  I will keep updating this as I come across things that might cause road blocks.

I have also linked it form the Framework:Home page by adding a new Getting Started section to the Framework:Home page.

Eric.



--
Framework source code: https://github.com/joomla/joomla-framework
Visit http://developer.joomla.org for more information about developing with Joomla!
---
You received this message because you are subscribed to the Google Groups "Joomla! Framework Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-frame...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-framework.

Reply all
Reply to author
Forward
0 new messages