Welcome Guest, Not a member yet? Register   Sign In
GoPHP RAD lib for Codeigniter
#31

[eluser]Andre_Palantir[/eluser]
I figured my mystake but i find out another issue:
it only work when we create the tables, cant use it in a database already made
and I would like to now if u though about passwords saved... How would I encript something?
#32

[eluser]cikabiber[/eluser]
The main idea of this library is that you don't need to create database tables and fields. You define a model and everything is created automatically. Although, you could create your tables, and write a model based on a table, but that would make no sense.
What you can do later is optimize database (define keys, indexes etc). Then after you finish the development you can recreate the database with some custom installer script, so other users would have that optimized database, and not auto-created one.

I'll implement password field in next version. Thanks for suggestion!
#33

[eluser]Andre_Palantir[/eluser]
I got that. But things would be a lot easier if we could just read the database and make it all just like IScaffold does (but the problem of that project is that is too much code, not a sexy code at all).

Well and it was the first time I use ExtJS aswell and it really get me, quite nice, great documentation, lots of examples, but it would be nice to see your example made in a layout of extJS, just the menu for the controllers you know, it would be nice to check that.

By the way another good thing you could think about is allow validation when we create the presentationfield.

And when I start to make my own controllers yesterday, an odd thing happend: some fields were created in the grid and I could insert data on them even thou i never start presentationfield object for those fields.
#34

[eluser]cikabiber[/eluser]
[quote author="Andre_Palantir" date="1256232270"]I got that. But things would be a lot easier if we could just read the database and make it all just like IScaffold does (but the problem of that project is that is too much code, not a sexy code at all).[/quote]

That's not the point of this library. Maybe from your point of view, but I need a way to create an application just by defining models. No database/gui hassle. That's what i'm trying to accomplish. This is still an early development phase, lots of thing may change in future, so every suggestion is wellcome Smile

[quote author="Andre_Palantir" date="1256232270"]
By the way another good thing you could think about is allow validation when we create the presentationfield.[/quote]

I'm planing to implement various validations in one of next versions.

[quote author="Andre_Palantir" date="1256232270"]
And when I start to make my own controllers yesterday, an odd thing happend: some fields were created in the grid and I could insert data on them even thou i never start and presentationfield object for those fields.[/quote]

Yes, that's not a bug. It is supposed to be that way, because to have basic functionality you just need to define a model and call it trough controller. All fields will be visible. Than you can customize each field (and hide it) if you wish using presentation class.
#35

[eluser]Andre_Palantir[/eluser]
Got ya. The library is looking good, I'm tracking it and looking forward for your next releases.
#36

[eluser]Unknown[/eluser]
Hi, Very nice work with GoPHP.

I was trying it on CI 1.7.2 and ran into the following problem(s) (warnings)

Warning: Call-time pass-by-reference has been deprecated in D:\Webserver\gophp_example\system\application\controllers\departments.php on line 21

This was easy to solve by removing the & for every file/line number the warning give's

Example departments.php with error on line 21
Code:
$this->addPersistent(&$this->department);

Example departments.php corrected on line 21
Code:
$this->addPersistent($this->department);

I hope this helps others.

I had this problem in the following files:

- MY_Controller.php on line 504
- jobroles.php on line 21
- departments.php on line 21
- qualifications.php on line 21
- employees.php on line 68

I was also missing the pictures in the admin view.
I solved this by placing the images directory in the root of the webserver.
Then I changed the view file admin.php by adding a / to all .png references in that file.

Example admin.php with image error
Code:
<div class="item">
<a class="itemlink" href="jobroles">
    <img src="images/jobrole.png" border="0"/>
</a>

Example admin.php with image corrected
Code:
<div class="item">
<a class="itemlink" href="jobroles">
    <img src="/images/jobrole.png" border="0"/>
</a>

Now everything seems to work fine
and it looks great.

regards
#37

[eluser]Kirkjoserey[/eluser]
[quote author="Shoop" date="1266777880"]Hi, Very nice work with GoPHP.

I was trying it on CI 1.7.2 and ran into the following problem(s) (warnings)

Warning: Call-time pass-by-reference has been deprecated in D:\Webserver\gophp_example\system\application\controllers\departments.php on line 21

This was easy to solve by removing the & for every file/line number the warning give's

Example departments.php with error on line 21
Code:
$this->addPersistent(&$this->department);

Example departments.php corrected on line 21
Code:
$this->addPersistent($this->department);

regards[/quote]

thanks for the advice.

This RAD lib is still A-L-I-V-E?? I say, NEW VERSION, in mind???

Best Regards!




Theme © iAndrew 2016 - Forum software by © MyBB