I have created my code here to display some number, As I could not
able to display the count here, Can some one help me out with regards
this. See the below mentioned code
The Idea behind is , I should display a count of record in the page
Also I have specified "eGoNumber" to execute but not showing the
result.
$c = new Criteria();
$c->addJoin(VideosPeer::ID, StatisticsPeer::TABLE_ID.' AND
'.StatisticsPeer::TABLE_NAME_1.'=\'videos\'', Criteria::LEFT_JOIN);
$c->add( VideosPeer::ID, $ID );
$view= VideosPeer::doCount($c);
$interiorEl = &$form->createElement( 'ViewInterior', 'eGoNumber', array
(
'useExt' => true,
'remoteStore' => true,
'required' => 'no',
) );
$interiorSourceConf = array(
'peername' => 'VideosPeer',
'field' => ?????????? (How exactly it should be),
'criteria' => $c,
);
$interiorSource = &$form->createDatasource( 'ExtPropel' );
$interiorSource->init( $interiorSourceConf );
$interiorEl->setDatasource( $interiorSource );
$form->addElement( $interiorEl );"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" 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/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---