Dingo Framework - ALPHA Testing Open!
View Single Post
03-31-2009, 08:31 PM
how quixotic are you?
Join Date: Dec 2007
Location: Lapeer, MI
Yes. What about things which shouldn't be in the model but might be necessary when invoking an editing page? Authorising the current user, validation of the supplied input data, routing different scenarios through to different views, etc.. Is that all to be done in the model?
I usually use auto-loaded helpers for repetitious tasks like authorizing the current user, validations, ect...
Very good to hear that you're planning on allowing more dynamic routing! cookie::get is only a helper, it can call Dingo::cookie if you really want it to. Without it, the API just seems unbalanced.
I suppose I could, it can't really hurt.
I was just looking at namespaces in PHP 5.3 and was very, very,
impressed! I think I'll be restructuring the framework to use them sometime soon! I want to change it so that libraries use namespaces instead of loading a class into the $this->dingo object. For example running a MySQLi query would look like this:
I think that's right... Btw I used the CODE BBcode block for the first piece of code because the PHP one doesn't like my backslash...
Dingo Web Systems >
My Website >
View Public Profile
Send a private message to ETbyrne
Visit ETbyrne's homepage!
Find More Posts by ETbyrne