Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running php #19

Open
marcobra opened this issue May 21, 2017 · 1 comment
Open

Error running php #19

marcobra opened this issue May 21, 2017 · 1 comment

Comments

@marcobra
Copy link

marcobra commented May 21, 2017

Cannot get sample running

Error in file public/js/sample.js at line 7

countries.unshift({ id: "0", name: "" });

TypeError: countries.unshift is not a function

also please write internal links using relative path i mean change i.e:

<link href="/public/css/style.css" rel="stylesheet" />
to
<link href="./public/css/style.css" rel="stylesheet" />

Tanks
Marco

@tabalinas
Copy link
Owner

tabalinas commented May 29, 2017

TypeError: countries.unshift is not a function

This is the working sample the way it is.
Are you sure you didn't change the source? countries should be an array which supports unshift method. Probably you have changed the result of the /countries path.

also please write internal links using relative path i mean change i.e:

why should we do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants