tag:blogger.com,1999:blog-7303829017133230496.post956792339962032607..comments2023-06-03T01:55:26.318-04:00Comments on Adventures in Programming: Action paramater binding in Yii 1.1.4Dana Lutherhttp://www.blogger.com/profile/07289965994216523233noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-7303829017133230496.post-5763846043847499002011-03-28T08:55:57.701-04:002011-03-28T08:55:57.701-04:00Jep I saw it. Awesome.Jep I saw it. Awesome.toabihttps://www.blogger.com/profile/12364999572629413329noreply@blogger.comtag:blogger.com,1999:blog-7303829017133230496.post-63063343502677241392011-03-28T08:21:22.645-04:002011-03-28T08:21:22.645-04:00They've just added this ability in Yii 1.1.7 t...They've just added this ability in Yii 1.1.7 to have action parameter binding to the run method of a CAction!<br /><br />http://www.yiiframework.com/doc/guide/basics.controller#action-parameter-bindingDana Lutherhttps://www.blogger.com/profile/07289965994216523233noreply@blogger.comtag:blogger.com,1999:blog-7303829017133230496.post-35446335726141101592011-03-08T21:28:59.833-05:002011-03-08T21:28:59.833-05:00No, it won't work unless you're extending ...No, it won't work unless you're extending CInlineAction. <br /><br />The parameter binding happens in the CInlineAction::run() method. (See: http://code.google.com/p/yii/source/browse/tags/1.1.6/framework/web/actions/CInlineAction.php)<br /><br />That said, you could duplicate the functionality within a CAction that you create by duplicating what's been done for the CInlineAction.Dana Lutherhttps://www.blogger.com/profile/07289965994216523233noreply@blogger.comtag:blogger.com,1999:blog-7303829017133230496.post-48482778173999059322011-03-08T21:22:15.183-05:002011-03-08T21:22:15.183-05:00That's a really interesting question and one I...That's a really interesting question and one I don't know the answer to. I'm definitely going to do some digging and find out ;)Dana Lutherhttps://www.blogger.com/profile/07289965994216523233noreply@blogger.comtag:blogger.com,1999:blog-7303829017133230496.post-33345822872281358722011-03-02T10:58:53.203-05:002011-03-02T10:58:53.203-05:00Awesome! But it's not possible to use this in ...Awesome! But it's not possible to use this in external CAction classes, is it? There is just the run()…toabihttps://www.blogger.com/profile/12364999572629413329noreply@blogger.comtag:blogger.com,1999:blog-7303829017133230496.post-19872275388024239482010-10-13T11:26:14.031-04:002010-10-13T11:26:14.031-04:00Yes, no kidding!! =)Yes, no kidding!! =)Dana Lutherhttps://www.blogger.com/profile/07289965994216523233noreply@blogger.comtag:blogger.com,1999:blog-7303829017133230496.post-47739088021398317072010-10-13T11:23:08.579-04:002010-10-13T11:23:08.579-04:00Anything that keeps me from having:
if (isset($_G...Anything that keeps me from having:<br /><br />if (isset($_GET['var']))<br />{<br /> $var = $_GET['var'];<br />}<br /><br />is a plus in my book.. :)Ronald McCigrithttps://www.blogger.com/profile/16697475909601653520noreply@blogger.comtag:blogger.com,1999:blog-7303829017133230496.post-16357059489699264892010-10-10T16:10:00.668-04:002010-10-10T16:10:00.668-04:00Thank you. I did not even know about it :DThank you. I did not even know about it :DUnknownhttps://www.blogger.com/profile/17205878197163482271noreply@blogger.com