Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: IRC Channel
Post: RE: IRC Channel

I will try to keep this short and civilized, in order to not be called any more names. Your IRC channel #codeigniter on the Freenode network is more or less dead. Except for a few of us regulars. Yes...
43,723 Views
19 Replies
07-27-2017, 04:19 AM
slax0r
    Thread: Accessing dynamic links in the format of domain.com/<dynamic_page_name>
Post: RE: Accessing dynamic links in the format of doma...

Well, you could make routes for every page name as well. PHP Code: -- $route["page_name1"] = "controller/page_name1"; $route["page_name2"] = "controller/page_name2"; // and so on... -- But, then e...
5,046 Views
4 Replies
10-12-2015, 02:17 AM
slax0r
    Thread: What do you do to relax /hobbies
Post: RE: What do you do to relax /hobbies

Family time, online gaming,...
37,246 Views
37 Replies
10-12-2015, 02:14 AM
slax0r
    Thread: Extending Main model and not the CI Model
Post: RE: Extending Main model and not the CI Model

Loading the main model in the constructor will not work, because the constructor will not be executed due to a fatal error of "Main_model" class not found. What you could do is put the main model into...
7,417 Views
4 Replies
10-12-2015, 02:12 AM
slax0r
    Thread: Flat file vs database driven systems
Post: RE: Flat file vs database driven systems

Why would you want a flat-file app anyway? Storing data in DB can be faster, than storing into a file. Provided your DB is configured and designed properly. Especially when your dataset gets larger.
10,830 Views
8 Replies
10-11-2015, 11:43 AM
slax0r
    Thread: Getting _POST content from rich text editor
Post: RE: Getting _POST content from rich text editor

I guess you are limited by the RTE. Normally RTEs will create a hidden textarea html element, and its JS will automatically input HTML code into it, as you write in the RTE.
8,424 Views
9 Replies
10-11-2015, 11:41 AM
slax0r
    Thread: Github code formatting
Post: RE: Github code formatting

Tabs vs. spaces is an age old discussion, and there are really no drawbacks on either of the two. When there is a drawback is when your code is riddled with tabs AND spaces. Decide which path you want...
5,953 Views
5 Replies
10-11-2015, 03:00 AM
slax0r
    Thread: Custom error pages
Post: RE: Custom error pages

Hi, how I handle this: I use my base controller, which checks if a method exists through a "_remap" method, and if it does not exist, it tries to look for that controllers _404 method, which can t...
6,096 Views
1 Replies
10-08-2015, 11:24 PM
slax0r
    Thread: [Help] Insert a Contact Form
Post: RE: [Help] Insert a Contact Form

What leads you to believe that this error message has anything to do with your "Pages" controller? Paste your Contact controller code, and make sure you have your form_validation library and helper...
5,833 Views
4 Replies
10-08-2015, 04:19 AM
slax0r
    Thread: Routing by Header
Post: RE: Routing by Header

You would need to extend the router then. CI router can not do this on its own.
2,431 Views
1 Replies
10-07-2015, 12:23 AM
slax0r
    Thread: Accessing dynamic links in the format of domain.com/<dynamic_page_name>
Post: RE: Accessing dynamic links in the format of doma...

What could possibly work is, to have a special subdomain for yhose user created pages, so your URLs would be user.domain.com/page_name and then use mod_rewrite to rewrite user.domain.com/page_name to ...
5,046 Views
4 Replies
10-06-2015, 01:57 AM
slax0r
    Thread: CI can't find my method and I don't know why...
Post: RE: CI can't find my method and I don't know why.....

Because this is not how you use models. Method "model" of CI_Loader returns an instance of it self(CI_Loader), not an instance of the model. The model is instantiated in the controller property with ...
2,669 Views
2 Replies
10-06-2015, 01:38 AM
slax0r
    Thread: default controller route for mobile
Post: RE: default controller route for mobile

If you have chosen to go this path, then I would advise you move your "mobile detect" piece of code into your base controller(MY_Controller), and have all your controllers extend from it. This way no ...
5,901 Views
5 Replies
10-01-2015, 11:16 PM
slax0r
    Thread: Painful Problem CI-3.0.1: register_long_arrays
Post: RE: Painful Problem CI-3.0.1: register_long_arrays

"register_long_arrays" has been deprecated as of 5.3.0 and removed as of 5.4.0. I am using CI on PHP 5.6.x and never got such an error, so I can safely assume that your error is not caused by CI core,...
6,449 Views
5 Replies
10-01-2015, 11:13 PM
slax0r
    Thread: program redirect of links
Post: RE: program redirect of links

mwhitney Wrote: (10-01-2015, 07:14 AM) -- You could also use a _remap() (http://www.codeigniter.com/user_guide/general/controllers.html#remapping-method-calls) function in your controller to lookup t...
10,311 Views
6 Replies
10-01-2015, 11:06 PM
slax0r
    Thread: program redirect of links
Post: RE: program redirect of links

I am having trouble understand what you want. So just to clarify, your current URL is "http://my_syte/catalog/item/my_product", but you want it to be "http://my_syte/id/2"? In either way, this is a...
10,311 Views
6 Replies
10-01-2015, 05:58 AM
slax0r
    Thread: Code completion in PHPStorm for CI3 & Bonfire
Post: RE: Code completion in PHPStorm for CI3 & Bonfire

A quick google revealed this, have you tried it yet? https://www.jetbrains.com/phpstorm/help/basic-code-completion-completing-names-and-keywords.html
12,716 Views
9 Replies
09-30-2015, 11:47 PM
slax0r
    Thread: default controller route for mobile
Post: RE: default controller route for mobile

This sounds wrong. To do a mobile version you want only one view, for mobile, and desktop, and not multiple views. You then use stylesheets to style the page differently for mobile and desktop.
5,901 Views
5 Replies
09-30-2015, 11:41 PM
slax0r
    Thread: Code completion in PHPStorm for CI3 & Bonfire
Post: RE: Code completion in PHPStorm for CI3 & Bonfire

I don't know PHPStorm, but if it has a plugin Exuberant CTags then you can use that. Create tags with "ctags", and then use the PHPStorm IDE plugin to do code-completion based on the created ctags fil...
12,716 Views
9 Replies
09-30-2015, 04:07 AM
slax0r
    Thread: Routing DB pages
Post: RE: Routing DB pages

Hm, I am not sure then if CIs uri matching then still works once (:any) is defined, would have to try. Your code should be alright, but you know, try it and see.
16,679 Views
14 Replies
09-28-2015, 05:46 AM
slax0r

Theme © iAndrew 2016 - Forum software by © MyBB