Support » Plugin: WordPressIgniter » Adding multiple pages that rely on CI

  • Resolved shababhsiddique

    (@shababhsiddique)



    I am using wordpressigniter plugin to use codeIgniter within wordpress

    I have multiple pages prepared in codeigniter. say

    index.php/home/student
    index.php/home/register
    index.php/classes

    I would like to bring them in wordpress under 3 different pages. How do I do that?

    I can only bring the default page by showing the path to CI installation that leaves me with the index function of default controller. How do I use other functions and other controllers?

    https://wordpress.org/plugins/wp-igniter/

Viewing 1 replies (of 1 total)
  • Plugin Author dynamodan

    (@dynamodan)

    The default path, which is /welcome in Codeigniter, can be appended with functions in the welcome controller. So if you have your WordPressIgniter Page Override set to handle the page at http://example.com/codeigniter/, then the hello() function in controllers/welcome.php would be accessed by http://example.com/codeigniter/hello/ .

    Then other paths, such as http://example.com/classes/ or http://example.com/classes/biology/ would be handled by the biology() function in controllers/classes.php, *IF* you have “CodeIgniter grabs all SEO urls” checked.

    The WordPressIgniter plugin is not meant to be used with index.php anywhere in the url. I always keep that turned off in both WordPress and CodeIgniter. Who wants to see index.php in the url anyways.

Viewing 1 replies (of 1 total)
  • The topic ‘Adding multiple pages that rely on CI’ is closed to new replies.