Page 1 of 1

Spell Checker in smarty

Posted: Tue Oct 11, 2011 3:34 am
by waheed
How i can integrate myspell spell checker in smarty.

Code:

Code: Select all

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
<title>PHPSpellCheck Example - Spelling "As You Type" </title>
</head>
<body>
<form id="form1" name="form1" action="">
<textarea name="spellfield"  id="spellfield" cols="30" rows="5">spell checker works across all major browsers including IE.</textarea>
<?php
	require "../include.php";
	$mySpell = new SpellAsYouType();
	$mySpell->InstallationPath = "../";
	$mySpell->Fields = "ALL";
	echo $mySpell->Activate();
?>
 </form>
</body>
</html>