Skip to content

good idea to follow common patterns because it will make your code easier to manage and easier for others to understand

License

Notifications You must be signed in to change notification settings

cijagani/PHP-Design-Patterns-OOP

Repository files navigation

Before running programm in your system set codeigniter base url properly?

How to set proper codeigniter base url?

$config['base_url'] = "http://somesite.com/somedir/";
If using the URL helper, then base_url() will output the above string.
Passing arguments to base_url() or site_url() will result in the following (assuming
$config['index_page'] = "index.php";:
echo base_url('assets/stylesheet.css'); //http://somesite.com/somedir/assets/stylesheet.css

echo site_url('mycontroller/mymethod'); //http://somesite.com/somedir/index.php/mycontroller/mymethod

About

good idea to follow common patterns because it will make your code easier to manage and easier for others to understand

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages