-
Notifications
You must be signed in to change notification settings - Fork 0
Home
xCIDeveloper 1.1 released as re-initiation of the project as a huge community is using it. Your emails and testimonials has encouraged us to re-open the product development.
xCIDeveloper installs in Joomla 1.5, 1.6, 1.7 and 2.5 same way and components developed in xCI works same in any of joomla version. create once and use in any of joomla versions. http://www.xavoc.com/ [EDIT] Now its a Registered Component in Joomla http://archive.extensions.joomla.org/extensions/miscellaneous/development/16143 V1.0 released ... [/EDIT] This was our first contribution to community infect for two communities CI (Codeigniter) and Joomla. It’s a merging of best of both. Currently its in beta release so there can be some problems though we have used this in so many productions, so don't forget to post a email about that or post your discuss at xavoc.com/?page=xcideveloper.
XCI system merges the two wonderful systems available in PHP development word CI (Codeigniter the powerful framework for developers) and Joomla (Powerful CMS to manage your sites). Yes joomla has its own framework but there is a huge community working on CI and once a person starts working in CI he/she rarely accepts any other framework for development due to its simplicity, very fast learning curve and still its complete for any kind of development. But Joomla regularly attracts them as a CMS to deliver their sites faster but again component development in joomla looks complex for CI developers so .. here we are.. Now develop your components in CI with xCIDeveloper.
Here are a few additions you can use for much faster process
$this->load->view(viewname,data,return view true/false, parse of content.prepared true/false);
this is one addition to parse your contents with joomlas content plug-ins. means by this last argument as true your content is parsed by joomas plug-ins
you can call any of your controller and its function by passing querystring
index.php?option=com_{yourcomponent}&controller;={your ci controller}&task;={your ci function}
But from a lot of points as in admin you can pass only task as fastest way so instead of passing controller and task you can pass directly task=controller.function example
index.php?option=com_{yourcomponent}&task=welcome.help
will call welcome controller's help function
You can use default CI views but if you want to take advantages of joomlas layout (To get best in menu assignment, otherwise mostly you will use external menus and url as defined above) just do the followings
- in views folder make a FOLDER with your view name instead viewname.php file.
- In that folder make view.html.php file (Yes always view.html.php or view.raw.php or view.pdf.php etc. )
- In your this View FOLDER make another FOLDER named tmpl
- In this tmpl folder make default.php as your default layout or xyz.php for xyz layout
- Now put this code in your view.html.php file (again yes, always this code without any change) and you are ready to go.
<?php if (!defined("AdminForm") and inp('format')!='raw'):
define("AdminForm", 1); ?>
<form action="index.php" method="get" name="adminForm" id="adminForm">
<input type="hidden" name="boxchecked" value="0">
<input type="hidden" name="task">
<input type="hidden" name="hidemainmenu">
<input type="hidden" name="option" value="<?php echo JRequest::getVar('option') ?>">
</form>
<?php endif; ?>
<?php xCILoadTemplate(); ?>
- You can use this view.html.php file as another middle layer to work between controller and view or you just can leave this with above code, this above code will simply load the mentioned layout (default.php if not defined)
Every component you create through this system may have its own system folder in admin side, but if you are using more then one xCIDeveloper components then you just can place this system folder in JOOMLA_ROOT path (No changes to be made in any file) and then create any new project by putting off the option Include Code Igniter System with component
And yes now no more use of redirect(), instead use
xRedirect("index.php?option=com_{anycomp}&task;={yourtask}&other_parameters_to_pass","Message to show on next page after redirection","notice | error | {or leav it blank for default} is mode of message");
we have not overloaded function because Joomla redirect function has heigher priority then CI's redirect
That's it for now ... start using your CI skills to develop joomla components.
Keep coming on xavoc.com for updates as we are soon launching module and plugins development in CI
Thank you for using our product.
Download URL | Use Disqus on the following page for more help on the component...