Ufront is a powerful MVC web framework for Haxe.
Questions tagged [ufront]
8 questions
4
votes
1 answer
How to connect ufront with sqlite?
Can I use ufront with sqlite3? How can i do so?
Need to put some words here so stackoverflow accepts my question, summon Jason Oneil, or my question will never be online, palease o great stack overflow, accept my question.

TiagoLr
- 2,782
- 22
- 16
2
votes
1 answer
What is the proper syntax for using subcontrollers with Ufront?
In my main controller I followed the instructions in the Controller documentation and I have the following meta data:
@:route(GET, "/about/*")
var aboutController:AboutController;
Then in my AboutController file I have:
package controller;
import…

Confidant
- 356
- 1
- 9
1
vote
1 answer
How can I ensure a PHP class is found when compiling Haxe?
I am compiling a UFront application which worked prior to Haxe 3.4. After upgrading it started generating this error when using remoting:
PHP Fatal error: Class 'haxe__Unserializer_DefaultResolver' not…

Confidant
- 356
- 1
- 9
1
vote
0 answers
Proper setup of .htaccess for UFront with PHP
I have a problem with UFront for Haxe: when I run a test PHP server using 'php -S localhost:2397' and visit http://localhost:2397/portfolio/12, UFront handles the route just fine. I'm having trouble doing the same with MAMP.
How can I set up my…

Confidant
- 356
- 1
- 9
1
vote
1 answer
How to set active links (navbar) in an async ufront app
I try to figure out how to set active links in a navbar or sitebar for an async ufront application.
On the server I can load and parse it dynamically inside the main (top level) controller via an api call like:
@inject public function…

michaPau
- 1,598
- 18
- 24
1
vote
3 answers
Ufront - using a model (which holds data) between several requests
I am not so sure how to implement a model which can share its state between several requests. I mean a model which holds a set of data not only a model which describes how the data looks like.
An example would be a quizz or a survey where the user…

michaPau
- 1,598
- 18
- 24
1
vote
0 answers
Adding extra scripts and headers to ufront-erazor html layout
Using ufront and erazor I ran into the following problem very quickly.
The hello-world example provides the following layout:
@title

TiagoLr
- 2,782
- 22
- 16
1
vote
2 answers
How can I HTML escape in Erazor?
I'm new to Haxe, and I'm trying to experiment with Ufront.
I got a problem using Erazor templates: I don't understand how to escape HTML when outputting variables.
With this simple template:

Andrea Parodi
- 5,534
- 27
- 46