title: Calling a function from the layout/view file in Yii
body: <p>I am new to Yii framework and i need to define a function which is being called from /protected/views/layouts/main.php page. can i knw were to define it(Controller/model), so that i can get the corresponding action defined within the function.</p>