Welcome Guest, Not a member yet? Register   Sign In
Moving CI from php4 to php5
#2

[eluser]jaswinder_rana[/eluser]
Above should work as I am using it.

Can it be path issue? How are your views stored? As per your example, it should

application/views/myyacount/show.php
application/views/myyacount/edit.php

Now, I am not sure if it maybe because of your short tags. I had to turn short tags on my local server to make it work. I am not saying you din't already, I am just listing possible causes.

AND, as per your code, you already have PHP tags open. Is that in your code or happened when you posted here?

No Starting/Closing PHP tags
Code:
<h3>blah blah</h3>
<div id="show">&lt;?= $this->load->view('myaccount/show') ?&gt;</div>
<div id="edit">&lt;?= $this->load->view('myaccount/edit') ?&gt;</div>


Messages In This Thread
Moving CI from php4 to php5 - by El Forum - 12-16-2008, 10:56 AM
Moving CI from php4 to php5 - by El Forum - 12-16-2008, 11:06 AM
Moving CI from php4 to php5 - by El Forum - 12-16-2008, 11:11 AM
Moving CI from php4 to php5 - by El Forum - 12-16-2008, 11:14 AM
Moving CI from php4 to php5 - by El Forum - 12-16-2008, 11:16 AM
Moving CI from php4 to php5 - by El Forum - 12-16-2008, 11:18 AM
Moving CI from php4 to php5 - by El Forum - 12-16-2008, 11:19 AM
Moving CI from php4 to php5 - by El Forum - 12-16-2008, 11:22 AM
Moving CI from php4 to php5 - by El Forum - 12-18-2008, 02:27 AM
Moving CI from php4 to php5 - by El Forum - 12-18-2008, 06:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB