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...
13,398 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 ...
13,398 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...
8,087 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 ...
8,087 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...
8,087 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...
5,645 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...
4,783 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...
4,164 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 ...
21,794 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...
21,794 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(); ...
6,610 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...
21,794 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...
21,794 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...
14,204 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
14,204 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...
14,204 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: -- [...]      ...
14,204 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'...
6,363 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...
5,846 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...
5,846 Views
0 Replies
03-05-2015, 06:54 AM
Urastor

Theme © iAndrew 2016 - Forum software by © MyBB