=>this is my ctp
<tr>
<th
width="34%">List of Country </th>
<th
width="35%">List of State </th>
<th
width="16%">Edit</th>
<th
width="23%">Delete</th>
</tr>
<tr>
<td
class="grid-<?php echo $class; ?>-row"><?php echo
$state['Country']['title']; ?></td>
<td
class="grid-<?php echo $class; ?>-row"><?php echo
$state['State']['title']; ?></td>
<td
class="grid-<?php echo $class; ?>-row-center"><a href="<?
php echo HTTP_DOMAIN.'states/state/'.$state['State']['id'].'/page:'.
$this->params['paging']['State']['page']; ?>"><?php echo $html-
>image('edit.png',array('width'=>'24' ,'height'=>'24'));?></a></td>
<td
class="grid-<?php echo $class; ?>-row-center"><?php echo
$this->Html->link($html->image("delete.png" ,array('alt' => 'Delete',
'title' => 'Delete')), array('action' =>'state_delete', $state['State']
['id'],'page'=>$this->params['paging']['State']['page']),
array('escape' => false),sprintf('Are you sure you want to delete this
entry?', $state['State']['id']),false);?></td>
</tr>
=>now with this what should i do to get desired. will u please suggest
logic for this.
On Mar 18, 12:16 pm, Ryan Schmidt <[email protected]> wrote:
> On Mar 18, 2011, at 02:04, andy_the ultimate baker wrote:
>
>
>
> > i m trying to display states with respect to country in index.
> > but country is displaying each time for each state.
>
> > i want to get all the state for under its respective country for each
> > time.
> > eg. if i have india as country having many sates then all states
> > belongs to india will come under one index item. like
> > Country Name State Name
> > country1 abc
> > pqr
> > xyz
> > country2 efg
> > mno
> > dfg
>
> > like this
>
> What have you tried so far? Show us some code.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php