⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Wordpress integration



fifisave

fifisave
  • profile picture
  • Member

Posted 21 May 2013 - 13:26 PM

Hello,

i try to setup a crud into a wordpress page using grocerycrud but i need some information please.

First i do't know exactly WHERE to copy grocerycrud folders under which folder my website folder is supposed to be

htttp://localhost:4001/wordpress/ and my folders are using htdocs then wordpress folder and then wp contents and then themes folders.

Which one is supposed teh correct one please??

Then i grab the simple example file and copy all to a page template call grocerycrud.php the file likes like that:

 

 

<?php /* Template Name: Grocery crud */ ?>
 
function wp_borne()
{
    $output = $this->grocery_crud->render();
 
    $this->_example_output($output);
}
 

BUT when i assign my web page to this page template and ran it it displays only THE PHP CODE.

SO i don't exactly undestand how it should work can someone please help me or send me an example with code and folders used please.

Regards

P SAVE


fifisave

fifisave
  • profile picture
  • Member

Posted 21 May 2013 - 13:44 PM

Hello again,

i try to update my grocerucrud template php file with this:

<?php /* Template Name: Grocery crud */ ?>

<?

function wp_borne()

{

$output = $this->grocery_crud->render();

 

$this->_example_output($output);

}

?>

 

BUT nothings happening when i try to run my web page, no errors but nothing else!!!

Any idea please?

Regards

P SAVE


davidoster

davidoster
  • profile picture
  • Member

Posted 21 May 2013 - 17:52 PM

Hello and welcome to the forums.

I haven't tried it myself (this integration) so I can't give you any pointers to this.

But I believe that you are asking to the wrong place how to integrate GC with WP.

The real question should be: 

"How to integrate a CodeIgniter application within Wordpress"

If you manage to do this then you will be able to see your GC application as well!


fifisave

fifisave
  • profile picture
  • Member

Posted 22 May 2013 - 07:38 AM

Ok tx, i will look into internet to find a solution and get back to you if necessary.

regards


davidoster

davidoster
  • profile picture
  • Member

Posted 22 May 2013 - 07:46 AM

Maybe this will help you.

http://www.bohemiawebsites.com/Integrating-Codeigniter-into-Wordpress.html


fifisave

fifisave
  • profile picture
  • Member

Posted 22 May 2013 - 09:11 AM

Tx, after one hour trying to include codeigniter into wordpress i will go back and try to use another plugin like db toolkit baecause it is to much difficult for me......

So i will  use another tools to generate my crud.

regards and tx for your help