[FX.php List] MVC
Anders Monsen
andersm at mac.com
Fri Sep 7 11:04:39 MDT 2012
Denis at al,
Having spent a few hours this week trying to get CodeIgniter to work
with FMP API, just wanted to revisit this topic.
A year or two ago I got CI to work with FX.php using the Wiki example.
However, I didn't like the incomplete demo and URL method. Also, since
then, CI updated its version and my code no longer works when I tried
again this week. I then found a example by Dan Smith, I think, showing
an MVC model for FMP and CI. When I tried his demo I ended up with a
blank page as soon as the code tried to require_once ('FileMaker.php').
Today I found a note from someone else who ran in to the same issue, and
dealt with this by moving the require from the controller page to the
main index.php page. This enabled the original demo to work, and now I
am able to see data again. I'm still wrapping my head around the "model"
part and how to improve the "view" into more CSS friendly pages, but at
least I can see data rather than a blank page, and the controller
appears to work correctly.
Is anyone else working with FileMaker and CodeIgniter? Any other
frameworks? I've used Joomla and FMP, but CodeIgniter seems to have a
smaller footprint and cleaner framework (at least, for now).
Thanks,
Anders
On 1/13/12 10:54 AM, Denis Somar wrote:
> And if anyone is using CodeIgniter, please sure how you got it to work!
>
> Best,
> Denis
>
> On Fri, Jan 13, 2012 at 11:41 AM, Leo R. Lundgren <leo at finalresort.org
> <mailto:leo at finalresort.org>> wrote:
>
> Why not use a framework to get an even better experience? :-)
>
> 13 jan 2012 kl. 17.40 skrev BEVERLY VOTH:
>
> > [note: i've copied the discussion to start it here under a new
> topic.]
> >
> > I think we need to start a new discussion on MVC!
> >
> > As I said, I don't use any IDE or any "framework" or any
> application or any tools or anything other than text editor to
> make my sites MVC. It's my own way of structuring the code in a
> way that the queries (modal) are separated from the presentation
> (view) and tying them all together are the controllers (yes, that
> multiple).
> >
> > If you look at cake, what I do is similar. I just think that
> cake is a little more complex than what I do. The premise is that
> EVERYTHING goes through index with parameters to branch in the
> controllers.
> >
> > I don't have a "functions" file with all the queries. Each one
> is a separate file, but they can be used by passing parameters to
> alter them slightly. For example, if a admin is returning a list
> of registered people, it may find all. If a parameter for limiting
> the list to non-admin it passed, the careful use of if() can
> change the query. So there are not multiple queries.
> >
> > But by separating the queries, I can test them individually. If
> can even put in an "if()" to show the errors or print_r() or
> whatever when I'm logged in as developer.
> >
> > One of the beauties of MVC, is the ability to have multiple
> people work on a site and not have to depend upon something being
> "completed" before starting work on another part. Lots of lovely
> include(), but not complex as wordpress or other common websites.
> I try to make it more flexible. I also think it's easier to debug.
> >
> > Yes, I know I promised to come up with an MVC demo using
> fx.php... I'm working on it. :)
> >
> > Beverly
> >
> > On 12 Jan 2012, at 9:03 PM, Denis Somar wrote:
> >
> >> How exactly do you MVC it? Using codeigniter? I couldn't get the
> >> solution on the CI wiki to work and I've just done my best to to
> >> modularize the code without adding complexity.
> >>
> >> Thanks,Denis
> >
> > _______________________________________________
> > FX.php_List mailing list
> > FX.php_List at mail.iviking.org <mailto:FX.php_List at mail.iviking.org>
> > http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
>
> -|
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org <mailto:FX.php_List at mail.iviking.org>
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20120907/ea0ae087/attachment.html
More information about the FX.php_List
mailing list