myPortal CMS - the web design community
  • MyPortal 2.0
  • download
  • demo
  • manual
  • editor
  • faq
  • blog
  • forum

free account: Click here
Username: Password:

Manual

furl functions

  • furl - convert string to url friendly string
  • makefurl - make unique furl

furl($string)

convert string to url friendly string

echo furl('Dobra češnja');
// Dobra-cesnja

makefurl($name,$tablename,$id=0)

checks if furl already exist in table colone "name" and if it does adds incremental (-x) on the end if $id specified checking ignores row id

echo makefurl('Dobra češnja','articles');
// Dobra-cesnja-2
 
// if updating
echo makefurl('Dobra češnja','articles',2);
// Dobra-cesnja

Try myPortal 2: