yii2-wizard von Yeti not running and no friendly urls
H!
Thanks for adapting your popular extension to Yii2
I have not been able to get this extension to work .
I have done everything I could do like the examples suggest, particularly the registration example but yet I have these problemes:
1) I cannot even run step 1 of my forms. I get the following error:
PHP Notice – yii\base\ErrorException Undefined index: stepone.
(stepone is the name of my first step) and the wizard stops at this line:
if (isset($this->_session[$this->_stepDataKey][$step][$this->_session[$this->_indexKey]])) {
$event->stepData = $this->_session[$this->_stepDataKey][$step][$this->_session[$this->_indexKey]];
}.
It is line n° 273 of the WizardBehavior.
2) Also, the url it shows is:
.../submission?step=stepone
(submission is my action) which is very far from beeing a pretty Url.
What am I doing wrong?
Can please someone help me?
Pretty URLs - this is not a function of this extension. To have pretty URLs you must configure yii\web\UrlManager (http://www.yiiframework.com/doc-2.0/yii-web-urlmanager.html) and provide the approriate URL rules (http://www.yiiframework.com/doc-2.0/yii-web-urlrule.html)
From the error, it may be that you hav not configured a step array. Take a look at the examples to see how this is done. Perhaps an approch might be to get the examples running and modify then to your needs.
Thank you for reaction.
I am now trying to get the examples running. I have advanced template of yii2 installed. Could you please help me about where which file is to be stored? Please do not get angry. I am just a hobby programmer and it is not clear to me where to put which file. I have created a folder "beastbytes" under "frontend" in oder to keep modifications of your original files at a minimum, but it is not clear to me what must be copied where.
Thank you
P.S.: you might haven seen accross the web that a lot of people wish they had more infos about how to make your beautiful extension work.
Hi, As with any namespaced extension you can put the extension wherever you want - you just need to set up the alias to it appropriately; that's the cool thing with namespaces - it makes things very flexible; the downside with namespaces is it makes things very flexible. All I do is put something like the following in my config -- VENDOR_PATH is a constant that is the relative path from my config directory to the vendor directory that has all vendor directories - such as beastbytes:
Yii::setAlias('beastbytes', realpath(VENDOR_PATH . '/beastbytes'));
Hope that helps
On Thu, Aug 6, 2015 at 1:00 AM, mutyii [email protected] wrote:
Thank you for reaction. I am now trying to get the examples running.
I have advanced template of yii2 installed. Could you please about where which file is to be stored? Please do not get angry. I am just a hobby programmer and it is not clear to me where to put which file. I have created a folder "beastbytes" under "frontend" in oder to keep modifications of your original files at a minimum, but it is not clear to me what must be copied where.
Thank you
P.S.: you might haven seen accross the web that other people wish they had more info about how to make your beautiful extension work.
— Reply to this email directly or view it on GitHub https://github.com/beastbytes/yii2-wizard/issues/1#issuecomment-128187912 .