v 1.3.3 grocery CRUD - an automatic Codeigniter CRUD |
[eluser]web-johnny[/eluser]
[quote author="ReyPM" date="1303758227"]I'm lost again ![]() ![]() 1. I add a template (/templates/custom_cms/template.php) if I want, right? 2. If I don't want to use this template then only use this code: Code: $this->output->set_template('custom_cms'); 3. If I don't want to use Grocery CRUD and want to display a static page then this code should work: Code: $this->load->view('trasegados/form', $data); PS: Sorry for my english but my native language (write & read) is Spanish ![]() Nooooooo. You are lost. Ok . 1st of all - to work with grocery CRUD is REQUIRED to have a template. So in your functions you will have the $this->output->set_template('custom_cms'); line of code. So for example if you want to run my example you will do it like this: Code: function my_boss_is_in_a_hurry() Now for your example. If you want to use ANOTHER function that don't use the grocery CRUD . You will have it as before. So for example the Welcome page of codeigniter will be : Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); I think it's easy you just don't understand well the "template" thing . Perhaps is my fault because I didn't documented very good. |
Welcome Guest, Not a member yet? Register Sign In |