Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

I Want To Write A Jquery Code In Mycontroller

$
0
0
Hello guys,
I want to write a jquery code in mycontroller/Show,like this;

public function Show(){

<script>
jQuery("#block").animate( { width: "100%","opacity": "show"}, { queue: false, duration: 2000 });
</script>

}


and then call this function in mycontroller/actionIndex like this;
public function actionIndex(){
mycontroller;:show();
}

anyone suggest me how I can do better this? It is necessary to use this method in controller..

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>