Alias Helper Feature Request |
I know the CI team follows good conventions especially when it comes to helpers, which is purposefully for views as much as possible. However, I'm lazy and created alias_helper.php that contains mostly a duplicate of CI's library's, helpers, models and such without "$this->{class}->" structure. Here are a few:
$this->load->model() is now model() $this->load->library() is now lib() $this->load->helper() is now helper() $this->load->view() is now view() $this->parser->parse() is now parse() $this->session is now sess() $this->form_validation is now form_validation() or fv() $this->load->vars() is now vars(), get_var(), get_vars(), clear_vars() $this->input->post() is now post(), get(), server(), method() and so forth... Please let me know if the CI team can integrate this to enhance everyone's productivity and make the CI code in a way, fancy. ![]()
Long live CodeIgniter!
A link to what you created would be nice.
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!
(06-13-2016, 02:19 AM)prezire Wrote:(06-12-2016, 08:21 PM)albertleao Wrote: A link to what you created would be nice. Yep, no issues posting links to git, bit or anything like that as far as I know.
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!
(06-13-2016, 10:28 AM)albertleao Wrote:(06-13-2016, 02:19 AM)prezire Wrote:(06-12-2016, 08:21 PM)albertleao Wrote: A link to what you created would be nice. Cool! Let me know if you're having issues accessing the file in BitBucket and I'll get back to you right away.
Long live CodeIgniter!
You could probably do that, but $this->class->method() will probably be a lot less common in CI4 unless people specifically choose to use it.
This may be very helpful in ci3 but I think ci4 is a lot cleaner
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!
|
Welcome Guest, Not a member yet? Register Sign In |