Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

how to develop an extension
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1
  • 2

TOPIC: how to develop an extension

Re:how to develop an extension 9 years, 9 months ago #19318

Hi Schmackers, this sample

$string = JoomSEF::sefGetLocation(...)

is to Artio JoomSEF



Thnaks,

bruno

Re: how to develop an extension 7 years, 7 months ago #37121

Hi everyone,

in my opinion it is not so good to use extract()...

You cannot have url-param named "string" for example, becuse it is other variable used in sef_ext.

Also, using @ to suppress errors is kind of old-school and slower solution
(turns off error reporting for that piece of code and then turns it back on)

Correct use of isset() is better and faster, so I have rather done it like this:

 
$string = JoomSEF::sefGetLocation(
$string,
$title,
$vars['task'],
(isset($vars['limit']) ? $vars['limit'] : null),
(isset($vars['limitstart']) ? $vars['limitstart'] : null),
(isset($vars['lang']) ? $vars['lang'] : null)
);
 
  • Page:
  • 1
  • 2
User Login Empty