Questions and answers
Until we set up the forum or bug tracker please post your bugs, questions, feature requests here.
Update:
Pease use the GitHub issue tracker for reporting problems or asking questions.
The CRUD source code generator
Until we set up the forum or bug tracker please post your bugs, questions, feature requests here.
Pease use the GitHub issue tracker for reporting problems or asking questions.
Commenting is closed for this article.
It seems that I have a problem :)!
After generating and trying to see if it works I get this error :
An Error Was Encountered
Unable to load the requested class: template
I’m trying to figure it out, but I am to tired to search deep :)!
Hope find a solution ASAP!
I have to say that what have you done, is awesome, and I think you should make an option regarding the views! Using template system, or standard Html !
Thanks in advance for your help and sorry for
my bad english
Posted by Alexandru @ Jan 7, 09:39 PM #
Thank you for testing.
Try to rename libraries/Template.php to lowercase.
Also make sure, that you copied the "scaffold_package" directory in your development application.
Posted by Tibor Szász @ Jan 7, 10:05 PM #
thanks for your quick reply, i already tried to rename to lowercase, but it didn’t work!
But finally after reinstalling codeigniter, everything was fine! i still don’t know what was the problem :) !
The application looks very very fine, and also it works perfect!
I am waiting for the documentation to be ready, so I can learn better how to customize the generator!
I hope after reading that, i will be able to modify the template part, and to change the views only to html !
Congratulations for your work, and hope you won’t stop here!
Thanks again for your support, and sorry for my bad english
Posted by Alexandru @ Jan 7, 11:23 PM #
I’m glad it’s working for you.
The thing with the templates is really an issue that will be solved, but the views cannot be just plain HTML, rather native PHP templating.
The idea is, that there will be multiple template directories, but first, the code needs some optimization to support that. Right now, you can only do this by modifying model_iscaffold.php itself.
Posted by Tibor Szász @ Jan 7, 11:49 PM #
Thanks a lot for your support!
I still waiting for documentation!
I hope that you will help me further if I decide to modify the way how generator makes the template!
Regarding my statement about “plain html” i know that i’ve made a mistake :P!
Sorry for my bad english!
Posted by Alexandru @ Jan 8, 05:34 PM #
The download package at iscaffold.skyweb.hu homepage contains lots of svn files. I think these need be removed ;)
Posted by Mario Zorz @ Feb 7, 06:18 PM #
Hi.. first of all: great app!
I believe there might be a bug on the “hidden” checkboxes. it is disabled hardcoded and this value is populated from database. The thing is, nowhere in the code it changes the sf_hidden from 0 to 1.
ps: just waiting for more documentation!
TKS
Posted by Vicente Russo @ Mar 7, 06:23 AM #
Hello Russo,
It’s my fault not mentioning it somewhere.‘Hidden’ feature is not implemented yet, it just shows where will you be able to do that. I planned that it will hide the element in the form. For example you can set up a Google Map in a form and simply update the values of longitudes and latitudes.
In fact this can be achieved by adding a “hidden” class. Maybe the checkbox should be deprecated.
Thanks for commenting.
The documentation is on the way. I just got a new job and time is a critical factor :(
Posted by Tibor Szász @ Mar 7, 01:35 PM #
Hello again.
If you don’t mind, I’m forking this project to suit my needs, adding a more “ready” code, like <img> tags on image file uploads, more type fields (like the date/time/datetime when record is inserted and of course the support for “date/time/datetime” fields. And more, changing the explain table helper to read field comments (maybe the ‘rules’ to create fields can be on comments).
That said, what about to mix our codes and make this project better?
Posted by Vicente Russo @ Mar 10, 08:49 PM #
@Vicente Russo, that would be cool, I’ll contact you soon about the improvements and the collaboration.
Posted by Tibor Szász @ Mar 10, 09:54 PM #
Hi Tibor,
Is the code of related tables (one -> one) unfinished? There is no JOIN being created at the moment.
Regards
Posted by Vicente Russo Neto @ Mar 11, 07:44 AM #
That should work. Some day ago I created small project based on it: http://tibor.szasz.hu/labs/gyula/
Posted by Tibor Szász @ Mar 11, 07:49 AM #
What is this link? o.O
Posted by Vicente Russo @ Mar 11, 05:17 PM #
This is a simple portfolio website for a friend of mine, it’s a test version with dummy contents :)
Posted by Tibor Szász @ Mar 11, 05:20 PM #
Hi everybody. I got error “Fatal error: Class ‘Controller’ not found in C:\AppServ\www\mypj\controllers\products.php on line 3” I copied 2 folders inside scaffold_package folder but nothing changed. Anyone help me?
Posted by tainguyen @ May 19, 08:47 AM #
It seems you didn’t copy the generated controllers to a working codeigniter installation.
You must have a separate codeigniter installed.
Into the root folder you have to copy the contents of “scaffold_package”.
Then in the system/application copy the contents of the “output” directory.
Posted by Tibor Szász @ May 19, 08:53 AM #
Hi Tibor,
Thanks for a great tool :-)
I discovered one defect that I would like to report, together with my solution.
In configurator.php where you build the one-to-one select box, you are only comparing the field name and not the table name. This works as long as the field name does not occur in more than one table, but when you have switch tables, the field name WILL occur in more than one table.
To correct this problem, replace
if( $tdata[‘data’][$key][‘sf_related’]1 == $fl )
with
if( $tdata[‘data’][$key][‘sf_related’]0 == $tbl and $tdata[‘data’][$key][‘sf_related’]1 == $fl )
Posted by Terry Herckenrath @ Jul 20, 06:48 PM #
Does this run only under a specific PHP installation?
I downloaded the 2.0 RC1 version and there are errors all over the place.
Mostly deprecated warnings.
A major disallowed URI characters error which I get rid of by allowing all characters.
In the end there is an output but there is this strange feeling.
Posted by Jörg Gudehus @ Aug 21, 12:18 PM #
Hello Jörg,
It does not require any specific PHP version, altough codeigniter 1.7.2 does not like PHP 5.3.The issue you noted is possible if your table name contains special or accented characters.
Posted by Tibor Szász @ Aug 21, 07:05 PM #
Hello!
Congratulations for that great software.
I’m having a small issue tho. I figured out all the links in the whole application are pointing for an address without the “index.php” part.
What should be
http://localhost/jose/codeigniter/index.php/pessoa/create/
is being rendered
http://localhost/jose/codeigniter/pessoa/create/
I think i may be missing some setting somewhere?
Thx a lot and good work.
Posted by José Eduardo @ Nov 5, 03:59 PM #
Not very accomplished with htaccess files. Having trouble with the “directory exception”. I currently have this as recommended by CI:
RewriteEngine on
RewriteCond $1 !^(index\.php?|images|css|js)
RewriteRule ^(.*)$ http://localhost:8888/NCCountApp/index.php?/$1 [L]
The app is working fine but images and styles are all missing.
Posted by Rob @ Nov 15, 04:17 AM #
Hi:
I have downloaded the RC1 and while trying to run I get this error: Deprecated:
Assigning the return value of new by reference is deprecated in D:\Webserver\htdocs\scafold\system\codeigniter\Common.php on line 130
Message: Function set_magic_quotes_runtime() is deprecated
I’m using XAMPP with PHP 5.3.1 any way to solve this problems?
Posted by ReynierPM @ Nov 16, 07:45 PM #
All,
I was getting the “DEPRECATED” errors as well. To fix this… got to CodeIgniter website (http://codeigniter.com/downloads/) and download the 1.7.2 version that has been written for PHP 5.3. Replace the core CodeIgniter files (DON’T OVERWRITE THE ISCAFFOLD FILES). That should work… it did for me.
JFK
p.s. Would be super helpful if iScaffold creators repackaged the download with latest version of CodeIngiter 1.7.2 or even CI 2.0!
Posted by -=JFK=- @ Feb 23, 05:32 PM #
Hello JFK,
An update to CI 2.0 is planned and I hope I can add some handy updates to the whole project.Posted by Tibor Szász @ Feb 23, 05:42 PM #
Hi there,
Just quickly firing an issue:
Problem:
Current URL I am at:
http://localhost/S_/items (it list all the items I have in the database.)
a)I am trying to delete a row:
b) I confirm ‘OK’
c) It goes to this url http://localhost/items/delete/10, refreshes and says : Oops. Firefox can’t load this page for some reason.
Investigation:
a) I can see the url is not using my base url. My base url is: $config[‘base_url’]= “http://localhost/S_/”;
b) I tried to change this: “<a href=“javascript:chk(’/items/delete/{ $row.item_id }’)”><img src=“images/delete.png” alt=”“ /></a>”
To:
<a href=“javascript:chk(<?php echo base_url()?>’/items/delete/
It didn’t work. Any idea how can I make this delete link work properly ?
It’s a bug I guess coz all other pages have the same errors.
Thanks for your help.
Posted by Oliur @ Apr 27, 04:51 PM #
Hello,
Are you sure you edited the right config file? Maybe you edited the iscaffold code generator’s accidentaly. Try echoing the base_url().
This should be a CodeIgniter issue. Are you using 1.7.2 with the generated code?
Posted by Tibor Szász @ Apr 27, 05:13 PM #
Hi Tibor,
Thanks for your quick response. First off, apologies for not giving you the full credit for creating something so useful for CI community. I loved your work. Do you have any in the future to integrate a database abstraction layer using ORM i.e Doctrin or Propel like Symfony does?
Now going back to your questions:
1) I’ve doubled checked and it’s the right config file in http://localhost/S_/application/config/config.php. And my base url is :
$config[‘base_url’] = “http://localhost/S_/”;
2) I am using CI 1.7.2
3) Finally, I’ve edited view/list_item.tpl file to
<a href=“javascript:chk(’<?php echo site_url()?>items/delete/{ $row.item_id }’)”><img src=“images/delete.png” alt=”“ /></a>
And it worked like a charm.
Now a few suggestions:
a) When I first loaded the site the css wasn’t working because in the frame_public.tpl file the base_url was hardcoded which includes iscafolding/css/main.css etc.
So, I had to find this file and removed all iscafoldign folder name from the link. Same thing for all the images in all relevant tpl file. Would that be possible to read the base url automatically to make the installation easier?
And finally, thanks a ton again for your wonderful work. You rock!
Posted by Oliur @ Apr 28, 10:24 AM #
Also wanted to check,
Could you also change the code so it automatically reads the site url in the delete function?
Posted by Oliur @ Apr 28, 10:25 AM #
Ah I am back again, just a couple of more questions:
1) If you want to ignore any database field in your add form how do you do that? For example, I’ve a table called delivery and within there is a column called delivery_completed which is just a flag to see if delivery is completed or not yet. By default it’s set to 0.
2) The items table requires a delivery id as a foreign key. How do I establish that relationship when I am adding a new item? You mentioned something about switch table but i didn’t see any detailed explanations.
:)
Posted by Oliur @ Apr 28, 10:53 AM #
This is a great package but needs to be updated. I am willing to work on it. Is this project still alive?
Posted by Dennis @ Jul 15, 03:05 PM #
I am willing to work on it too.
On earlier version I added some useful javascript functions.
Just let me know.
Posted by P @ Oct 5, 04:28 AM #
Eager to see your new version. Did you perhaps forget to upload model_iscaffold.php to the github? Application complains “Unable to locate the model you have specified: model_iscaffold”. Can’t find it in the same directory as the earlier version. Thanks for all your efforts.
Posted by Steve Wilson @ Oct 28, 08:29 PM #
Hello Steve,
It is uploaded now. I’m also curious about your changes, I might adapt some ideas.
Posted by kow @ Nov 1, 02:50 PM #