Welcome Guest, Not a member yet? Register   Sign In
Just an idea: A Codeigniter Fiddle
#1

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.
Reply
#2

So how can you fiddle a server side php framework?
It's not a javascript/jquery that will run without a server.
Reply
#3

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.
Reply
#4

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

Why dont YOU make one? OP?
Reply
#5

(09-17-2015, 06: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, 05:13 PM)PaulD Wrote: As I said in my idea above, it is clearly beyond my abilities to do

(09-19-2015, 09: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.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply
#6

(09-20-2015, 02: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, 02: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.
Reply
#7

(This post was last modified: 07-29-2017, 03:58 AM by Corsari.)

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
Reply
#8

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)
Reply
#9

(07-29-2017, 08:37 AM)Kaosweaver Wrote: ... more like a truddery)

I don't know this term "truddery". What is it?
CI 3.1 Kubuntu 19.04 Apache 5.x  Mysql 5.x PHP 5.x PHP 7.x
Remember: Obfuscation is a bad thing.
Clarity is desirable over Brevity every time.
Reply
#10

(07-29-2017, 09:02 PM)twpmarketing Wrote:
(07-29-2017, 08: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...)
Reply




Theme © iAndrew 2016 - Forum software by © MyBB