Not able to load XML View - sapui5

I am going through the Get started tutorial of OpenUI5 and using a notepad to enter javascript code. I am in step 3 - XML Views.
My folders are as follows
XML File App.view - copy paste from step 3
HTML file example - copy paste from step 3
When I run this I am getting an error which says
Unfortunately I cannot use any other tool due to customer restrictions. I can only use notepad.
Please help.

Your issues is no related to the used editor. It seems that you are loading the index.html from your file system. Please use a local webserver to deliver it and open it using HTTP.

Related

Sandcastle Help File Builder publish online

I just recently started using Sandcastle Builder, I am wondering if there is a way to publish the generated index.HTML to a web host so it can be seen from any browser.
Thanks
This is possible and you may want to give it a try.
I generated a dummy help including some conceptual topics for testing in other context. So, navigate and open the uploaded files from server Sample Web Help and see what happens.
Go to Project Properties > Build and check Website as shown below.
After you have successfully generated your help project you will find all files for upload. The default is a .\Help folder relative to the project folder.
The following screenshot shows the structure of the generated WebHelp for the link above.

How to run the SAPUI5 sample apps - index.js is missing

I would like to test different UI5 Sample apps (I was trying to run them in plunker), however the index.html file for every sample app I have downloaded requires index.js - however this JS file is not part of the zip.
If I remove the reference to index.js, but the App won't run - there is obviously some init code missing, which I am assuming is inside the missing index.js file.
Here is the basic Page Sample (click the download link in the top right to get the zip).
Here's what happens when I move all the files to Plunker as-is.
You'll notice on line 20 of index.html, it is trying to include index.js, but this file isn't found, thus there is a 404 error in the console.

How to run files as a project in VS Code?

I'm trying to learn Vue.js as well so I create a simple folder called VueTest.
I have two files in the folder:
app.js
index.html
I found the info on how to configure the task runner to open up the current file and I have that setup to open in Chrome, which it does. However, because it's not running as a project, my index.html doesn't see the app.js file and so my Vue project is not working correctly. I just runs the HTML code an all I see is my mustache code (ex: {{Title}}).
How do I run files as a project?
If get it correct - you want to launch js app without opening teminals outside 'VS Code' then you have to see this
Have fun
I found my mistake, it's actually easy and I should have figured this out before posting.
To run Index.html on it's own, all I had to do was make a script reference in the page pointing to the app.js file. I didn't have to do that in JsFiddle.
you can't run files as a project in VS Code. it is just a text editor.

Files on my WebDAV mapped drive output rendered files in IDEs instead of actual content

On my mac I mounted a shared drive using WebDAV by going to "Finder > Go > Connect to server".
Now, when I try to view the files using TextWranger or TextEdit I can see the PHP code that I want to edit.
However, if I try to use an IDE like NetBeans/Eclipse/TextMate and create a new project with my shared drive as the "Existing sources" folder I cannot see the PHP code.
Instead I see the HTML output of the files as if I were seeing them through a web browser. Also, if I try to view a file that isn't normally accessibility (a command line script) I see the output as if it were called from the command line.
But a weird thing is if I use TextMate to edit a single file from the shared drive I can see the php code I am trying to edit. It just doesn't work as a project.
Any suggestions or solutions on how I can use an IDE to edit files over WebDAV? And why do my IDEs display the content rendered, instead of the actual file on the file system.
I'm not a specialist at all but I seem to remember that WebDAV clients do send GET requests.
If I'm correct your server may not be able to discriminate between HTTP GET and WebDAV GET thus rendering your .php files. Why this would work that way when working with a project and another way while working with individual files is not clear, though.
Do you get rendered files when you add files to your project manually as well?

Setting up Zend Framework - MVC

I have developed numerous websites using Codeigniter, but now have the need to migrate to Zend Framework.
I am installing it on shared hosting and I have virtually no command line experience. So far I have downloaded the framework, unzipped it and uploaded it to the hosting. I am using a Centos server provided by Godaddy.
I have tried the quick start guide but this uses command line, I also notice there is no index file to route requests through.
Is there a way that I can set up a basic MVC structure without using command line or do you have any pointers for what I need to be doing next.
Thanks in advance.
John
You don't have to use the command line tool. You can create files by yourself too. It's just more work for you ;) So for a basic setting you'd have to create the folders/files listed here. The command line tool only saves you a lot of create/copy & paste work. The code for all files is listed in the quickstart, but a bit spread over the different pages. I'd suggest to read everything first to get the idea of how zf does work and then create all files.
The index file responsible for all routing is public/index.php.