How to limit the images to display

Hi,

Suppose, I have many images saved in one database column say "Images" , so how to display only first image?

That means I have to limit the images to display to frontend.

Thanks for your help in advance!

Shriniwas

Hi,

you can perform a query and only ask for the first result using limit(1) . Check this chapter from the Guide for an example.

Hope it helps

ciao

B)

u can use normal query with limit

Hello,

$model = User::find()->select(‘column1, column2’)->one();