Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integrating with other views #6

Open
mridulcs2012 opened this issue Nov 1, 2013 · 4 comments
Open

integrating with other views #6

mridulcs2012 opened this issue Nov 1, 2013 · 4 comments

Comments

@mridulcs2012
Copy link

I installed simplicity template by setting $route['default_controller'] = "example"; in routes.php under application->config.Now suppose i have another controller say forum.php and a view forum.php in views folder.if i place a link in your template page which will redirect to http://localhost/codeigniter/index.php/forum/forum, then that forum view will be displayed, but how do i display this forum view under ur template's let's say content area? how this goes as codeigniter is all displaying views.All i mean how other views displayed along with ur default template?

@scoumbourdis
Copy link
Owner

Hello @mridulcs2012 . This is related with the issue #4 that was reported before. What I am trying to say is that for now there is not any configuration to actually have a default template to the library. So for now there are two solutions that I can give you in order to achive that.

Solution 1. Add just this one line code at your constructor. With this way you can know that forums.php controller will have the default template.

function __construct()
{
    $this->output->set_template('default'); // Add this line to your controller
}

Solution 2. You can actually see a work around at issue #3 . This is the way I am doing it at my personal projects right now to have a default template.

Of course I have plans to have a default template feature at the future. I just need to find some more time to do it :)

If you still having issues, please let me know.

@mridulcs2012
Copy link
Author

So any other completed template library available in web? by that i can achieve what i want?

@scoumbourdis
Copy link
Owner

I couldn't found any completed template library for Codeigniter, that's why I've created this library :)

@edyrkaj
Copy link

edyrkaj commented Aug 31, 2014

Can anyone help using sections in codeigniter simplicity. How to use load->section and get_section in master page or theme structure.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants