Welcome, Guest
You have to register before you can post on our site.



Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,666
» Latest member: ganjarganda
» Forum threads: 66,777
» Forum posts: 418,553

Full Statistics

Latest Threads
Delay in ajax response ti...
Forum: General Help
3 hours ago
» Replies: 3   » Views: 90
Does the controller name ...
Forum: CodeIgniter 4 Discussion
4 hours ago
» Replies: 1   » Views: 61
Starting with CI4
Forum: CodeIgniter 4 Support
9 hours ago
» Replies: 2   » Views: 106
use active records in lib...
Forum: General Help
Today, 07:22 AM
» Replies: 3   » Views: 106
new User of CodeIgniter
Forum: Lounge
Today, 04:11 AM
» Replies: 3   » Views: 167
Improve Pagination CI 3x
Forum: CodeIgniter 3.x
Yesterday, 10:11 PM
» Replies: 2   » Views: 165
input post empty
Forum: General Help
Yesterday, 02:29 PM
» Replies: 9   » Views: 245
Dynamic Meta Description
Forum: General Help
Yesterday, 10:26 AM
» Replies: 1   » Views: 96
redis driver _get_lock se...
Forum: Issues
Yesterday, 09:05 AM
» Replies: 6   » Views: 177
Release date for 3.2.0?
Forum: CodeIgniter 3.x
Yesterday, 09:01 AM
» Replies: 1   » Views: 133

  fatal error - SOLVED
Posted by: El Forum - 06-24-2007, 07:17 PM - Forum: Archived Development & Programming - Replies (5)

Fatal error: Call to undefined function: anchor() in /home/suited84/public_html/pr0jects/myFi/system/application/views/home_v.php on line 13

i have decided to build my app on my website instead of locally. when i try to load home page im givin this error.


<li>&lt;?php echo anchor('home', 'Home'); ?&gt;</li>

  An evil timesaving secret for all!
Posted by: El Forum - 06-24-2007, 05:58 PM - Forum: Archived Development & Programming - Replies (2)

[eluser]Phil Sturgeon[/eluser]
Wanna know how to save yourself 3 months of your life in code-time?

Stop writing &lt;?=base_url();?&gt; all the damn time and use /, will save you AAAAAAAAGGGGGGGGGEEEEEEEEESSSS/ Im unsure why so many people keep doing this, seems crazy to me :p

I guess many people don't know about it.


Quote:<a href="/">Go Home!</a>

Does what it says on the tin!

  Library for generating a menu
Posted by: El Forum - 06-24-2007, 03:11 PM - Forum: Archived Development & Programming - Replies (1)

Is there anybody interested in a CI-library to generate a menu as in my pre-CI-webapplication Gardenlog? Log on using ukguest / ukguest if you're more comfortable with English than Dutch.
I'am converting it to CI. If enough people like it I will publish it.

  creating page fragments
Posted by: El Forum - 06-24-2007, 02:42 PM - Forum: Archived Development & Programming - Replies (1)

hello again Wink
compliments first: the more i use CI the more i love it, its a wonderful framework and really speeds up coding.

tho, here is my question.
my controller 'user' got the following functions (search/list/add/edit/delete).
i guess the basic modes for a cms. there is a html template creating a basic table layout to sort all elements on the page ... just like this

<tr><td colspan="2">(header)</td></tr>
<tr><td colspan="2">(buttons - navigation for add/search/list ...)</td></tr>
  <td>(cms navigation - user, article, gallery ...)</td>
  <td>(content area - forms for editing, adding ...)</td>

i hope u got the idea of it. what i am missing now are the basic includes Wink back in old times before CI i just included my 2 navigations.
to use the same view i would pass a variable to the view and switch it in the content area.
tho id like to include the 2 navigations.

any ideas to make it the right way?

  Reusing the same form code for creating and editing
Posted by: El Forum - 06-24-2007, 12:42 PM - Forum: Archived Development & Programming - Replies (5)

If possible, I would like to write my form code only once and use that code for both creating new objects and for updating existing objects. Repopulating the form after a submission is easy using the validation framework. For both edit and create, I just do this:

&lt;input name="name" id="workshop_name" value="&lt;?= $this-&gt;validation->name ?&gt;" />

I saw an approach for reusing the form after validation and for editing where the code looked like this:

&lt;input name="name" id="workshop_name" value="&lt;?= ($this-&gt;validation->name) ? $this->validation->name : $workshop->name ?&gt;" />

The question is how to also use that form when I'm creating a new object. I could either create a stubbed out workshop object so that the same code that works for presenting the update form works for presenting the new form. Or I could leave out the workshop object entirely and put more logic into the view to present an empty form in the case where we're presenting something new.

Is there an established pattern for dealing with this case?

In many frameworks, you create a form backing object that you can instantiate when you're presenting the form for creation, populate from the database in cases where you're editing, and populate from the request when you're validating. Is that any approach anybody uses with CodeIgniter?

  Just a suggestion about calendar!
Posted by: El Forum - 06-24-2007, 10:15 AM - Forum: Archived Development & Programming - Replies (3)

Hi there, don't know if this is the right forum but...

When passing data to calendar, like: (as in user guide)

3  => 'http://your-site.com/news/article/2006/03/' <-- WORK
03  => 'http://your-site.com/news/article/2006/03/', <-- DON'T WORK
Just because of leading zero! Smile
I spent about 20 min trying to figure out why wasn't working!

So, the suggestion is: data could be passed with or without leading zero!

Hugs from brazil!
Sry for bad english!

  Problem with FCKeditor implementation
Posted by: El Forum - 06-24-2007, 05:59 AM - Forum: Archived General Discussion - Replies (5)

I've done everything following http://codeigniter.com/wiki/FCKeditor/ page and I get an error: The URI you submitted has disallowed characters. when I try to load fckeditor in browser

Any ideas? :/

  Database connection issue
Posted by: El Forum - 06-24-2007, 05:17 AM - Forum: Archived Development & Programming - Replies (6)

Hi everybody!

I'm having a problem with my CI app. On my computer, running PHP5 and MySQL, everything's OK, my app connects to the database, retreives datas...

The problem is, when I upload my application (with new database.php and config.php files with the actual informations of my webhost), CI cannot connect to my database, and shows the following error message:

Unable to connect to your database server using the provided settings.

What's the problem? My database infos are correct (I'm sure of this), the path to my application is correctly set in the config.php file...

Thanks Wink

PS: My webhost is running PHP5 and MySQL too

  routing and controllers
Posted by: El Forum - 06-24-2007, 01:50 AM - Forum: Archived Development & Programming - Replies (7)

sadly i got another basic question i guess, where i lack understanding of CI.

my actual controller folder looks like this

+ admin
  - user.php
  - navigation.php
  - article.php
  - roles.php
  - ....
- homepage.php

im trying to create a small CMS for a site and thought that structure for the administration part could be handy.

each controller (i.e. user.php) has the functions insert, edit, delete ...
as soon as i try to access those controllers hes trying to load a function of admin

controller (admin), function (user)
instead of subfolder (admin), controller (user), function (index)

anyone who could help a newbie to set it up correctly? Wink

  Filters System Bug
Posted by: El Forum - 06-24-2007, 01:38 AM - Forum: Archived Development & Programming - Replies (7)

I've been using hooks for a long time now, but I've decided to try the Filters System because it seems to be a better approach to accomplish some basic routines.

Unfortunately there is a bug in the system, when you try to apply a filter to a controller placed withing a directory it won't trigger. I went over the code and find out that the way it handles the matches is where the problem resides, it is exploding the match by the '/' on in, so CI thinks it is a class instead of a directory.

As an example, if i want to apply a filter to "admin/login" where admin is the directory and login the class name it won't work.

Any ideas on a better implementation of it?

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.