Typography

#1
[eluser]GamingFusion[/eluser]
I am try to use the typography function in Codeigniter btus it not working heres what i get for output
Quote:Success!
The Show has Been added!
Show Title: Show Title
Show Times:

when it should be
Quote:Success!
The Show has Been added!
Show Title: Show Title
Show Times: Mon - Fri: 7:30pm - 9:00pm
Cast: The Cast Members
Director: The Director

heres my code

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;html &gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
&lt;title&gt;&lt;?=$title?&gt;&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;?php
    echo '<h1>Success!</h1>
    <h3>The Show has Been added!</h3>';
    echo '<b>Show Title: </b>', $this->input->post('title'), '<br />';
    echo '<b>Show Times: </b>', $this->typography($this->input->post('times')), '<br />';
    echo '<b>Cast: </b>', $this->typography($this->input->post('cast')), '<br />';
    echo '<b>Director: </b>', $this->input->post('director'), '<br />';
?&gt;
&lt;/body&gt;
&lt;/html&gt;

what did i code wrong?

#2
[eluser]developer10[/eluser]
Maybe you:

1. did not load the typography class
Code:
$this->load->library('typography');

or maybe

2. you should use
Code:
auto_typography()
after
Code:
$this->typography
like this
Code:
$string = $this->typography->auto_typography($string);

note: i have no experience with the typography class, i just looked it up in user guide and thought some
of these might be causing your problem.

#3
[eluser]GamingFusion[/eluser]
fixed it


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.