Welcome Guest, Not a member yet? Register   Sign In
new and with some questions :-D
#2

[eluser]bastones[/eluser]
Quote:- if i need to upload via PHP some file which would it be the best thir to set them to? in the root a new /file/ folder?

Yes, have a separate folder in the root directory is best. Make sure you CHMOD/change the permissions of that folder to 777 so that PHP can upload to that folder. To change permissions in an FTP client you usually right-click and select 'CHMOD' or 'permissions' and set the value to 777 or select every checkbox.

Quote:- if i need to store some global variable such as the website title ($data[‘title’] = ”$websittitle Welcome”Wink , where should i write them?

If you need to load a specific library/helper in every function you simply put it in the constructor. Here is an example:

Code:
<?php
class Forum extends Controller();
function Forum() {
// this is the constructor
parent::Controller();
$this->load->helper('url');
}
}
?>

...for example. You always call the parent controller with parent::Controller() as we're making a function that references to the class/this controller we're in. For more info see this bit of the User Guide.

Quote:- if i want to add some personal libriries where and how should i add them?

I don't need to explain this as all is explained very well here.

Cheers Smile.


Messages In This Thread
new and with some questions :-D - by El Forum - 11-10-2008, 01:04 PM
new and with some questions :-D - by El Forum - 11-10-2008, 01:48 PM
new and with some questions :-D - by El Forum - 11-11-2008, 09:51 AM
new and with some questions :-D - by El Forum - 11-11-2008, 10:17 AM
new and with some questions :-D - by El Forum - 11-11-2008, 10:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB