-
Posts
242 -
Joined
-
Last visited
Everything posted by ankur0101
-
Probably you may need this-> https://github.com/philsturgeon/codeigniter-template
-
Hi, I am going to build a bus ticket booking application. I am very much familiar with Codeigniter and used in 8 projects. But FuelPHP and latest trend of Laravel are knocking my heart. I have learned FuelPHP and Laravel but not yet build any app. Ellis lab dis-counted the support and development for CI, hence it is half dead as community is still active. But now I want to try something new so which of the following is perfect for bus booking application ? FuelPHP or Laravel ? While reading their Docs, I think FuelPHP is easy compared to Laravel. But if Laravel is going to give more advantages, I will go for it.
- 12 replies
-
- fuelphp
- codeigniter
-
(and 1 more)
Tagged with:
-
Yes, it may happen. I agree with you. I made this script mainly for experimental purpose. I am using it on my 2 projects. One of them is SaaS which depends upon wildcard sub domains and requires lot of data from database while performing any action In our day to day project, we wont need to add lines for apc_store() everytime when new data has been added to database or existing data is modified. This was my purpose. However instead of syncing whole database, is it better idea to sync user specific tables ?
-
Hi, This is not a question instead my library. I know I need to put this inside Test your Beta stuff category but my repo is hosted on github and I cannot upload verification file. I wrote a PHP code that will sync an entire MySQL database to APC. Check it out : https://github.com/ankur0101/Project-CopyCat---MySQL-to-APC-Synchronization It really works nicely and I am using it on my 2 projects. All we need to do is to add a file called run.php to cron for every second. I am also going to release a linux daemon for this so there will be no need of crons. You Comments are appreciable. I am really sorry for posting in wrong category.
-
How to fetch specific fields in database table in codeigniter
ankur0101 replied to charlesbritto's topic in Frameworks
If your problem is solved, please mark it as Solved. -
I think you may use Amazon S3 API. Its better not to store so much documents in a database, instead, you may store file names in tables which will make it easier while searching. For this purpose, you may use PHP libraries what will allow you to edit files online, you need to google for that. Instead of all, why not to use Google Doc ?
-
If I would be in your shoes, I would simply create 2 directories called shop and blog, I would install Opencart in shop directory and Wordpress in blog directory. Your structure sounds good if you are using your own custom code.
-
May I know on which page you have seen this link ? I agree with you, considering SEO, English is written in that way. Thanks for notification of X
-
Hello to everyone, Just now our team has finished development of new version of our website.http://tinyurl.com/pvvcfcz We have decreased page loading time and added new feature on home page. It would be great if someone can raise any points considering security, performance, any linking issues etc. Verification URL :- http://linkwayhosting.com/test/phpfreaks.txt Thanks
-
With controlled SSH, we can use git server. Example : fortrabbit.com
-
Hi, I have table structure as follows : Name Amount ================= John 500 John 300 John 200 Danny 250 Danny 250 ================= Now I want to fetch data according to follows : John => 1000 Danny => 500 I tried lot of logics but nothing still working perfectly. I am using codeigniter. But if I will get PHP code to fetch like that, I can manage things in codeigniter. Thanks
-
HI, I am suffering form a strange problem. On my Windows 7 XAMPP, header() function works fine but on cPanel based hosting, it is not working. Here is scenario. I am redirecting all of error pages to 404.html In application/error/error_general.php, I modified code as follows : <?php header('Location: http://www.abc.com/404.html'); ?> <!DOCTYPE html> <html lang="en"> <head> <title>Error</title> <style type="text/css"> ::selection{ background-color: #E13300; color: white; } ::moz-selection{ background-color: #E13300; color: white; } ::webkit-selection{ background-color: #E13300; color: white; } body { background-color: #fff; margin: 40px; font: 13px/20px normal Helvetica, Arial, sans-serif; color: #4F5155; } a { color: #003399; background-color: transparent; font-weight: normal; } h1 { color: #444; background-color: transparent; border-bottom: 1px solid #D0D0D0; font-size: 19px; font-weight: normal; margin: 0 0 14px 0; padding: 14px 15px 10px 15px; } code { font-family: Consolas, Monaco, Courier New, Courier, monospace; font-size: 12px; background-color: #f9f9f9; border: 1px solid #D0D0D0; color: #002166; display: block; margin: 14px 0 14px 0; padding: 12px 10px 12px 10px; } #container { margin: 10px; border: 1px solid #D0D0D0; -webkit-box-shadow: 0 0 8px #D0D0D0; } p { margin: 12px 15px 12px 15px; } </style> </head> <body> <div id="container"> <h1><?php echo $heading; ?></h1> <?php echo $message; ?> </div> </body> </html> According to this, it should get redirected to abc.com 404 page but instead, I am getting the error message. Its not important to solve error, but goal is whenever any kind of error will occur, it will redirect traffic to 404 page. On Windows 7 with xampp - PHP version - 5.3.8 It works perfectly. ------------------------------------ On cPanel hosting server - PHP version - 5.3.25 It shows error instead of redirecting I search over internet and this forum as well but didnt find any solution. Any help would be appreciable. Thanks
-
How to Remove HTML tag considering Text value
ankur0101 replied to ankur0101's topic in Javascript Help
It does not disables whole DIV. Take a look at http://jsfiddle.net/bNYjp/ -
Hi, I have code as <div id="xerox_paper"> <p>Hello bro, it is <span>3</span></p> </div> I want to disable whole DIV tag having id as xerox_paper WHERE Span value is 3. I searched all over internet but didnt find anything helpful. Need help. Thanks
-
Disable all tags and elements inside top level tag using JQuery
ankur0101 replied to ankur0101's topic in Javascript Help
Hi guys, I solved this problem by myself. I used $('#pointer').find('input, label, p, select').attr('disabled','disabled'); $('#pointer').hide(); Problem solved. Source :- http://api.jquery.com/hide/ http://stackoverflow.com/questions/1073884/how-to-i-hide-and-show-html-elements-using-jquery -
Hi, I would like to know how to disable all components inside ID attribute of tag. Such as I have HTML <p id="pointer"> <div class="control-group"> <label class="control-label" for="inputEmail"><b>Students Name :</b></label> <div class="controls"> </div> </div> <div class="control-group" id="element_row"> <label class="control-label" for="inputEmail"><b>Particulars :</b></label> <div class="controls"> <select name="particulars" id="particulars"> <option value="0">SELECT</option> </select> Amount : <input name="amount[]" type="text" maxlength="7" onkeyup="sum()"> <button class="btn btn-mini btn-primary" type="button" onclick="addnew_row()" id="add"><i class="icon-plus-sign icon-white"></i></button> <button class="btn btn-mini" type="button"><i class="icon-minus-sign"></i></button> </div> <p> </p> <hr style="color: black" /> <div class="control-group"> <label class="control-label" for="inputEmail"><b>Total Amount :</b></label> <div class="controls"> <input name="total_amount" type="text" style="font-size:25pt;height:30px" /> </div> </div> </div> <p id="element_row_pointer"></p> <div class="control-group"> <label class="control-label" for="inputEmail"><b>Paid by :</b></label> <div class="controls"> <label class="radio"> <input type="radio" name="payment_mode" id="cash" value="option1" checked> Cash </label> <label class="radio"> <input type="radio" name="payment_mode" id="chq" value="option2"> Cheque </label> <label class="radio"> <input type="radio" name="payment_mode" id="dd" value="option2"> Demand Draft </label> </div> </div> <div class="control-group"> <label class="control-label" for="inputEmail"><b>Cheque / D.D. No. :</b></label> <div class="controls"> <input name="chq_dd_no" type="text" id="extras_textbox" /> </div> </div> <div class="control-group"> <label class="control-label" for="inputEmail"><b></b></label> <div class="controls"> <input type="submit" name="submit" class="btn btn-large btn-success" /> </div> </div> </p> How to disable everything from <p id="pointer"> ...... </p> using jquery ?? I tired $("#pointer").attr("disabled", true); but it does not work Need help, Thanks
-
Hi, I am running in a very strange situation. Problem is than javascript are not working in loaded page inside upper page which is called by ajax. I have 2 pages. Main.html is the one which is accessible to user. User just write the name of the file in browser and it opens up. <script> function showbox() { var str2 = document.getElementById('roll_no').value; if (str2=="") { document.getElementById("pointer").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("pointer").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","http://localhost/internal_page.html", true); xmlhttp.setRequestHeader('X_Requested_With', 'XMLHttpRequest'); xmlhttp.send(); } </script> <button class="btn btn-info btn-large" type="button" name="submit" onclick="showbox()">Lookup</button> <div class="container-fluid"> <p id="pointer"> </p> </div> The code of internal file internal_page.html is as below <script type="text/javascript"> function addnew_row() { alert("hi"); } </script> <button class="btn btn-mini btn-primary" type="button" onclick="addnew_row()">Add</button> So when user opens Main.html and clicks on Button, it opens a page inner_page.html inside id="pointer" perfectly but when user clicks on Add button, it does not call addnew_row() function. I think when user clicks on Add button, it should give alert saying hi. However when I write onclick="alert('hi')", that gives an alert on screen. Now if I open inner_page.html directly through browser, and clicks on Add button, then is gives alert saying hi because it calls addnew_row() Conclusion is when external page is called inside current page using ajax, the javascript on external page does not work. How to deal with this ? Why javascript inside newly called page does not work ? What is the solution to this problem ? Thanks
-
Ajax request not detecting on cPanel Server
ankur0101 replied to ankur0101's topic in Javascript Help
Bump......anybody here ? -
Hi, I have a code which detects whether it is an ajax request or any guest is directly visiting URL. I am using following code for building ajax request. xmlhttp.open("GET","http://aims.cmcs/ajax/fetch_fees_structure/"+dept.value+"/"+str,true); xmlhttp.setRequestHeader('X_Requested_With', 'XMLHttpRequest'); xmlhttp.send(); It works perfectly (on localhost) as, 1. While user is working in app, he get those all ajax things. 2. But when any guest goes to http://aims.cmcs/ajax/fetch_fees_structure/MS, it shows error which I have defined. But when I put this on cPanel server, it shows error while accessing in my app 1. user using app get that error which a guest would see while directly opening URL. I am using Codeigniter. CI got inbuilt ready function for that. Problem is things are not working on cPanel server and working on my localhost. I am confused as I think there is not need to tweak PHP or any other server settings as this is client side thing. Please help me. Thanks.
-
Thank you all, I will take your notes
-
That worked. Thanks yomanny
-
No, click event is not inside document.ready
-
Hi, I have html code like, <script> $("#premium_seat").click( function(){ if($('#premium_seat').attr('checked') == 'checked') { alert('Bingo'); } }); </script> <div class="control-group"> <label class="control-label" for="inputEmail"><b>Premium Seat</b></label> <div class="controls"> <input type="checkbox" name="premium_seat" id="premium_seat" /> </div> </div> What I want to do is when I tick on this checkbox, it will show me Bingo Dialogue box. This works here > http://jsfiddle.net/TyMNp/ But on my designing page, it is not working at all. I am using jquery v1.7.2 However other jquery functions such as $(document).ready(function() { document.getElementById("premium_pointer").innerHTML=""; //$("#premium_amount :input").attr("disabled", true); }); are working fine
-
Problem solved, I left --> }); after writing myFunc() Things are working as I wanted. Thanks for your help trq regarding jquery ready. I am bad at java script n jquery.
-
I came to know why it is not working. As I said earlier, I am using MVC (Codeigniter here) In Header.php, I am loading calling css and js files along jquery main file. In mainbody.php, I am writing myFunc() and calling that read jquery code. This is why it is not working. I wrote .ready() thing that you said in header.php and it worked fine. Now problem is I dont want to write that in header.php because it is common to all pages. And myFunc() is only called on maonbody.php.This is why I want to write jquery outside <head> i.e. in <body> If jquery does not work, how can I do with java script ?