View Single Post
Old 07-29-2009, 03:45 PM   #74 (permalink)
ioan1k
The Contributor
 
ioan1k's Avatar
 
Join Date: Mar 2009
Location: US
Posts: 76
Thanks: 0
ioan1k is on a distinguished road
Default

Have a couple of questions and comments for you regarding this...after reading.

Templates / View
----------------------------------------------
You stated that templates can be called which will auto-load a group of "templates". To my understanding templates are just grouped views or is it an entire page layout combined into one file? Docs are not up so I cant read on it....

What I am confused about is you stated "Perhaps I should just get rid of views entirely"

How are "templates" as I understand "a group of views" going to replace views? It seems illogical and backwards. If you want the ability to change the layout of a "view" on the fly using templates, would it not be easier to have the View be intelligent enough so, you can set a "theme" to use, and then template files can be pulled from that "themes" directory, if it's not there pull the default view located with a module. With pr without following the MVC Pattern the "view" is virtually a must have for any application that will be organized. Forcing the loading of groups of templates is counter-productive and memory consuming.

Example of this:
// Directory Structure
Code:
|--views
  |--index
    |--home.phtml
    |--left.phtml
|--themes
  |--my_theme
    |--index
      |--home.phtml
PHP Code:
// init file
$this->setTheme('my_theme');
// As an example
$this->view->load('index/home');
$this->view->load('index/left');
// Would pull out index/home.phtml from my_theme/ and left would be pulled from views/ 
Maybe I have a misunderstanding?

Database
---------------------------------
You stated you have a database library is this using PDO?
Does this support any type of query building?

Sessions
--------------------------------
I haven't seen anything about session handling in the topic, how does this handle sessions? Do you have the ability to create concurrent sessions or is everything cookie based?

Routes
------------------------------
$route['one/([a-zA-Z]+)/([0-9]+)'] = 'query/$1/$2';

How does this get sent to the controller, and what happens when I want to skip the controller and just process a view file?
Is this supported?

You said the route system is to complex to explain, could you elaborate a bit more on this? How is it complex to compare Regex strings to mapped layers?

Error Handling
------------------------------
Can I log errors to a file automatically?
How are errors handled after production is there any notification system, alert monitor etc in place for encountered errors after I send a application live?
How are errors handled during development, is there any customization to exceptions thrown or errors encountered?

ACL
-----------------------------
Is there a built-in ACL system, even a simple skeleton for one would suffice
__________________
My Portfolio - Work - Need freelance Work?
I've been developing 5 years now, and I learn something new everyday
ioan1k is offline  
Reply With Quote