Alter router.php in component - Joomla! Forum - community, help and support


hey all,

i created nice joomla component using online component creator (for 2.5).
now i'm trying output seo friendly links;
this show content:
http://www.sitename.com/index.php?optio ... names&id=1
i want output like:
http://www.sitename.com/test/1/

so, tried changing data in:
/components/com_compname/router.php
but nothing seems change @ all.

i think need add in either
/components/com_compname/compname.php

code: select all

defined('_jexec') or die;

// include dependancies
jimport('joomla.application.component.controller');

// execute task.
$controller   = jcontroller::getinstance('compname');
$controller->execute(jrequest::getvar('task',''));
$controller->redirect();


or
/components/com_compname/controller.php

code: select all

// no direct access
defined('_jexec') or die;

jimport('joomla.application.component.controller');

class compnamecontroller extends jcontroller
{

}


i followed tutorial, still no luck.
any ideas on change/add?

i think compname should name of component. see named folder.





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support