codeigniter

How to Integrate SEOStats with Codeigniter?

时光怂恿深爱的人放手 提交于 2019-12-23 19:08:31
问题 Hello I want to integrate the SEOStats Class with a project in codeigniter , is anyone provide me solution ? I have tried to make the SEOstats class as a helper and load the helper in the specific controler , but a blank page is showing , I also try to include it via view but the same blank page i am seeing , I have included this code in my view file , the SEOstats directory also in the same views directory . <?php require_once 'SEOstats/bootstrap.php'; use \SEOstats\Services as SEOstats; try

Jquery 1.5 ajax sending as GET data on POST

强颜欢笑 提交于 2019-12-23 18:58:08
问题 (Sorry about my english, it aint my birth lang) I have a project that uses codeigniter+JqueryUI. I was thinking about upgrading JQuery version to 1.5 mainly because I am using a lot of ajax calls, and any improvement in speed is highly appreciated. So this is my code, wich works fine in JQuery version 1.4.4: $("#nome_produto").autocomplete({ source: function( request, response ) { $.ajax({ async:false, url: "<?php echo site_url("produtos_produto/json_produtos/f") ?>", dataType: "json", type:

How can I change config file path in Codeigniter?

你。 提交于 2019-12-23 18:20:27
问题 I use Codeigniter framework , and you know when I try to load a config file then use it I do something like that : $this->load->config('myconfig', TRUE); myconfig.php file is located inside application folder ( application/config/myconfig.php) and use it like this : $this->config->item('get_item', 'myconfig') My question is : how can I change the location of myconfig file and use it properly ? I want to put the config file(s) in out folder like this : mysite -> system(folder) mysite -> user

PasswordHash not working with CodeIgniter

泄露秘密 提交于 2019-12-23 17:49:24
问题 I have put the files I downloaded from http://www.openwall.com/phpass/ to application/libraries In my controller, I am using this code - $params = array( 'phpass_hash_strength' => 8, 'phpass_hash_portable' => FALSE ); $this->load->library('PasswordHash', $params); $password = $this->passwordhash->HashPassword($pwd); I am getting these errors - A PHP Error was encountered Severity: Notice Message: Uninitialized string offset: 3 Filename: libraries/PasswordHash.php Line Number: 116 A PHP Error

CKEditor TypeError: c[a] is undefined in CodeIgniter

冷暖自知 提交于 2019-12-23 17:34:52
问题 Im trying to install CKEditor in my codeigniter based website and I have followed this tutorial: CKEditor in Codeigniter Tutorial But Im receiving this error: TypeError: c[a] is undefined CKEDITOR.lang.load/d() ckeditor___ckeditor:230 CKEDITOR.scriptLoader</<.load/f() ckeditor___ckeditor:231 CKEDITOR.scriptLoader</<.load/x() ckeditor___ckeditor:231 CKEDITOR.scriptLoader</<.load/A() ckeditor___ckeditor:231 CKEDITOR.scriptLoader</<.load/u/g.$.onerror() The folder which ckeditor folder is in:

Remove index.php from Codeigniter URL in subfolder with Wordpress in root

送分小仙女□ 提交于 2019-12-23 17:21:53
问题 I'm having some issues with a Codeigniter app in a subfolder on my server along with a Wordpress install in the document root. If I hide the index.php of the Codeigniter URL with .htaccess /codeigniter/.htaccess DirectoryIndex index.php <IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteCond $1 !^(index\.php|user_guide|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA] </IfModule> <IfModule !mod_rewrite.c>

need to refresh the page content

孤街浪徒 提交于 2019-12-23 16:28:06
问题 I am using codeigniter frame work and currently working on social networking kind of stuff. My problem is, i need to notify the user of their friends activity with out reloading the page when the user clicks on the feeds link. I have tried the following script, <script> setInterval(function() { $('#reload').fadeOut("slow").load('user_feeds').fadeIn("slow"); }, 10000); </script> It increases the load to my server. any other idea for accomplishing this. Thanks in advance. 回答1: Then try to

Unable to access codeigniter controller in Live Server but accessible in localhost (xampp on windows)

可紊 提交于 2019-12-23 15:53:34
问题 My project working fine on local system (XAMPP) , however when uploaded to hosting server its not working. Im Using Codeigniter framework. accesible in localhost via "localhost/myproject/controller" , but in host server unable to access via myproject.com/controller or even myproject.com/index.php/controller !! On server, main domain is (lets suppose D.COM and add on domain is AD.COM). My application is installed under addon domain. hence my folder structure is public html/ AD.COM/ application

IF Session data exists, output in view

六眼飞鱼酱① 提交于 2019-12-23 15:39:34
问题 So I'm trying to output a session's variable value into a view (only if it exists). But I can't seem to get it to work. No error. Nothing. What am I missing? Thought I had this down packed by now - guess not... In controller...FYI, $data is assigned to the view (i.e. $this -> load -> view('view', $data); $data['campaign_name'] = $this -> session -> userdata('campaign_name'); Here's my php snippet in the view that I'm trying to output. So in short, if the session exists, output it. If not, do

%20 is added instead of spaces

做~自己de王妃 提交于 2019-12-23 15:33:32
问题 I guess this is small issue but yet i had to ask here since i am running short in my project. When I pass string to the function in another controller, it changes spaces into %20 sign. I guess the controller thinks the string passed as url and encodes it. But I don't know exactly how to remove it or if possible do not let it to change spaces into %20. Here is the code which i use; $message="The user name you provided is already in our database"; redirect('admin/add_user/'.$message); Here is