Posts

Showing posts from April, 2018

Simple Jquery Ajax Alongside Codeigniter (Video Tutorial)

Image
I flora this screencast spell i was searching to larn Jquery in addition to Ajax integration. It help me a lot to empathise basic in addition to was able to implement inward my project. You tin persuasion the screencast inward below URL Author conduct maintain broken it downward to iv parts. This offset 1 explains on how tardily Jquery tin last to setup in addition to to a greater extent than or less tools you lot heed honor usefull. simple-jquery-ajax-with-codeigniter-part-1/ Following on from component 1 inward this screencast writer exhibit near Ajax functions $.get. We volition conduct maintain a hold off at how to perfom a $.get asking in addition to how to handgrip the callback. simple-jquery-ajax-with-codeigniter-part-2/ So straightaway nosotros conduct maintain looked at the $.get asking nosotros straightaway are going to hold off at the $.post request. In this screencast nosotros tin encounter how nosotros tin submit shape information through this

How To Provide View’S Every Mo Information Inwards Codeigniter?

View’s tin dismiss travel returned every minute information amongst a tertiary parameter ( setting to TRUE) every minute follows $output = $this->load->view('view', $data, TRUE); You tin dismiss usage this selection for many purposes. I accept used it for constructing downloads too to choose handgrip of too impress consummate html template. You tin dismiss used it to build PDFs amongst the assistance of about custom libraries or function. Sumber http://developer-paradize.blogspot.com

Flushing Codeigniter's Cache Or Deleting Caches Inward Codeigniter

Image
Enabling together with deleting caches inward Codeigniter is fairly straightforward together with easy. In this post, I am writing near deleting caches. You no longer involve to delete caches manually inward Codeigniter 2.x version. If yous no longer want to cache a file inward Codeigniter yous tin destination take away the cache files. Following are 2 methods to create it. Clearing all cache You tin destination clear the entire cache directory past times calling $this->output->clear_all_cache(); Note: This volition non take away the .htaccess together with index.html files inward the applications/cache folder. //Clears all cache from the cache directory $this->output->clear_all_cache(); This method returns NULL. Clearing a cached path You tin destination clear whatever specified path of its cache past times calling following method. //Clears the cache for the specified path $this->output->clear_path_cache($uri);  This method volition fu

A Bootstrap For The Codeigniter Php Framework

Image
The Template library written for the CodeIgniter PHP-framework using pop bootstrap. Check out @ https://github.com/aliasproject/CodeIgniter-Bootstrap Sumber http://developer-paradize.blogspot.com

Using Jquery To Filter Data

Image
Fig: Screenshot of the result When a webpage is designed to display large tables of data, a non bad amount of consideration should hold out dedicated to allowing the user to form through the information inwards a structured manner. In this article, I volition become over 1 techniques:  filtering. If a website calls for many records of information to hold out displayed, inwards my example K rows, together with thence it is to a greater extent than than appropriate to offering the user a means to sift through the data. One specially effective means that has sprung upwards on the spider web inwards recent years equally constituent of the Web2.0/AJAX displace is filtering. This is also something that Apple pushes heavily inwards at that topographic point applications such equally iTunes. The finish for us is to allow the user to type a search query into a criterion text input together with alive filter the tabular array rows below exclusively showing the ones that comprise matchin

How To Become The Showtime Give-And-Take Of A String/Sentence Inwards Php?

There is a string business office ( strtok ) which tin hold upwards used to separate a string into smaller strings ( tokens ) based on unopen to separator(s). For the purposes of this thread, the offset give-and-take (defined equally anything earlier the offset infinite character) of  Test me more  can hold upwards obtained by  tokenizing  the string on the infinite character. <? php $value = "Test me more" ; echo strtok ( $value , " " ); // Test ?> For to a greater extent than details in addition to examples, meet the  strtok PHP manual page . Alternative solutions $myvalue = 'Test me more' ; echo strstr ( $myvalue , ' ' , true ); // volition impress Test echo current(explode(' ',$myvalue)); // volition impress Test $myvalue = 'Test me more'; $arr = explode(' ',trim($myvalue)); echo $arr[0]; // volition impress Test $string = ' Test me to a greater extent than '; preg_match('/\b\w+\b/i'

Solution To Output A Utf-8 Csv Inward Php That Excel Volition Read Properly

Excel doesn't back upward UTF-8. You accept to encode your UTF-8 text into UCS-2LE. It is real uncomplicated to alter the encoding inwards PHP. You tin purpose next PHP inbuilt percentage to covert encoding from utf8 to ucs-2le. mb_convert_encoding($output, 'UCS-2LE', 'UTF-8'); Open the CSV amongst excel, it volition display the particular characters properly. It saved a lot of fourth dimension for me at-least. Let me know if it helped for y'all guys equally well? Sumber http://developer-paradize.blogspot.com

Get File Refer Without File Extension Inward Php

Definition in addition to Usage - basename() The basename() component division returns the filename from a path. Syntax basename(path,suffix) Parameter Description path Required. Specifies the path to check suffix Optional. Specifies a file extension. If the filename has this file extension, the file extension volition non show Example <?php $path = "/testweb/home.php"; //Show filename amongst file extension echo basename($path) ."<br/>"; //Show filename without file extension echo basename($path,".php"); ?> The output of the code inwards a higher identify volition be: home.php home You convey to know the extension to take it inwards advance though. You tin laissez passer the sack exercise pathinfo() in addition to basename() together if you lot don't know the extension of the file. First cash inwards one's chips the extension using pathinfo(), in addition to exercise the basename function, si

Create Jquery Ajax Alongside The Codeigniter Pagination Library Video Tutorial

In this screencast you lot are going to larn how to combine Jquery Ajax amongst the Codeigniter Pagination Library. Note: I bring wrote an article concluding calendar week amongst consummate root code on "How to implement jQuery Ajax amongst Codeigniter pagination library together amongst bootstrap styling". Click the next link to stance the article. How to role Codeigniter pagination library together amongst jQuery too AJAX amongst consummate sourcecode?  Ref: http://blip.tv/web-lee/codeigniter-pagination-part-4-2245514 Sumber http://developer-paradize.blogspot.com

How To Enable Whorl Inwards Server From Final (Ubuntu)

To enable curlicue parcel php5-curl should live on installed. Open "Terminal" together with execute the next command: sudo apt-get install curlicue libcurl3 libcurl3-dev php5-curl After installing libcurl you lot should restart the spider web server amongst next command, sudo /etc/init.d/apache2 restart Hope this solution volition handle to enable curlicue inwards your ubuntu system. It worked on mine :) Sumber http://developer-paradize.blogspot.com

How To Perish A Random Value From Array Inwards Php?

If you lot don't hear picking the same detail ane time to a greater extent than at another fourth dimension as well as thence you lot tin go purpose next code:    <?php    $items = array(1,5);    echo $items[rand(0, count($items) - 1)]; ?> It volition display a random release from the elements of array. 1 or three or five or 1 ....... Sumber http://developer-paradize.blogspot.com

How To Select A Random Value From An Array Using Javascript?

Use the next pseudo code to warning a random values from given array using javascript. var item_array = [1, 3, 4, 5]; var random_item = item_array[Math.floor(Math.random() * item_array.length)]; alert(random_item); Explanation: Create an array of your choice, together with so pick 1 chemical constituent from the array. You produce this past times choosing a random unwrap using Math.random(), which gives yous a resultant greater than or equal to 0 together with less than 1. Multiply past times the length of your array, together with create got the flooring (that is, create got but the integer part, dropping off whatever decimal points), so yous volition create got a unwrap from 0 to 1 less than the length of your array (which volition hence last a valid index into your array). Use that resultant to pick an chemical constituent from your array. Source: http://stackoverflow.com/questions/5708784/how-do-i-choose-a-random-value-from-an-array-with-javascript Sumber http://developer-

How To Cheque If Interrogation String Acquaint On Url Using Jquery?

document.location contains data virtually the URL, in addition to document.location.search contains the inquiry string. if(document.location.search.length) { // inquiry string exists } else { // no inquiry string exists } You fifty-fifty don't withdraw jQuery. You tin create that using uncomplicated jQuery. Sumber http://developer-paradize.blogspot.com

Top Ten Incorrect Ideas Most Php

PHP is often a misunderstood linguistic communication yesteryear people that either beloved or loathe it. On 1 side at that spot are developers that loathe PHP obviously because they create non quite sympathise how it works. They create non honour PHP together with prefer other languages. So they lose many opportunities to brand skillful coin from the PHP market, which has then many high paying jobs for qualified developers. On the other side at that spot are developers that beloved PHP but create non own got sum wages of the linguistic communication because they are non fully aware of all they tin flame create amongst it. This article attempts to clarify unopen to of the most mutual incorrect ideas that many developers own got most PHP. Top 10 Wrong Ideas About PHP Here follows a listing of unopen to of to a greater extent than mutual incorrect ideas most PHP. I simply presented the peak 10 that I discovery to a greater extent than relevant, but I could own got fifty-fifty liste

Using Mongodb Alongside Codeigniter - Nosql

MongoDB is document-oriented NoSQL database. What is NoSQL? NoSQL is a sort of database that, different most relational databases, does non supply a SQL interface to manipulate data. NoSQL databases commonly organize the information inward a different fashion other than tables. NoSQL databases are divided into 3 categories: column-oriented, key-value pairs, together with document-oriented databases. SQL based relational databases create non scale good when they are distributed over multiple cluster nodes. Data partitioning is non an slow to implement solution when the applications purpose bring together queries together with transactions. NoSQL databases are non new. Actually, at that spot were key-value duo based databases earlier relational database became popular. What is a document-oriented database? For document-oriented databases, a document is a information construction that has variable give away of properties. Each holding has a value that tin laissez passer on