Mac's PHP MVC Framework with an AJAX Flat File CMS

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Mac's PHP MVC Framework with an AJAX Flat File CMS

Post by RobertGonzalez »

Are planning on making any of your code PHP5? Right now it would fail E_STRICT. Unless the code you are showing on the site is not the code in the framework.
macrob7
Forum Newbie
Posts: 17
Joined: Wed Mar 05, 2008 8:54 pm

Re: Mac's PHP MVC Framework with an AJAX Flat File CMS

Post by macrob7 »

Hi Everah,

Thank you for your feedback, currently I am using E_ALL I changed it to E_STRICT and everything works perfectly, what would you prefer I use E_ALL or E_STRICT?

I don't have any plans on re-building the framework in php5 just yet.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Mac's PHP MVC Framework with an AJAX Flat File CMS

Post by RobertGonzalez »

For me, if it isn't PHP 5, I won't touch it. That is a personal decision of mine.

http://gophp5.org/
macrob7
Forum Newbie
Posts: 17
Joined: Wed Mar 05, 2008 8:54 pm

Re: Mac's PHP MVC Framework with an AJAX Flat File CMS

Post by macrob7 »

I have made the framework in such a way that it would work both on PHP4 and PHP5. I am not using PHP4 version specific code. I am curious to see if I can also get it to work for PHP6.
macrob7
Forum Newbie
Posts: 17
Joined: Wed Mar 05, 2008 8:54 pm

Re: Mac's PHP MVC Framework with an AJAX Flat File CMS

Post by macrob7 »

Hey all,

First of all I would like to thank "Everah" for getting me interested in re-building my Framework in PHP5.

I Have released a new version of my framework at sourceforge:http://sourceforge.net/project/showfile ... _id=194062 below are the features and notes:

Notes:
This is a completely new re-write of the entire framework, using some of the more powerful PHP 5 libraries and concepts like PDO, SimpleXML and Reflections.

As a result the framework is not backwards compatible to PHP4.

Also I have gotten rid of the CMS section ( If there is a demand for the CMS, I will work on adding one, but it will be a completely new re-build from scratch )

Changes:
- Complete Re-Write, the framework works on PHP5+
- Added a Base Controller, Base Model, Base Config
- Removed the concept of plugins
- Found some really powerful PHP5 libraries to help in HTML to PDF conversion and Image Manipulations and added then to the libs folder.
- Introduced the concept of Localization, you can now set the Language of the current page and the framework will pull the content from that language.

For example:

$this->setLanguage('eng');
$this->loadContent('home'); // Will pull the content file views/content/eng/home.php

$this->setLanguage('fr');
$this->loadContent('home'); // Will pull the content file views/content/fr/home.php

Please let me know what you all think.

Thank you,
Mac
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Mac's PHP MVC Framework with an AJAX Flat File CMS

Post by alex.barylski »

Please let me know what you all think.
I think you need to show us how your's is at least different (if not better) when compared to Zend, CakePHP, CodeIgnitor, etc...

Otherwise it's just another framework. There is someone else writing a framework on Sitepoint and I would gander a guess and suggest one in five developers choose to develop their own.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Mac's PHP MVC Framework with an AJAX Flat File CMS

Post by Christopher »

Any conversation about a framework quickly turns into reconciling many, many specifics with a few goals -- so asking for a critique of a framework is a little unfair. Add disagreements about the goals to the conversation and it becomes essentially non-productive. ;)

Is there specific feedback you are looking for? I just looked briefly and saw lots of things to comment on: base Model, View and Controller classes in the same directory with the app classes? Is 'Master' the Front Controller or not? Why are many things built-in, like Timing and Logging, when they could just be plugins? Etc...
(#10850)
macrob7
Forum Newbie
Posts: 17
Joined: Wed Mar 05, 2008 8:54 pm

Re: Mac's PHP MVC Framework with an AJAX Flat File CMS

Post by macrob7 »

Hi All,

I have released a new version of my PHP MVC Framework

Site: http://macs-framework.sourceforge.net/
Documentation: http://macs-framework.sourceforge.net/php5shell/
Download at: http://sourceforge.net/projects/macs-framework/

Below are the new features:
- Added support for Page Level Caching ( Can be turned on and off from the config.php file )
- Added new Libraries ( Google Maps, Maintain Form State and Scroll position after POST )
- Created sample website with Documentation ( included with the download )
- Created SiteMap/Nav Generator ( Based on the SiteMap XML file )

Thank you,
Mac
macrob7
Forum Newbie
Posts: 17
Joined: Wed Mar 05, 2008 8:54 pm

Mac's PHP5+ MVC Framework for RAD

Post by macrob7 »

Hi All,

I just released a new version of my framework

Site: http://macs-framework.sourceforge.net/
Documentation: http://macs-framework.sourceforge.net/php5shell/
Download at: http://sourceforge.net/projects/macs-framework/

New Features:
--------------
Geo Targeting Capability
- This is a wrapper around the MaxMind GeoLiteCity Binary Database.

Advance Localization settings
- The SiteMap now allows you to put a prefix of the language before any property like for example 'en-CA_title' and when you call {title} in your view file it will automatically call the appropriate language title.

Easily embed audio and video
- The framework now includes an audio and FLV video player built in and a helper class to allow embedding them into your site easier.

Added Framework template Variable
a template variable called "frameworkCode" is now available to every view. This is basically a placeholder where all Code that the framework generates can be placed. Normally this template variable would be placed right before the closing head tag eg:
....
{frameworkCode}
</head>

New functions:
$this->addJSFile('js/jquery.js'); //Generates script to embed a JS file, the code generated is automatically added to the "frameworkCode" template variable.

$this->addCSSFile('css/test.css') // Works similar to the function above but generates code to embed a CSS file.

$this->addToFrameworkCode('<script type="text/javascript">var code = "test";</script>'); // This function allows you to add Raw code, which is appended to the end of the "frameworkCode" template variable

Enhancements to the DB class ( Can only be run from a Model class )
- Added a new function $db->loadCSVIntoTable($this->config->siteDir.'temp/test.csv', 'Test'); //As the name suggests this loads a CSV file and inserts it into a table

NOTE: There is also a function called generateCSV which generates a CSV file from a Table
macrob7
Forum Newbie
Posts: 17
Joined: Wed Mar 05, 2008 8:54 pm

Mac's PHP5+ MVC Framework for RAD

Post by macrob7 »

Hi All,

I just released a new version of my framework v0.8.2

Site: http://macs-framework.sourceforge.net/
Documentation: http://macs-framework.sourceforge.net/php5shell/
Download at: http://sourceforge.net/projects/macs-framework/

New Features:
--------------
This release introduces the concept of 'Main Content' and 'Content Buckets' it also includes an advance web crawler / Search library with caching capabilities to increase the speed of the search.
macrob7
Forum Newbie
Posts: 17
Joined: Wed Mar 05, 2008 8:54 pm

Re: Mac's PHP MVC Framework with an AJAX Flat File CMS

Post by macrob7 »

Hi All,

I just released a new version of my framework v0.8.5

Site: http://macs-framework.sourceforge.net/
Documentation: http://macs-framework.sourceforge.net/php5shell/
Download at: http://sourceforge.net/projects/macs-framework/

New Features:
--------------
This is a major feature enhancement release, this release now officially includes an AJAX Flat File Edit In Place / CMS Tool.
macrob7
Forum Newbie
Posts: 17
Joined: Wed Mar 05, 2008 8:54 pm

Re: Mac's PHP MVC Framework with an AJAX Flat File CMS

Post by macrob7 »

Hey All,

Its been a while since I posted an update here, My framework: Mac's PHP MVC Framework with an Integrated AJAX Edit In Place Flat File CMS is now at version 1.0.3! with many new features

New Features and changes:
  • Full fledged Edit In Place CMS: The CMS allows admins to Change the Default Site Theme, Change the Site Name, Change the default site language, Change Page level properties like Page Title, Meta Desc., Meta Keywords, Add/Edit and Delete Child pages.
  • XSS filter support, filters out $_GET and $_POST by default but can easily be configured through the Config.php file.
Site: http://macs-framework.sourceforge.net/
Download at: http://sourceforge.net/projects/macs-framework/

Thanks,
Mac
Post Reply