yes.
I did like this
$exploded_query = explode(" ", $this->query);
if(count($exploded_query) > 1)
{
$k3=$k->getNewCriterion(sfGuardUserProfilePeer::FIRST_NAME,"%".
$exploded_query[0]."%",Criteria::LIKE);
$k3->addOr($k->getNewCriterion(sfGuardUserProfilePeer::LAST_NAME,"%".
$expl
You will of course need to have checks to make sure that $exploded_query[1]
exists before using it, my example was just a quick way to point you in the
right direction
On Wed, Oct 21, 2009 at 9:45 AM, Avani wrote:
>
> ya.. it's working
>
> Thanks Gareth.. :)
>
> On Oct 21, 12:12 pm, Gareth McCu
Maybe this helps?
http://propel.jondh.me.uk/
On 21 okt, 09:45, Avani wrote:
> ya.. it's working
>
> Thanks Gareth.. :)
>
> On Oct 21, 12:12 pm, Gareth McCumskey wrote:
>
> > $exploded_query = explode(" ", $this->query);
>
> > $k->getNewCriterion(
> > sfGuardUserProfilePeer::FIRST_NAME,"%".$e
ya.. it's working
Thanks Gareth.. :)
On Oct 21, 12:12 pm, Gareth McCumskey wrote:
> $exploded_query = explode(" ", $this->query);
>
> $k->getNewCriterion(
> sfGuardUserProfilePeer::FIRST_NAME,"%".$exploded_query[0]."%",Criteria::LIKE)
>
> $k->getNewCriterion(
> sfGuardUserProfilePeer::LAST_NA
$exploded_query = explode(" ", $this->query);
$k->getNewCriterion(
sfGuardUserProfilePeer::FIRST_NAME,"%".$exploded_query[0]."%",Criteria::LIKE)
$k->getNewCriterion(
sfGuardUserProfilePeer::LAST_NAME,"%".$exploded_query[1]."%",Criteria::LIKE)
On Wed, Oct 21, 2009 at 5:25 AM, Avani wrote:
>
> H