Welcome Guest, Not a member yet? Register   Sign In
Redirect to an external site without using PHP
#5

[eluser]Walle[/eluser]
Well, in stead if creating a huge project with lots of views to navigate to, we decided to create a site which can be built up from a database. So we have one dynamical view like this:

Code:
<?php $this->load->view('template/header'); ?>
<?php echo $navigation ?>
<div id="page-wrapper">
    <div class="row">
        <h2>&lt;?php echo $html['titel']; ?&gt;</h2>
    </div>
    <div class="row">
        &lt;?php echo $html['html']; ?&gt;
    </div>
</div>


&lt;?php $this->load->view('template/footer'); ?&gt;

So it loads the right data from the database when you click on the link in the navigation menu.

Because of that, we need to store html pages into our database, into a clob. I tried to store php in those clobs, but then there was a problem loading the pages onto the view.

The error message I got was "Disallowed Key Characters.", and the system wanted to navigate to
"http://example.com/&lt;?php echo site_url(", which obviously won't work.


Messages In This Thread
Redirect to an external site without using PHP - by El Forum - 09-17-2014, 04:36 AM
Redirect to an external site without using PHP - by El Forum - 09-17-2014, 05:21 AM
Redirect to an external site without using PHP - by El Forum - 09-17-2014, 05:38 AM
Redirect to an external site without using PHP - by El Forum - 09-17-2014, 05:49 AM
Redirect to an external site without using PHP - by El Forum - 09-22-2014, 07:16 AM
Redirect to an external site without using PHP - by El Forum - 09-22-2014, 08:30 AM
Redirect to an external site without using PHP - by El Forum - 09-23-2014, 06:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB