Welcome Guest, Not a member yet? Register   Sign In
Best way to pull off a "success" message?
#2

[eluser]ekeretex[/eluser]
In the controller, pass the success message to the view if validation passes:
Code:
$this->data['success'] = 'Your blah has uploaded';
In the view:
Code:
<?php if (!empty($success)) : ?>

<p class="success">&lt;?php echo $success; ?&gt;</p>

&lt;?php endif; ?&gt;

Hope that helps


Messages In This Thread
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 06:17 PM
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 06:27 PM
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 06:31 PM
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 06:34 PM
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 06:35 PM
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 06:38 PM
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 07:03 PM
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 08:57 PM
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 09:01 PM
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 09:08 PM
Best way to pull off a "success" message? - by El Forum - 01-24-2008, 08:03 AM
Best way to pull off a "success" message? - by El Forum - 01-24-2008, 12:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB