SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 322 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

$filter_search.'%"'.'
OR LOWER(text) LIKE "%'.$filter_search.'%")';
Notice that we convert the search string to lowercase before commencing. We
do this to make the search case-insensitive. We use the JString class to convert the
string to lowercase because the normal strtolower() function will corrupt some
UTF-8 characters.
We use the JDatabase object to escape the search string; this prevents SQL injection
and corruption of the query.
Our search facility will now work!
Chapter 8
[ 241 ]
Summary
We have explored the massive joomla.html library that enables us to create
standardized XHTML for rendering in our extensions. It??™s important to explore the
library so as to gain as much from it as possible. There are many useful types that
can massively reduce our over all development time.
Investigating the use of existing layouts and templates should put us in good stead
for creating our own. Remember to take advantage of the predefined CSS styles. This
makes it easier for site template developers and ensures that our layouts will not
look out of place.


Pages:
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6