Why does my view not appear on the browser window?

22 views
Skip to first unread message

Ikel

unread,
Mar 6, 2017, 1:55:48β€―AM3/6/17
to Fat-Free Framework
Hi,

I'm having a trouble, why is my view is not appearing on the browser window? F3 returns the html snippet correctly in the FireFox developer tool's window.

I have the following;

require_once 'vendor/autoload.php';
// Get F3 Framework
$f3 = Base::instance();

// more codes here

// variables to the template page
$f3->set('name',$f3->get('result')[0]['name']);
$f3->set('unit',$f3->get('result')[0]['unit']);
$f3->set('tps_code',$f3->get('result')[0]['tps_code']);

// path to the dashboard file
$dashboardFilePath = '../login/my-dashboard.htm';

// instantiate a new page
echo \Template::instance()->render($dashboardFilePath);

The last line simply echo the content of the htm file correctly, into the developer window.

Am I missing a step?

Thanks,
ikel

Sascha

unread,
Mar 6, 2017, 2:10:05β€―AM3/6/17
to Ikel via Fat-Free Framework, Fat-Free Framework

Do you see any HTML, if you open the source for the page in your browser? Is it some heavy JS page that may throw some errors into your developer console?


--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to the Google Groups "Fat-Free Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to f3-framework...@googlegroups.com.
To post to this group, send email to f3-fra...@googlegroups.com.
Visit this group at https://groups.google.com/group/f3-framework.
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/f49706e5-8d7d-4645-b976-51c0f703304e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Iwan Kelaiah

unread,
Mar 6, 2017, 2:20:16β€―AM3/6/17
to Fat-Free Framework on behalf of Sascha
Hi

My browser is still showing the previous login page.

No error on the console.Β 

So basically I have,

HTML login -> Ajax to an F3 endpoint -> show user dashboard.

Thanks,
Iwan

On 6 Mar 2017 18:10, "Fat-Free Framework on behalf of Sascha" <f3-fra...@googlegroups.com> wrote:

Do you see any HTML, if you open the source for the page in your browser? Is it some heavy JS page that may throw some errors into your developer console?


On Mon, Mar 6, 2017, 07:55 Ikel via Fat-Free Framework <f3-framework+APn2wQfFDw5pXzlpsw1DcOCFzau3HERC0wsXZjwaDyBvDEJn3Ns@googlegroups.com> wrote:
Hi,

I'm having a trouble, why is my view is not appearing on the browser window? F3 returns the html snippet correctly in the FireFox developer tool's window.

I have the following;

require_once 'vendor/autoload.php';
// Get F3 Framework
$f3 = Base::instance();

// more codes here

// variables to the template page
$f3->set('name',$f3->get('result')[0]['name']);
$f3->set('unit',$f3->get('result')[0]['unit']);
$f3->set('tps_code',$f3->get('result')[0]['tps_code']);

// path to the dashboard file
$dashboardFilePath = '../login/my-dashboard.htm';

// instantiate a new page
echo \Template::instance()->render($dashboardFilePath);

The last line simply echo the content of the htm file correctly, into the developer window.

Am I missing a step?

Thanks,
ikel

--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to the Google Groups "Fat-Free Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to f3-framework+unsubscribe@googlegroups.com.

--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Fat-Free Framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/f3-framework/tE3aRqXKniY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to f3-framework+unsubscribe@googlegroups.com.

To post to this group, send email to f3-fra...@googlegroups.com.
Visit this group at https://groups.google.com/group/f3-framework.

Sascha

unread,
Mar 6, 2017, 2:24:40β€―AM3/6/17
to Fat-Free Framework on behalf of Sascha

If you actually get a response from the server, you must have forgotten to handle the response inΒ  the front end.


-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to the Google Groups "Fat-Free Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to f3-framework...@googlegroups.com.

--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Fat-Free Framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/f3-framework/tE3aRqXKniY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to f3-framework...@googlegroups.com.
--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en

---
You received this message because you are subscribed to the Google Groups "Fat-Free Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to f3-framework...@googlegroups.com.

To post to this group, send email to f3-fra...@googlegroups.com.
Visit this group at https://groups.google.com/group/f3-framework.

Iwan Kelaiah

unread,
Mar 6, 2017, 2:30:51β€―AM3/6/17
to Fat-Free Framework on behalf of Sascha
You could be right let me look into it.
-Ikel

-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to the Google Groups "Fat-Free Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to f3-framework+unsubscribe@googlegroups.com.

--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Fat-Free Framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/f3-framework/tE3aRqXKniY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to f3-framework+unsubscribe@googlegroups.com.
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en

---
You received this message because you are subscribed to the Google Groups "Fat-Free Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to f3-framework+unsubscribe@googlegroups.com.

--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en

---
You received this message because you are subscribed to a topic in the Google Groups "Fat-Free Framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/f3-framework/tE3aRqXKniY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to f3-framework+unsubscribe@googlegroups.com.

To post to this group, send email to f3-fra...@googlegroups.com.
Visit this group at https://groups.google.com/group/f3-framework.

Iwan Kelaiah

unread,
Mar 6, 2017, 2:58:45β€―AM3/6/17
to Fat-Free Framework on behalf of Sascha
You were right. I haven't done anything with the response! 😭😭😭

Thanks for maintaining F3. Works well out of the box.

Regards,
Ikel


-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to the Google Groups "Fat-Free Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to f3-framework+unsubscribe@googlegroups.com.

--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Fat-Free Framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/f3-framework/tE3aRqXKniY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to f3-framework+unsubscribe@googlegroups.com.
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en

---
You received this message because you are subscribed to the Google Groups "Fat-Free Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to f3-framework+unsubscribe@googlegroups.com.

--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en

---
You received this message because you are subscribed to a topic in the Google Groups "Fat-Free Framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/f3-framework/tE3aRqXKniY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to f3-framework+unsubscribe@googlegroups.com.

To post to this group, send email to f3-fra...@googlegroups.com.
Visit this group at https://groups.google.com/group/f3-framework.
Reply all
Reply to author
Forward
0 new messages