Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: A little confusion about security
Post: RE: A little confusion about security

Diederik Wrote: (09-07-2015, 04:45 AM) -- I hope I understand your question correctly, I think you could use the xss_clean() for this job. It will allow you to populate the inputs in your form with t...
8,841 Views
7 Replies
09-07-2015, 06:18 AM
Urastor
    Thread: A little confusion about security
Post: A little confusion about security

Hey there, I rewrote some parts of my admin-system, no I got confused. I'm using the form-helper to generate forms and the set_value(); function to set data if exists or if it's in the database. In ...
8,841 Views
7 Replies
09-06-2015, 12:37 PM
Urastor
    Thread: Dynamic ajax calls
Post: RE: Dynamic ajax calls

mwhitney Wrote: (08-06-2015, 06:24 AM) -- It's not something I would consider a good long-term solution, but it's an easy way to pass data to a script, especially early in development and/or when tes...
4,925 Views
4 Replies
08-06-2015, 02:14 PM
Urastor
    Thread: Dynamic ajax calls
Post: RE: Dynamic ajax calls

Ahhh.. the data-* Attributes.. I'm actually use them, but I totally forgot that I could give data to the js. x.x (Stupid, if I think of it, because as I said, I already use it in another part of this ...
4,925 Views
4 Replies
08-06-2015, 02:58 AM
Urastor
    Thread: Dynamic ajax calls
Post: Dynamic ajax calls

Hellou, My current application uses the "normal" way of processing data (User submits a form, data is send to a controller method and Redirects if everything is ok). But I wanted to make everythin...
4,925 Views
4 Replies
08-05-2015, 09:18 AM
Urastor
    Thread: Using Sub-Directories for Default_controller
Post: RE: Using Sub-Directories for Default_controller

As far as I understand, the default_controller would not work with subdirectories, look here: https://github.com/bcit-ci/CodeIgniter/issues/2849 As narfbg mentioned: Quote: -- Then it's w...
3,373 Views
2 Replies
05-08-2015, 07:23 AM
Urastor
    Thread: How can I include or Call Session Controller In to My home page ,about page ....
Post: RE: How can I include or Call Session Controller ...

If you want to write you session check as a library, you need to put your Session_check file into the library folder: app ----library --------Session_check.php You can load it via $this->load->libra...
3,266 Views
2 Replies
05-08-2015, 07:17 AM
Urastor
    Thread: Having database access in 3rd party lib
Post: RE: Having database access in 3rd party lib

Look here: http://www.codeigniter.com/userguide3/general/creating_libraries.html#utilizing-codeigniter-resources-within-your-library Soo.. for example: PHP Code: -- class extLib3 {       p...
2,437 Views
1 Replies
05-06-2015, 04:29 PM
Urastor
    Thread: Cronjob via HTTP
Post: RE: Cronjob via HTTP

CroNiX Wrote: (05-06-2015, 03:31 PM) -- The benefit of using an external service to execute your cronjobs is you don't have to worry about uptime/server problems in case something is wrong with your ...
12,664 Views
11 Replies
05-06-2015, 03:51 PM
Urastor
    Thread: Cronjob via HTTP
Post: RE: Cronjob via HTTP

@Silentium: Yes, this is what I know already, but I tested it once with http and with the file method. The file method gave me an error right away, because /path/to/index.php cronjobs update is not a...
12,664 Views
11 Replies
05-06-2015, 03:13 PM
Urastor
    Thread: Adding database functionallity
Post: RE: Adding database functionallity

As mwhitney said, extending the db of CI isn't the way to go here. You could add a model (MY_Model) to your core folder and extends CI_Model. To get access to every model, run parent::__construct(); ...
3,770 Views
3 Replies
05-06-2015, 12:49 PM
Urastor
    Thread: Cronjob via HTTP
Post: RE: Cronjob via HTTP

ivantcholakov Wrote: (05-06-2015, 11:24 AM) -- You have to keep in mind two issues: 1. How long the script runs? One minute or two? 2. Have you got an administration panel? Then if it is not CLI, th...
12,664 Views
11 Replies
05-06-2015, 11:53 AM
Urastor
    Thread: Cronjob via HTTP
Post: Cronjob via HTTP

Hey there, I want to run a Cronjob every day, to update one of my mysql tables. I read a lot about it, but there's a problem: I can run Cronjobs only through a HTTP request or a script. (site.com...
12,664 Views
11 Replies
05-06-2015, 10:01 AM
Urastor
    Thread: Data to View
Post: RE: Data to View

CroNiX Wrote: (04-11-2015, 10:01 AM) -- Where does CI specify to use full PHP open tags? -- Here: http://www.codeigniter.com/user_guide/general/styleguide.html#short-open-tags (http://www.codeignite...
8,163 Views
8 Replies
04-11-2015, 11:09 AM
Urastor
    Thread: Data to View
Post: RE: Data to View

Code: -- The only thing is the religious war between
8,163 Views
8 Replies
04-11-2015, 08:10 AM
Urastor
    Thread: Data to View
Post: RE: Data to View

Okay... thanks for reply. :) I tried to clean the whole mess up and this is the result: Controller-method: PHP Code: -- [...] if (is_null($year) && $menuIndex === 2) {            for ($cye...
8,163 Views
8 Replies
04-10-2015, 07:10 PM
Urastor
    Thread: Data to View
Post: Data to View

Hellu, :) Let's say I want to make my controller a little bit more cleaner and my view more "attractive". At the moment I'm using this code in my controller method: PHP Code: -- [...]      ...
8,163 Views
8 Replies
04-10-2015, 03:50 PM
Urastor
    Thread: Just General Questions
Post: RE: Just General Questions

CodeIgniter is "just" a framework, so it's helping you while programming your application. It offers a few standard functions, that makes your life soo much easier, when coding in PHP. :) I think it'...
4,013 Views
0 Replies
03-08-2015, 01:33 PM
Urastor
    Thread: CSRF Protection problem
Post: RE: CSRF Protection problem

Avenirer Wrote: (03-05-2015, 02:50 PM) -- Maybe this is due to the expiration of csrf token? -- I don't think so. It happens very randomly, so even if i deleted the cookies manully, it happens. I s...
3,532 Views
0 Replies
03-05-2015, 04:00 PM
Urastor
  Exclamation Thread: CSRF Protection problem
Post: CSRF Protection problem

Hey there, :) I have a small problem with csrf protection. I'm using csrf protection for my login site, to login. Sometimes i get an error: "An Error Was Encountered The action you have reques...
3,532 Views
0 Replies
03-05-2015, 06:54 AM
Urastor

Theme © iAndrew 2016 - Forum software by © MyBB