rathilesh
(Rathilesh C)
May 16, 2013, 9:22am
1
First of all say sorry for my English,
Am a new user of YII ,
am Buid a POS(point of sale) application but stuck with the item purchase page,
plese ceck attached image ,
the question is how to insert that 5 items after clicking post
Iam realy stucked [size="5"]please helpme[/size]
mmbalaa
(Mmbalasundaram)
May 16, 2013, 9:51am
2
rathilesh
(Rathilesh C)
May 16, 2013, 10:07am
3
I check that, But did not work
ican’t understand that in form of that link
[size="5"]<?php foreach($items as $i=>$item): ?> [/size]
what is meaning
clonevn
(Clonevn)
May 16, 2013, 10:32am
4
Hope this example help you:
<?php
$a = array('abe','ben','cam');
foreach ($a as $k=>&$n)
$n = strtoupper($n);
foreach ($a as $k=>$n) // notice NO reference here!
echo "$n\n";
print_r($a);
?>
will result in:
ABE
BEN
BEN
Array
(
[0] => ABE
[1] => BEN
[2] => BEN
)
From PhP manual
$items as $i=>$item
$i -> number of the array,
$item -> model,
rathilesh
(Rathilesh C)
May 16, 2013, 11:34am
6
thank you for your response I am try to fix it