Skip to main content

Posts

Showing posts with the label CodeIgniter

Create Forms in codeigniter instantly

Create Forms in codeigniter instantly Guys this is very useful website if you want to create forms in CodeIgniter http://formigniter.org/app/ some snaps here You can download source code from  https://github.com/ollierattue/FormIgniter

Remove Index.php in CodeIgniter

If you are using  Codeigniter  you are noticed that by default  index.php  will be included with your  URL . But you can easily remove index.php from your CodeIgniter’s URL so that your URL should be like: http://techmatters1.blogspot.com /site/contact To do this just follows the following steps: Open  config.php  from  system/application/config  directory and replace $config['index_page'] = “index.php”  by  $config['index_page'] = “” Create a  “.htaccess”  file in the root of CodeIgniter directory (where the system directory resides), open the file using your favorite text editor, write down the following script and save it: RewriteEngine on RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA] In some case the default setting for  uri_protocol  does not work properly. To solve this...

Creating and Sending Parameters Between Controller and View

NOTE: All material in this post got from phpeveryday CodeIgniter Step By Step Tutorial: We still wok with our first application at CodeIgniter. But we will build controller and view better. Create parameters in controller and send it to view. It will make our application more flexible. Open your hello.php within CodeIgniter/system/application/controller. Overwrite become like this: Now, open your you_view.php within CodeIgniter/system/application/views. Rewrite with following code: Point your browser to http://localhost/CodeIgniter/index.php/hello/you

CodeIgniter Installation

NOTE: All material in this post got from phpeveryday.com CodeIgniter Step By Step Tutorial: After understand about codeIgniter at this, now, we learn how to install CodeIgniter. We will install to our local computer. Before follow this instruction, please download CodeIgniter at www.codeigniter.com. 1. Open your root web server. 2. Put CodeIgniter downloaded. 3. Extract it, you will get a folder named "codeigniter_[version]". 4. For simple, rename the folder to be "CodeIgniter" only. 5. Now, open config.php within CodeIgniter\system\application\config. 6. Change base site url at line 14: 7. Point your browser to http://localhost/CodeIgniter. You should get like this:

Remove Index.php in CodeIgniter

If you are using  Codeigniter  you are noticed that by default  index.php  will be included with your  URL . But you can easily remove index.php from your CodeIgniter’s URL so that your URL should be like: impegnotech.com/site/contact To do this just follows the following steps: Open  config.php  from  system/application/config  directory and replace $config['index_page'] = “index.php”  by  $config['index_page'] = “” Create a  “.htaccess”  file in the root of CodeIgniter directory (where the system directory resides), open the file using your favorite text editor, write down the following script and save it: RewriteEngine on RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA] In some case the default setting for  uri_protocol  does not work properly. To solve this problem just replace ...