484 Topics

Member Avatar for
Member Avatar for daniel36

my controller code is- <?php class Site extends CI_Controller { function index() { echo "Under Construction."; } function signup() { $this->load->model('site_model'); $data['countries']=$this->site_model->get_countries(); $this->load->view('signup_view',$data); } function login() { echo "This is working."; } } ?> When i open signup page .the signup view repeats many time.

Member Avatar for gon1387
0
117
Member Avatar for wycliffe.ottawa

am creating a simple blog application and i have a model in ci called entries model and one particular function that gets a blog entry by id from an entries table table in a database this here is the code <?php class Entries_model extends CI_Model{ function __construct(){ parent::__Construct(); } function …

Member Avatar for wycliffe.ottawa
0
166
Member Avatar for mangel.murti

i configure openinviter with Codeigniter. gamil conatact is fetching but yahoo and facebook contacts list are not working.any suggestion will be appre.

Member Avatar for LastMitch
0
174
Member Avatar for McLaren

Hello, I am trying CIUnit - PHP unit integration to codeigniter. But I am stuck - getting error that file is denied: E:\projektai\php projektai\htdocs\ci_unit\tests>phpunit PHPUnit 3.5.14 by Sebastian Bergmann. ....[CIUnit] PHP Error: Warning - include(E:\projektai\php projektai\htdocs\ci_u nit\application\config\testing\database.php): failed to open stream: Permission denied File Path: database/DB.php (line: 41) [CIUnit] PHP …

Member Avatar for McLaren
0
296
Member Avatar for imanpatrick

hello, i want to ask something about building a great website. i want to build a web startup,in local of course, but i dont know what programming language to use.. For example i want to build a site that looks like booking.com. please let me know what programming language to …

Member Avatar for arijith04
0
289
Member Avatar for yahya.erturan

My previous folder tree was (with portable xampp): (for example working on D: drive root) /xampp/htdocs/application /xampp/htdocs/system /xampp/htdocs/themes /xampp/htdocs/index.php etc.. Now I am trying to shift into a structure which I can work with multiple projects so new tree: /xampp/htdocs /web_projects/project-name/codeigniter/application /web_projects/project-name/codeigniter/system /web_projects/project-name/htdocs/themes /web_projects/project-name/htdocs/index.php My htaccess file in htdocs: RewriteCond …

Member Avatar for cereal
0
2K
Member Avatar for xNZxAssAssiNx

In my code I have a mysql query: "SELECT `username`,`password` FROM `users` WHERE `username` = 'Tyler'" This query doesn't return anything in codeigniter but it does return username and password if I query in phpmyadmin. Does anyone have any idea what is wrong? I'm guessing it has something to do …

Member Avatar for pritaeas
0
210
Member Avatar for daniel36

first thank you for solving privious problems. I am working on codeigniter . i am making signup form in which countries dropdown list is required. i am unable to make this drop down list with table country in my database.Can any one help me.

Member Avatar for wesley1263
0
4K
Member Avatar for extjac

What's your recommendation for PHP MVC frameworks?? i tested Codeigniter and it seem easy to use.... I am not a full time developer, but I do have some customers with backends, etc…My intention is to migrate some of old php code to PDO but I am now wondering if I …

Member Avatar for jkon
0
194
Member Avatar for extjac

Hello, what would be the best way to prvent people to run a php script/file that is on ajax.post(URL) $.ajax({ type: 'POST', url: 'http://www.mydomain.com/ajax/somefile.php?action=insert', data: data, success: success, dataType: dataType }); if you see code above...let's say that an advanced user or hacker go to: http://www.mydomain.com/ajax/somefile.php?action=insert i would like to …

Member Avatar for extjac
1
283
Member Avatar for McLaren

Hello, I have experience in codeigniter, and in it just set the settings in database.php and you connect to the database. In zend, I have no idea. Bootstrap.php <?php class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { protected function _initDB() { $dbConfig = new Zend_Config_Ini(APPLICATION_PATH . '/configs/db.ini'); $dbAdapter = Zend_Db::factory($dbConfig->adapter, array( 'host' => …

Member Avatar for McLaren
0
479
Member Avatar for iamthwee

OK so I'm quickly making my way through codeigniter... It seems pretty pleasant and the MVC model seems Okay. But I have come accross a problem in passing an array to a view and displaying it. Following the MVC pattern, the database queries are separated into the Mo**d**el file. [Good.] …

Member Avatar for Dani
0
113
Member Avatar for iamthwee

OK I've got another interview! Thanks to pritaes for the links etc. Never thought I might be doing a programming job but hey, it's a laugh I guess. I have a few questions I may want to ask about OOP in version 5, but also codeigniter and joomola... So learning …

Member Avatar for pritaeas
0
138
Member Avatar for reibi

Hello everyone, I am trying to create dynamic dropdown of category and when a particular category is selected then it should show sub-category automatically from the database. I have used this using javascript in OOP PHP but having difficulty while using it with codeignitor. So please anyone, help me with …

Member Avatar for cereal
0
3K
Member Avatar for PatrikDendis

Hi. I have URI Language Identifier on my website I did it according to directions on codeigniter WIKI. It works fine. But How Can I get name of controller because $this->uri->segment(2) = id and $this->uri->segment(1) = name of the metod. This is my routes.php $route['default_controller'] = "page"; $route['404_override'] = ''; …

Member Avatar for ko ko
0
183
Member Avatar for ecinevenice

hey does anyone here knows how to change excel page orientation to portrait? i get landscape as default <?php header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=transactions.xls"); header("Pragma: no-cache"); header("Expires: 0"); ?>

Member Avatar for blocblue
0
176
Member Avatar for kutchbhi

I have only coded 2 sites till now, first one in plain php (wall of php intermingled with js, html , super messy) and the other in codeigniter(much better as far as separating display with logic is concerned) now I have to code a website for a friend (designer). The …

Member Avatar for diafol
0
113
Member Avatar for Dani

So I just discovered a crazy bug that has been keeping visitors of the Opera web browser from using DaniWeb. Apparently there's a problem with CodeIgniter's CSRF protection that makes it not work with Opera, and I'm unsure of why. It works perfectly fine with IE, Firefox, Chrome, etc. I …

Member Avatar for diafol
0
309
Member Avatar for cgull

Hello, I have a problem with an Ajax call on IE9. I have searched the internet and this forum for solutions for a few hours and can't find an answer. I have a coffee roastery site (developed with Codeigniter), where the users can order coffee bags online. The user selects …

Member Avatar for cgull
0
884
Member Avatar for HiWorld

Hi, I am trying to make my search results table sortable. The content is obviously dynamic, so how would I do this? *Tablesorter.js does not work…* I am using CodeIgniter... Any help would be fantastic! Thanks

Member Avatar for HiWorld
0
173
Member Avatar for designalex

guy plz help me out with this. If i have a table, in the table is a column called veh_status, the row data will be varchar storing one or many comma seperated numbers so veh_status could be 1,2,3 each number represents an id to the relevant vehicle statuts name and …

Member Avatar for rch1231
0
206
Member Avatar for Ctechnology24

guys can anybody tell me how to implement a captcha in codeigniter 2.1.0 and what should I use, the captcha helper library or recaptcha? because I dont know if i can use recaptcha even if I don't have a domain because I'm using a local server. is it ok if …

Member Avatar for Ctechnology24
0
265
Member Avatar for Ctechnology24

Guys please give a simple code (specific syntax) on how can I integrate a jquery in my PHP site using codeigniter. and what configuration should be made in my other php files to make it work. I also cannot display any image in my php files inside the views folder, …

Member Avatar for Ctechnology24
0
2K
Member Avatar for McLaren

Hello, today I am experimenting with unit testing functions, on codeigniter, but that does not matter, the same question is for everything in PHP, or maybe not only in PHP, but general with functions that connect to database. So lets say I have such function: public function turnview_by_franchise_id($franchises_id, $clients_id, $date_from, …

Member Avatar for McLaren
0
222
Member Avatar for cartergarth

Hello everyone! How do you write a PHP function in codeigniter that lets user download data to an Excel file? Thank You.

Member Avatar for almostbob
0
204
Member Avatar for cali_dotcom

hi, i am about to rewrite an application that was written in zend 1.8. the owner complains that its quite slow so his default reaction is to rewrite it in any other framework of my choosing. the application is sometimes slow because they have not implemented any caching mechanism at …

Member Avatar for mschroeder
0
135
Member Avatar for kutchbhi

Say i have a list of items on a page . Now this list can be filtered by price ( in a simple POST form ) OR by discount (in another form element) OR by category links in the sidebar. Now if the user first filters by price and then …

Member Avatar for vibhaJ
0
135
Member Avatar for kit007
Member Avatar for kit007
0
91
Member Avatar for Dani

I autoload the Session library in CodeIgniter. However, sometimes there are controllers that output XML, JSON, an image, or other mime types, and I don't want these sending back cookies in the header. Is there a way to suppress this on a per-controller basis?

Member Avatar for diafol
0
173
Member Avatar for kit007

Im having a trouble connecting my javascript to codeigniter.. I use the base_url yet it doesnt work.. do i need some libraries to make it work.. Heres my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>MY PAGE</title> <meta http-equiv="Content-Language" content="English" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" …

Member Avatar for stbuchok
0
1K

The End.