CodeIgniter Forums

Full Version: Just an idea: A Codeigniter Fiddle
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,

Just following a previous question, it dawned on me that having a codeigniter fiddle website would be really cool. Does anyone have the time and necessary coding skill to build one? It would be a fantastic addition to the CI site too perhaps, as there could be a great library of working examples for people to look at, fiddle with, create their own and share.

For me, although I would love to build it, I am certain it is far outside my abilities to do so. It might also be quite a massive task to build, but I would love to see one.

Just thought I would mention the idea though as I thought it was a good one, and see what everyone else thought.

Best wishes,

Paul.
So how can you fiddle a server side php framework?
It's not a javascript/jquery that will run without a server.
I meant a bit like something similar to http://phpfiddle.org/ or http://codepad.org/ or http://sqlfiddle.com/

I had a quick look into how I would try one myself today, but gave up almost immediately. http://stackoverflow.com/questions/17014...ode-safely I thought it might be done with an include or an eval but that just is not going to work.

I imagined three windows, a view, a controller and a model. However the model might be a bit ambitious as you would have to define a table at least in a mock database. Perhaps a view and a controller would do for most things.

As I said in my idea above, it is clearly beyond my abilities to do, and would probably represent too much work/cost to build, but I thought it was still a nice idea.

Best wishes,

Paul.
I have seen some PHP based fiddle-type websites... I suppose it would be nice

Why dont YOU make one? OP?
(09-17-2015, 07:26 AM)PaulD Wrote: [ -> ]For me, although I would love to build it, I am certain it is far outside my abilities to do so.

(09-18-2015, 06:13 PM)PaulD Wrote: [ -> ]As I said in my idea above, it is clearly beyond my abilities to do

(09-19-2015, 10:03 PM)jLinux Wrote: [ -> ]Why dont YOU make one? OP?

Maybe you could start by reading the entire post! Tongue

Seriously, nothing beats a local test site. I think a PHP fiddle site would be a lot of work to make sure people can't run nasty code and hack the web site.
(09-20-2015, 03:30 PM)includebeer Wrote: [ -> ]Seriously, nothing beats a local test site.

Could not agree more, in fact I have a hosted live test site just for ease of testing on different browsers and devices too.

(09-20-2015, 03:30 PM)includebeer Wrote: [ -> ]I think a PHP fiddle site would be a lot of work to make sure people can't run nasty code and hack the web site.

Yes, exactly the problem. In fact it is because I know very little about security for servers that I would not know where to start to build a sandboxed environment. Otherwise I would love to give it a go.

I just think that for sharing code, code problems, and examples it would be a good idea, or at least a nice to have. I use php fiddle sites (and JS fiddle sites even more) when exploring new functions or trying to solve a particular issue. Or when I am playing code golf :-)

Perhaps someone with access to more resources and relevant knowledge will feel inspired to create one in the future.

Best wishes,

Paul.
I have found one pretty interesting

Open http://code.runnable.com

Go to PHP section and check out popular tags and topics, you'll see Codeigniter is the most trending
A fiddle would be limited in capabilities, essentially, without a database connection to the live data, virtually every site I work on wouldn't be able to use it. Furthermore, any site other than our site, I wouldn't ever enter my logins for the database either (and setting up a remote schema and populating with fake data is possible, but then we're talking a lot of work to just use it and it gets beyond a fiddle, more like a truddery)
(07-29-2017, 09:37 AM)Kaosweaver Wrote: [ -> ]... more like a truddery)

I don't know this term "truddery". What is it?
(07-29-2017, 10:02 PM)twpmarketing Wrote: [ -> ]
(07-29-2017, 09:37 AM)Kaosweaver Wrote: [ -> ]... more like a truddery)

I don't know this term "truddery".  What is it?

A word I made up to sound like drudgery. (but did it poorly...)
Pages: 1 2