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
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.
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.
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.
--
-- 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/CALE6Fs2H42P1YiRRx3f-KNXzEiopjXLxibY2oaHDF3ossnRR1A%40mail.gmail.com.
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.
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.
--
-- 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.
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/CALE6Fs2H42P1YiRRx3f-KNXzEiopjXLxibY2oaHDF3ossnRR1A%40mail.gmail.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.
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/CAJDxscHyxThLXFCbPQz0CpJR2HSQRYbU8q%2Bp8gJg9-FMPTGTEw%40mail.gmail.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.
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.
--
-- 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.To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/CALE6Fs2H42P1YiRRx3f-KNXzEiopjXLxibY2oaHDF3ossnRR1A%40mail.gmail.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.
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/CAJDxscHyxThLXFCbPQz0CpJR2HSQRYbU8q%2Bp8gJg9-FMPTGTEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
-- 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/CALE6Fs0%3D_ZFTYgqXZfA8S_Vv9xWt04OEvAwGj88SwLfAOHwsnQ%40mail.gmail.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.
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.
--
-- 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.To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/CALE6Fs2H42P1YiRRx3f-KNXzEiopjXLxibY2oaHDF3ossnRR1A%40mail.gmail.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.
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/CAJDxscHyxThLXFCbPQz0CpJR2HSQRYbU8q%2Bp8gJg9-FMPTGTEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
-- 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/CALE6Fs0%3D_ZFTYgqXZfA8S_Vv9xWt04OEvAwGj88SwLfAOHwsnQ%40mail.gmail.com.