So, I am trying to infer the value of a session variable into a view (only if it exists). But I canβt make it work. There is no mistake. Nothing. What am I missing? Thought I had fallen now - I donβt think ...
In the controller ... FYI, the data is assigned to the view (i.e. $this -> load -> view('view', $data);
$data['campaign_name'] = $this -> session -> userdata('campaign_name');
Here is my php snippet in the view I'm trying to output. In short, if the session exists, print it. If not, do nothing.
<input type="text" name="campaign_name" class="wizardInput nameField" value="<? if (isset($campaign_name)) ;?> ">
Is anyone
EDIT Alright, I should have mentioned that I'm trying to infer a session value into a FORM value. Changed view code above. The form gives, as if the value is, and even sends the value. However, it does not appear in the text input ...
source share