Sign In!
|
New User?Signup Now!
|
Forgot password?
Source Code 4 you
Home
Create Forum Topic
Check WebSite Rank
Publish Articles
UV Web Booster
Contact
Forum Type
Search Engine
.Net C# VB F# VC++
MonoPoject
Java J2EE
Zand Php Cake Php
Oracle Database Server
Mysql Database Server
DB2 Database Server
MSSql Databse Server
Javascript Ajax
Html Xml Xhtml
C Programming
C++ Programming
D Programming
CGI Programming
Perl Programming
Cobol Programming
Pascal Programming
Ruby Programming
Drupal Programming
Automobile
Software Testing
Linux Unix Mac Sun OS
Embedded Systems
Mainframe
IC Microcircuit Chip
Electronics Electrical
Hardware Netwarking
SAP ERP
Logical Reasoning
Human Resources
Science
Agriculture
Accounting
History
Pharmaceutical
Other Topic
Zand Php Cake Php
Posted by :
Taff
$session->flash() in view displaying a 1
Hey,
I baked a controller with the following snippet:
$this->Session->setFlash(__('
List has been saved', true));
Why the underscores, and what does true denote, I couldn't find a
reference anywhere?
Also in my view
echo $session->flash();
is returning <div id="flashMessage" class="message">List has been
saved</div>1
After an evening of hunting....where on earth is that 1 being
generated, and how do I do away with it?
Thanks for any pointers!
Taff
Posted by :
leafchild
Re : $session->flash() in view displaying a 1
I think you don't need "echo"
Just type:
<?php $session->flash(); ?>
If you have the better reply, then send it to us. We will display your reply after the approval.
Name :
Email Id :
Reply :