Welcome Guest, Not a member yet? Register   Sign In
Poll: Should something like this view_layout method be included?
You do not have permission to vote in this poll.
Yes
30.00%
3 30.00%
No
60.00%
6 60.00%
Maybe - see comments
10.00%
1 10.00%
Total 10 vote(s) 100%
* You voted for this item. [Show Results]

View Layouts - Input Desired
#3

i don't know isn't it better to use an output manager or something like that ?
That whole "echo" thing looks a bit weird i think.

Phil Sturgeon did a pretty good job with his Template Library imho.
Did you ever consider an option like this?

I think if a Framework doesn't provide such a functionality, i'm pretty muched get forced to develop it on my own

PHP Code:
    public function overview()
    {
        
$this->template->addcss(css_app_path_relative()."frontend/index.css");
        
$this->template->addcss(css_app_path_relative()."general/nav-left-content.css");
        
$this->template->addcss(css_app_path_relative()."frontend/landingpage/overview.css");

        
$arrNavigationData['navigation'] = Navigation_Model::getNavigation();
        
$this->template->set_partial("left-navigation","layouts/partials/left-navigation",$arrNavigationData);

        
$this->template->build("body");
    } 



The above example should illustrate what i mean.
Reply


Messages In This Thread
View Layouts - Input Desired - by kilishan - 07-10-2016, 09:05 PM
RE: View Layouts - Input Desired - by PaulD - 07-11-2016, 06:09 AM
RE: View Layouts - Input Desired - by sintakonte - 07-11-2016, 07:13 AM
RE: View Layouts - Input Desired - by prezire - 07-11-2016, 05:42 PM
RE: View Layouts - Input Desired - by PaulD - 07-11-2016, 09:39 PM
RE: View Layouts - Input Desired - by albertleao - 07-11-2016, 09:52 PM
RE: View Layouts - Input Desired - by kilishan - 07-11-2016, 09:59 PM
RE: View Layouts - Input Desired - by sv3tli0 - 11-05-2016, 01:07 AM
RE: View Layouts - Input Desired - by cartalot - 11-17-2016, 01:29 PM
RE: View Layouts - Input Desired - by PaulD - 11-17-2016, 03:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB