• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error during installation

#1
[eluser]Harjot Singh[/eluser]
hi...

i m a new user of codeigniter.i m using webdeveloper controller suit. when i m run ci on localhost then error show " Parse error: syntax error, unexpected T_STRING in C:\www\webapps\joomla\codeigniter\application\config\config.php on line 24 " that line is
$config['index_page'] = 'index.php'; i have problem. Any body plz help me.

#2
[eluser]Aladin[/eluser]
Hello,
There's no parse error in what you posted
Code:
$config[‘index_page’] = ‘index.php’;
Maybe it's in the line before?
Please post more script between [ code ] tags. Thank you

#3
[eluser]Harjot Singh[/eluser]
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://example.com/
|
| If this is not set then CodeIgniter will guess the protocol, domain and
| path to your installation.
|
*/
$config['base_url'] = 'http://localhost/joomla/codeigniter/;

/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = 'index.php';

& database config.php file is as follows :


<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
| For complete instructions please consult the 'Database Connection'
| page of the User Guide.
|
| -------------------------------------------------------------------
| EXPLANATION OF VARIABLES
| -------------------------------------------------------------------
|
| ['hostname'] The hostname of your database server.
| ['username'] The username used to connect to the database
| ['password'] The password used to connect to the database
| ['database'] The name of the database you want to connect to
| ['dbdriver'] The database type. ie: mysql. Currently supported:
mysql, mysqli, postgre, odbc, mssql, sqlite, oci8
| ['dbprefix'] You can add an optional prefix, which will be added
| to the table name when using the Active Record class
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
| ['cachedir'] The path to the folder where cache files should be stored
| ['char_set'] The character set used in communicating with the database
| ['dbcollat'] The character collation used in communicating with the database
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
| ['autoinit'] Whether or not to automatically initialize the database.
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
| - good for ensuring strict SQL while developing
|
| The $active_group variable lets you choose which connection group to
| make active. By default there is only one group (the 'default' group).
|
| The $active_record variables lets you determine whether or not to load
| the active record class
*/

$active_group = 'default';
$active_record = TRUE;

$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'root';
$db['default']['password'] = 'rootwdp';
$db['default']['database'] = 'singh';
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;


/* End of file database.php */
/* Location: ./application/config/database.php */

#4
[eluser]Harjot Singh[/eluser]
plzzzzzzzzzzz help me.....dear

#5
[eluser]Aladin[/eluser]
Well the mistake is in the line 17 where
Code:
$config[‘base_url’]  = ‘http://localhost/joomla/codeigniter/;
it should be
Code:
$config[‘base_url’]  = ‘http://localhost/joomla/codeigniter/';
Smile

#6
[eluser]Harjot Singh[/eluser]
thx dear for helping...........but this same page that runs as index.php

i have no any knowledge about the CI.

is CI Graphical User Interface.........like joomla/wordpress etc...?

now wht i do after the installation.

#7
[eluser]Aladin[/eluser]
Well CI is not like Joomla or Wordpress, it's a framework that will help you to create scripts like joomla and wordpress... You must have some php skills, I was too creating webistes with Joomla and Wordpress, but personally I think that creating a website with my own hands is much better and I feel more comfortable with my site. Now if you want to use CI you must learn some PHP.
Try to follow the video tutorials in the CI website, or in net.tutsplus.com.
And http://www.codeigniterdirectory.com/ this is the best site for CI resources.
Good luck and happy coding.

Aladin

#8
[eluser]Harjot Singh[/eluser]
thx dear 4 helping...............Hopes u help me to learns php scripts their own. plz gives me more reference sites or tutorial site at where i learn CI.



thx u again.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.