Hi Im relatively new to Yii and am playing around with the basic controller actions and so forth right now. At the moment I am trying to implement the uploadify extension in my test site. However, I am unsure how I can call the javascript so that I get the browse flash button.
as suggested by the uploadify.com implementation however with no luck.
I have included the action in the site controller and it works as site/upload. I have also changed the UploadifyWidget view to point to the correct file locations.
Hello, I try implement uploadify extension to my site, but it doesn’t work. I have problem with upload script.
I use this settings:
'script': 'index.php?r=site/upload',
and also i have this in my SiteController class:
public function actions()
{
return array(
// captcha action renders the CAPTCHA image
// this is used by the contact page
'captcha'=>array(
'class'=>'CCaptchaAction',
'backColor'=>0xEBF4FB,
),
'upload'=>'application.controllers.upload.UploadFileAction',
);
}
I’m also having trouble getting uploadify to find the controller.If i put a standalone php script and give the relative path it works fine but when i put index.php?r=controller/action it complains.
Does it have to do with the url configurations ar either the web server or yii ?
index.php works
index.php?r=controller/action returns script not found…enter a path relative to project local path(e.g./var/www/…/)
/index.php?r=controller/action return an error 302
whice i guess the last should be the correct one since getcwd() uploadify is alerting on failure doesnt end to a "/".