>
Differences between joomla 1.0 and joomla 1.5
Welcome, Guest

by Dinesh on Monday, 08 December 2008
Differences between joomla 1.0 and joomla 1.5


Hi,

PHP Related

Handling Input

Old Way / Usage

New Way

$id = mosGetParam( $_REQUEST, 'id', 0 );
$id = JRequest::getVar( 'id', 0 );

 

Global Vars

Old Way / Usage

New Way

global $acl;
$acl =& JFactory::getACL();
global $mosConfig_live_site;
$mainframe->getCfg( 'live_site' );
global $database;
$database = $mainframe->getDBO();
// or:
$database = &JFactory::getDBO();

 

Raising Errors

Old Way / Usage

New Way

mosNotAuth();
JError::raiseError( 403, JText::_("ALERTNOTAUTH") );

A fatal error

if (!$row->check())
{
  JError::raiseError( 500, $row->getError());
}

 

Including common files

Old Way / Usage

New Way

$mainframe->getPath( 'admin_html' )
JApplicationHelper::getPath('admin_html')

 

Internationalization Support

Old Way / Usage

New Way

echo _HELLO;
echo JText::_( 'Hello' );

UTF8 Safe Lower Casing

 

 

Common Component Coding

Old Way / Usage

New Way

List pagination

jimport('joomla.presentation.pagination');
$pagination = new JPagination($total, $limitstart, $limit);

 

File Handling

Old Way / Usage

New Way

Listing files or folders

mosReadDirectory(...)
JFolder::files(...)
// or
JFolder::files(...)

 

Miscellaneous

Old Way / Usage

New Way

Get the menu parameters in a component (frontend)

jimport('joomla.application.extension.component');
$mParams = &JComponentHelper::getMenuParams();
// example:
$pageclass_sfx = $mParams->get( 'pageclass_sfx' );

Get the control (model, view, controller, renderer, template) parameters in a component (frontend)

jimport('joomla.application.extension.component');
$cParams = &JComponentHelper::getControlParams();
// example:
$viewName = $cParams->get('view_name');

 

 

 

HTML Related

Buttons

The use of the BUTTON tag is prefered to INPUT.

Old Way / Usage

New Way

Submit Button

<button onclick="this.form.submit();"><?php echo JText::_( 'Go' ); ?></button>

 

 

 



Blogger Image
My Blog Title

Product Engineering, software engineering company, Product Development, Product Migration, Product Re-engineering, Product Maintenance, Product Testing Commercial Application Development, Business Software development, commercial software for startups, Application Support and Maintenance, software testing Product Maintenance, Outsource product maintenance, product support and maintenance Product Migration, Product Re-engineering, product re-engineering services Product Research, Product Engineering, UI Prototyping Services Software Testing Services, Quality Assurance services, professional software testers, Load Testing, Functional Testing, Cross Platform, Browser Testing, Test Automation, Testing Tools, software quality analysis Functional Testing Services, software quality analysis, Software Testing Services, Application Testing Services, Functional Testing Types Automated Testing, Automated Testing Services, automation testing, test script development, Automation Test Tools, outsource automation testing Load Testing, Performance Testing Services, Load Testing Tools Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Benefits of IT Outsourcing, Offshore Software Development companies, offshore software development firms Outsource planning, IT outsourcing, IT development services, offshore IT companies, offshore software development Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering