calender() |
Hello,
I have a question about codeigniter 3.x --> I am reading the description there are calender( ) and tablesorter( ). I wonder why there are no manuals on how to use the function ? http://www.codeigniter.com/user_guide/li....html#id22 Is it still under construction ? When will it be launch ? Am I able to request new features if I need it ? Has codeigniter 3.x be stable ? What version is underconstruction ? 3.x or 4.0 ? Thanks in advance.
" If I looks more intelligence please increase my reputation."
You are not reading the description carefully enough.
At the top of the Javascript library writeup that you mention, there is a prominent notice: Important This library is DEPRECATED and should not be used. It has always been with an ‘experimental’ status and is now no longer supported. Currently only kept for backwards compatibility. The library will be removed in an upcoming version of CodeIgniter. CodeIgniter 3.x *is* stable, currently up to version 3.0.6. CodeIgniter 4.x is under development.
What about the calendering class: ?
http://www.codeigniter.com/user_guide/li...light=date I try this: views/blog_form.php PHP Code: <html> controllers/Blog.php PHP Code: <?php
" If I looks more intelligence please increase my reputation."
Yes? That is part of CI 3.x, and it is not deprecated.
Is that what you are wondering?
Ok thanks. Just one problem. I get this list of errors:
BLOG FORM Date : A PHP Error was encountered Severity: Notice Message: Undefined property: CI_Loader::$calendar Filename: views/blog_form.php Line Number: 23 Backtrace: File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\blog\application\views\blog_form.php Line: 23 Function: _error_handler File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\blog\application\controllers\Blog.php Line: 30 Function: view File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\blog\index.php Line: 315 Function: require_once Fatal error: Call to a member function generate() on null in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\blog\application\views\blog_form.php on line 23 A PHP Error was encountered Severity: Error Message: Call to a member function generate() on null Filename: views/blog_form.php Line Number: 23 Backtrace:
" If I looks more intelligence please increase my reputation."
Try moving these into your controller:
PHP Code: <?php $this->load->helper('form'); ?> Calling the loader from your view is likely to cause some issues in many circumstances, so it's best to avoid doing so. The documentation of the calendar library specifically states (emphasis mine): Quote:Like most other classes in CodeIgniter, the Calendar class is initialized in your controller using the $this->load->library function
BLOG FORM
Date : A PHP Error was encountered Severity: Notice Message: Undefined property: CI_Loader::$calendar Filename: views/blog_form.php Line Number: 23 Backtrace: File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\blog\application\views\blog_form.php Line: 23 Function: _error_handler File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\blog\application\controllers\Blog.php Line: 30 Function: view File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\blog\index.php Line: 315 Function: require_once Fatal error: Call to a member function generate() on null in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\blog\application\views\blog_form.php on line 23 A PHP Error was encountered Severity: Error Message: Call to a member function generate() on null Filename: views/blog_form.php Line Number: 23 Backtrace: Controllers/Blog.php PHP Code: <?php views/blog.php PHP Code: <html> I already place those 2 helper in controllers: PHP Code: <?php $this->load->helper('form'); ?> and still have the above error message.
" If I looks more intelligence please increase my reputation."
They're not in the right place in your controller (the index() method is not called when displaying the view you're getting the error message on), and you need to remove the surrounding PHP tags from the method calls when you put them in the controller (since the opening PHP tag is at the top of the controller).
You have a lot of questions posted in the forum regarding the same form. You can't solve the issues independently, and changes you make in solving one issue can make other issues appear or disappear. It's also fairly obvious that you need to go through the overview and tutorial sections in the manual (or go back through it, if you have already). |
Welcome Guest, Not a member yet? Register Sign In |