N
N
Nikita2018-10-25 16:03:51
Yii
Nikita, 2018-10-25 16:03:51

PHPExcel in Yii1.1 - What could be wrong?

I'm trying to open a file to enter data
. Could not open for reading! File does not exist.
File name in the directory tom1.xlsx
Building the path:

$src = Yii::app()->createUrl(Yii::app()->controller->module->id . '/assets/upload/' . $xlsx);

Through the link in the browser, the file itself is downloaded, so the path is correct and the name is appropriate, what could be the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-10-25
@SweetBubaleh

Building a path:

You are building a URL, but you need PATH.
https://www.yiiframework.com/doc/guide/1.1/en/basi...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question