1.

What is the difference between render() and renderpartial() in Yii ?

Answer»
S.norender()renderPartial()
1.Used for presenting views that correspond to what users see a WEB page.Used for RENDERING a PORTION of a page
2.Places the render result into the layout.Does not place the results of rendering in the layout.
3.Performs output processing and outputs the result.Does not perform output processing
16. In Yii, How to get ip address?

To get the IP address of a user within the Yii Framework, the following code can be used:
echo Yii::app()->request->userHostAddress;
You can call this code from anywhere within your Yii application.

This information was frequently ASKED during Yii interview questions for experienced professionals.



Discussion

No Comment Found