Welcome Guest, Not a member yet? Register   Sign In
Is it possible to present a variable before it is actually calculated ?
#2

[eluser]Otemu[/eluser]
I would just output the result at the top of the page.
You could do your calculations on a controller, create a library or create a helper and then just return the result to the view at the top of the page.

Here a simple example using all the code in the View:
Code:
<html>
<head>
<title>Final Result</title>
</head>
<body>
<?php
       $finalResult = 2 + 2;
       echo $finalResult;
       echo "<br />2+2 = see result above";
?&gt;
&lt;/body&gt;
&lt;/html&gt;


Messages In This Thread
Is it possible to present a variable before it is actually calculated ? - by El Forum - 06-18-2012, 02:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB