Spell Checker in smarty

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
waheed
Forum Newbie
Posts: 1
Joined: Tue Oct 11, 2011 3:27 am

Spell Checker in smarty

Post 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>
Last edited by Benjamin on Tue Oct 11, 2011 5:09 pm, edited 1 time in total.
Reason: Added [syntax=php|sql|css|javascript] and/or [text] tags.
Post Reply