php - joomla component does not work on my hosting account -
i develop custom joomla 1.5 component , it's working fine locally(wamp server ,php 5.3.5) , toolbar functions add/edit , delete not work on hosting account (apache ,php 5.2.16 )
i have 2 toolbars, when click on second toolbar redirect first one
this code
controller.php
class galgallerifficcontroller extends jcontroller { /** * method display view * * @access public */ /** * constructor (registers additional tasks methods) * @return void */ function __construct() { parent::__construct(); // register tasks $this->registertask( 'add' , 'edit' ); } /** * display edit form * @return void */ function edit() { jrequest::setvar( 'view', 'gallery' ); jrequest::setvar( 'layout', 'form' ); jrequest::setvar('hidemainmenu', 1); parent::display(); } /** * remove record(s) * @return void */ function remove() { $model = $this->getmodel('gallery'); if(!$model->delete()) { $msg = jtext::_( 'error: 1 or more gallery(s) not deleted' ); } else { $msg = jtext::_( 'gallery(s) deleted' ); } $this->setredirect( 'index.php?option=com_galleriffic', $msg ); } }
and second controllers/galleryitems.php
class galgallerifficcontrollergalleryitems extends jcontroller { function __construct() { parent::__construct(); // register tasks $this->registertask( 'add' , 'edit' ); } /** * display edit form * @return void */ function edit() { jrequest::setvar( 'view', 'galleryitem' ); jrequest::setvar( 'layout', 'form' ); jrequest::setvar('hidemainmenu', 1); parent::display(); } /** * remove record(s) * @return void */ function remove() { $model = $this->getmodel('gallery'); if(!$model->delete()) { $msg = jtext::_( 'error: 1 or more gallery(s) not deleted' ); } else { $msg = jtext::_( 'gallery(s) deleted' ); } $this->setredirect( 'index.php?option=com_galleriffic', $msg ); } function display() { parent::display(); } }
and galleryitems view
class galgallerifficviewgalleryitems extends jview { function display($tpl = null) { jtoolbarhelper::title( jtext::_( 'galleriffic gallery items' ), 'generic.png' ); jtoolbarhelper::deletelist(); jtoolbarhelper::editlistx(); jtoolbarhelper::addnewx(); // data model $items =& $this->get( 'data'); $this->assignref( 'items', $items ); parent::display($tpl); } }
any idea, why happen ?
thanks in advance:)
the problem controllers,models,views names ...
class galgallerifficviewgalleryitems
this naming working fine on wamp server when uploading hosting account (apache ) not should follow camel naming
class galgallerifficviewgalleryitems
i hope other developers :)
Comments
Post a Comment