But how can i invoked funtion from view file send id and get appropriate
result for ongoing project
you can invoke funtion as by link
<?php echo $html->link('get count', array('action'=>'getCount',
$project['Project']['id']))." "; ?>
I have to pass variable $id for each project with in foreach loop
automatically as query is
SELECT count(*) as countval FROM messages where project_id=$id AND
status='1'
But how can invoke funtion simply in view file with id with out link...
WebbedIT wrote:
>
>
>> How can i get data in view file?
>
> As I wrote above, your $this->set('numval',$numval); command sends the
> variable to the view in a variable called $numval, you are already
> passing that data to the view, but if you then use redirect then that
> view no longer exists as you've loaded a new http request.
> >
>
>
--
View this message in context:
http://www.nabble.com/Custom-Query-Result-tp21216264p21216936.html
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---