Joomla! as application development platform

57 views
Skip to first unread message

wasabi

unread,
Mar 20, 2012, 11:06:36 AM3/20/12
to Joomla! CMS Development
Hi,

I tried to add a forth application to Joomla! (site, administrator,
installation, myapp).

I found that I have to add may app inside the code of
JApplicationHelper::getClientInfo('myapp')
This object seems to belong to the platform code (the file is in the
libraries path).
It seems to me hardcoded.

My proposal is to separate this functionality into a registration
process.
JFactory or JApplication should register the applicationwith its name
and path and the client number (which would be 3 in my case) is
assigned at that time. access to the application may be with its name,
not the number, which may vary.

this is a proposal to the developer team. IMHO this is a step forward
to separate CMS and platform and avoids core hacks.

What is your thinking on that?

piotr_cz

unread,
Mar 21, 2012, 4:34:06 AM3/21/12
to Joomla! CMS Development

Did you check Platform examples? (https://github.com/joomla/joomla-
platform-examples)
I'd say that it's done the way you describe but haven't really
checked.

Anyway you may be luckier with getting response to Joomla Platform
related stuff on it's forum: https://groups.google.com/group/joomla-dev-platform

rmcrn

unread,
Mar 21, 2012, 2:25:25 AM3/21/12
to Joomla! CMS Development
Hi Wasabi,

there is an solution without the core hack.
At first point on JFactory::getApplication(); it loads the default
Joomla admin site and installation scope.
register your custom application with
$obj = new stdClass;

// Custom Client
$obj->id = 3;
$obj->name = 'myApp';
$obj->path = JPATH_SITE.'/myAppRootFolder';
//expand it here if needet

//register an the new Application Scope Object
JApplicationHelper::addClientInfo($obj );

//getting the myApp
$myApp= JFactory::getApplication(3);

Does it helps you?

Amy Stephen

unread,
Mar 21, 2012, 12:46:17 PM3/21/12
to joomla-...@googlegroups.com
Definitely need the application driven out of a table (or data source of some sort). We also need to clean up the "client" versus "application" nomenclature that follows.

I am certain this is somehow in the plans - agree that the Platform list is the best place to discuss this. Andrew or Louis will respond with their plans on that, I am certain.


--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.


Mao Garzón

unread,
Mar 21, 2012, 3:43:02 PM3/21/12
to joomla-...@googlegroups.com
This is a great solution!

Thanks

2012/3/21 Amy Stephen <amyst...@gmail.com>

Júlio Pontes

unread,
Mar 21, 2012, 4:19:20 PM3/21/12
to joomla-...@googlegroups.com
I´ve a propose to this. I´m working on a prototype.
Reply all
Reply to author
Forward
0 new messages