I have decided to publish my CMS on Github. Behold, the Low Fat CMS: https://github.com/fatfreelogin/lowfatcms !
Questions, remarks, compliments and insults are welcome.
--
-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/1e3ef11c-a03f-49ef-969b-dfcc54ae8b25n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/b019318e-7b61-43d3-8d9c-d856ad25ef18n%40googlegroups.com.
Hi, I was looking at your CMS and decided to modify it for a
project I've been meaning to start. I tried to push my changes to
your GitHub, but wasn't able to make a branch of it. (totally
possible its just my lack of understanding on using GitHub).
Anyways, one of the changes I tried to implement was an RSS feed. Which has been returning weird errors I can't figure out. Would love it if someone could check it out. You can find it here: https://github.com/PlayBoxTech/podioblog
Thanks,
Chris
I have decided to publish my CMS on Github. Behold, the Low Fat CMS: https://github.com/fatfreelogin/lowfatcms !
Questions, remarks, compliments and insults are welcome.
The error I am getting is:
Unallowed method.
Array
( [status] => Method Not Allowed [code] => 405 [text] =>
HTTP 405 (GET /feed) [trace] => [lib/base.php:1938]
Base->error()
[lib/base.php:1754] Base->call()
[index.php:25] Base->run() [level] => 0
)
1
The route I have added is:
GET|HEAD /feed=SitemapController->rss
The code I added to SitemapController is:
public function rss()
{
$f3=Base::instance();
$db=new DB\SQL(
$f3->get('db_dns') . $f3->get('db_name'),
$f3->get('db_user'),
$f3->get('db_pass')
);
//$page = new Page($db,$f3->get("table_prefix"));
//$sitemapurls=$page->rss();
$sql="select longtitle, description,created_at, alias FROM
".$table_prefix."site_content WHERE published=1 AND
type='document'";
$sitemapurls=$db->exec($sql);
$f3->set('urls',$sitemapurls);
header('Content-Type: text/xml; charset=UTF-8');
$view=\View::instance();
echo '<?xml version="1.0"
encoding="UTF-8"?>'."\r\n";
echo Template::instance()->render('/sitemap/site.rss',
'application/htm');
die;
}
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/1c16761c-19af-4d2d-b3ac-19884d680be2n%40googlegroups.com.
Yes, I commented it out on github as its not working. You can see
the error however if you visit https://podblog.playbox.tech/feed
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/1154727f-c21c-4578-851c-f8ab863e5c29n%40googlegroups.com.
Still can't seem to get rid of the issue. Perhaps my issue is
with what is in models/Page.php ?
In the Slack server, it was suggested the issue is that a
namespace isn't being found.
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/80bd8634-08ce-48cc-b5d9-fac09066be3fn%40googlegroups.com.
I'll try it out. Do you also accept others adding to the code
base?
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/1be12467-4f96-4e80-9997-da1b83d041aen%40googlegroups.com.